Skip to main content

vers login

Login to the Vers platform using your API token.

Usage

Options

Examples

Interactive login

Direct token login

How it works

The login command:
  1. Gets API key: Either from --token flag or secure interactive input
  2. Validates key: Makes a POST request to /api/validate endpoint
  3. Saves locally: Stores the validated API key securely on your machine
  4. Confirms success: Shows authentication confirmation

Getting your API key

You can get your API key from: https://vers.sh/billing
  1. Sign up or log into your Vers account
  2. Navigate to the billing page
  3. Generate or copy your API key after payment
  4. Use it with vers login

Security features

Hidden input

When using interactive mode, your API key input is completely hidden:

Server validation

Every API key is validated against the Vers platform before being saved:

Local storage

The API key is stored securely on your local machine and is not shared with version control systems.

Error handling

Invalid API key

Empty API key

Network issues

Server errors

Prerequisites

Common Patterns

First-time setup on a new machine

Switch between API keys

Set the API key non-interactively (CI)

Drop it into ~/.versrc directly instead of calling vers login:

See Also

  • vers logout - Sign out from current account
  • vers init - Initialize projects (requires authentication)