Documentation menu: xverctl CLI
CLI · MCP Updated
GitHub

Sign in, profiles, and projects

Sign in to xverctl, store API tokens in your system keychain, and switch between profiles and projects

xverctl uses the same API tokens as XVer API, with built-in system keychain storage and multi-profile switching.

Sign in#

Terminal
xverctl auth login                      # approve a code at https://my.xver.cloud/device
echo "$TOKEN" | xverctl auth login --with-token
xverctl auth status
xverctl auth logout                     # revokes the token and removes it from this computer

Tokens can also be created in the console under Account > API tokens, scoped to specific projects and levels (read, manage, delete).

How tokens are stored#

  • Tokens are stored in your system keychain (macOS Keychain, Windows Credential Manager, or Linux Secret Service).
  • When no keychain is available, xverctl asks before writing to ~/.config/xver/credentials/<profile> with owner-only permissions. Set XVER_CREDENTIAL_STORE=file to skip the prompt.
  • There is no --token flag, keeping secrets out of process lists and shell history.
  • In CI, skip auth login and pass XVER_TOKEN as an environment variable.

Token precedence#

  1. XVER_TOKEN environment variable
  2. Profile specified by --profile or XVER_PROFILE
  3. Active profile in ~/.config/xver/config.yaml

Profiles and projects#

~/.config/xver/config.yaml (mode 0600, never stores tokens) holds named profiles with API URL, default project, and output format.

Terminal
xverctl auth login --profile staging --with-token < token.txt
xverctl profile list
xverctl profile use staging
xverctl project list
xverctl project use my-project          # default project for current profile
xverctl server list -p other-project    # override for a single command

A token scoped to a single project needs no project flag. Commands that create resources require a project via --project, XVER_PROJECT, or xverctl project use.