Reference
Command Reference
These are the operational commands you need for day-to-day CLI use.
Selected IDE
Cursor
.cursor/mcp.json
Swylink keeps the bridge explicit for this IDE by rendering --ide cursor and the correct MCP config path everywhere in the docs.
Section
Authentication
Use these commands to manage the local terminal session.
CLI
Login
npx @swylink/cli auth login --api-base-url https://api.swylink.comCLI
Who am I
npx @swylink/cli auth whoami --api-base-url https://api.swylink.comCLI
Logout
npx @swylink/cli auth logoutSection
Guided setup and bridge
Use guided setup tokens to bootstrap each IDE/device and start the bridge.
CLI
Generate setup token
# Dashboard -> Connections -> Generate setup token for cursorCLI
Start bridge
SWYLINK_SETUP_TOKEN=YOUR_SWYLINK_SETUP_TOKEN npx -y @swylink/cli start --server wss://api.swylink.com/ws --ide cursorCLI
Start with token file
npx -y @swylink/cli start --setup-token-file /path/to/token.txt --server wss://api.swylink.com/ws --ide cursorCLI
Start with profile
npx -y @swylink/cli start --server wss://api.swylink.com/ws --ide cursor --profile my-teamCLI
Start with language
npx -y @swylink/cli start --server wss://api.swylink.com/ws --ide cursor --lang ptSection
Diagnostics
Use the doctor command to check for MCP config conflicts and verify your IDE setup.
When to use doctor
Run `doctor` when your IDE stays offline or you suspect a config conflict. It checks MCP config file paths, validates the server block, and reports any issues.
CLI
Run doctor
npx @swylink/cli doctor --ide cursorCLI
Doctor with profile
npx @swylink/cli doctor --ide cursor --profile my-teamContinue
Move through the full CLI path from auth to IDE connection, or jump back to the start if you are documenting onboarding for a new user.