Auth
Login from the Terminal
Login uses your Swylink account credentials in the terminal, stores a local session file, and keeps the password out of subsequent CLI commands.
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
Start the login flow
Point the CLI at your Swylink API base URL. The command will prompt for email and password interactively.
CLI
Login command
npx @swylink/cli auth login --api-base-url https://api.swylink.comExpected output
Email
Password
Swylink CLI session stored.Section
Inspect or clear the local session
Use `whoami` to confirm the active account and `logout` to wipe the stored session while keeping only public runtime config.
CLI
Show current session
npx @swylink/cli auth whoami --api-base-url https://api.swylink.comCLI
Logout
npx @swylink/cli auth logoutContinue
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.