@wix/connect-dev
v0.2.0
Published
CLI tool for SSH connections to Wix dev machines
Maintainers
Keywords
Readme
@wix/connect-dev
CLI tool for establishing SSH connections to Wix dev machines through Cloudflare Tunnels.
Installation
npx @wix/connect-devCommands
login
Authenticate with Wix using device code flow.
npx @wix/connect-dev loginOpens a browser for authentication and stores tokens locally.
whoami
Display the currently authenticated user.
npx @wix/connect-dev whoamivscode <siteId> <projectId>
Connect to a dev machine and open in VS Code.
npx @wix/connect-dev vscode 9d9cbace-c65e-4428-8e85-d1b8a9af1193 a1b2c3d4-e5f6-7890-abcd-ef1234567890cursor <siteId> <projectId>
Connect to a dev machine and open in Cursor.
npx @wix/connect-dev cursor <siteId> <projectId>ssh <siteId> <projectId>
Connect to a dev machine via SSH.
npx @wix/connect-dev ssh <siteId> <projectId>Connection Flow
- Authenticate - Verify stored tokens or prompt for login
- Ensure tunnel client - Check/install cloudflared binary
- Generate SSH keys - Create Ed25519 key pair per project
- Start remote tunnel - Call Wix API to establish Cloudflare tunnel
- Configure SSH - Setup local SSH config with ProxyCommand
- Launch client - Open VS Code, Cursor, or SSH session
Error Output
On failure, the CLI displays:
- Step that failed
- Error cause/message
- HTTP status code (if applicable)
- Request ID for support
✖ Unable to start tunnel on remote dev machine
✖ Cause: listSandboxes failed: Not Found
✖ Status: 404
✖ Request ID: abc123-def456Configuration
Tokens are stored in ~/.wix/auth/account.json.
SSH configs are stored in ~/.ssh/wix-connect-dev.d/.
Development
yarn build # Build the package
yarn test # Run tests
yarn lint # Run ESLint
yarn typecheck # Type check
yarn format # Format with PrettierRequirements
- Node.js 18+
- VS Code or Cursor (for IDE commands)
- SSH client
