vers login
Login to the Vers platform using your API token.Usage
Options
| Option | Description |
|---|---|
--token, -t | API token for authentication |
Examples
Interactive login
Direct token login
How it works
Thelogin command:
- Gets API key: Either from
--tokenflag or secure interactive input - Validates key: Makes a POST request to
/api/validateendpoint - Saves locally: Stores the validated API key securely on your machine
- Confirms success: Shows authentication confirmation
Getting your API key
You can get your API key from: https://vers.sh/billing- Sign up or log into your Vers account
- Navigate to the billing page
- Generate or copy your API key after payment
- 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
- Network connectivity to reach the Vers platform
- Valid API key from https://vers.sh/billing
See Also
- vers logout - Sign out from current account
- vers init - Initialize projects (requires authentication)