Skip to main content

CLI Authentication

The CLI uses a Public API key (verlynk_...), not an MCP token.

note

MCP tokens are for AI integrations. Create those under Create MCP Token. For the CLI, create a Public API key in Settings → Developer on verlynk.com, or with verlynk keys:create.

verlynk auth:login --key verlynk_your_key_here

Optionally set a default profile at login:

verlynk auth:login --key verlynk_your_key_here --profile-id <profile-uuid>

You can omit --key to enter the key interactively (masked stdin prompt).

Optional flags:

FlagDescription
--keyPublic API key (verlynk_...)
--api-urlCustom API base URL
--profile-idDefault profile UUID to save

Credentials are saved to:

  • Windows: %USERPROFILE%\.verlynk\credentials.json
  • macOS / Linux: ~/.verlynk/credentials.json
verlynk auth:status
verlynk auth:logout

Option 2: Environment variables

export VERLYNK_API_KEY=verlynk_your_key_here
# optional
export VERLYNK_API_URL=https://verlynk.com/api
export VERLYNK_PROFILE_ID=<profile-uuid>
VariableRequiredDefaultDescription
VERLYNK_API_KEYNo*Public API key (verlynk_...)
VERLYNK_API_URLNohttps://verlynk.com/apiCustom API base URL
VERLYNK_PROFILE_IDNoDefault profile UUID

*Either verlynk auth:login or VERLYNK_API_KEY is required.

warning

Stored credentials from auth:login take priority when both stored credentials and environment variables are present.

Security

warning
  • Never commit API keys to git.
  • Rotate keys if exposed.
  • Prefer environment variables or a secrets manager in CI.

Next steps

  • Profiles — Choose a project context
  • API Keys — Create and manage keys from the CLI