VB-OS CLI Authentication
The VB-OS CLI supports interactive login (email/password with MFA), API key authentication, and environment variable configuration.
Interactive Login
Section titled “Interactive Login”vbos loginThis starts an interactive flow that handles email/password entry, MFA prompts, multi-organization selection, and Terms of Service acceptance. Credentials are stored securely in your system keyring.
To authenticate with a specific organization:
vbos login --org ORG_IDTo authenticate with an API token directly:
vbos login --token YOUR_TOKENAPI Key Authentication
Section titled “API Key Authentication”For non-interactive use (scripts, CI/CD), set the VBOS_API_KEY environment variable:
export VBOS_API_KEY="vbos_key_..."vbos verify --workload payload.json --project my-projectThe precedence order is: VBOS_API_KEY environment variable, then stored keyring credentials.
Credential Storage
Section titled “Credential Storage”By default, the CLI stores credentials in your system keychain (macOS Keychain, Windows Credential Locker, or a Linux Secret Service provider). To use file-based storage instead:
vbos config set credential-store fileLogout
Section titled “Logout”Clear stored credentials:
vbos logoutSwitch Organization
Section titled “Switch Organization”If your account belongs to multiple organizations:
# Interactive selectionvbos switch-org
# Direct switchvbos switch-org ORG_IDEmail Verification
Section titled “Email Verification”If your email is not yet verified:
vbos resend-verificationVerify Authentication
Section titled “Verify Authentication”Check your current identity:
vbos org getThis returns your current organization details, confirming credentials are valid.
Authentication Commands Reference
Section titled “Authentication Commands Reference”| Command | Description |
|---|---|
vbos login |
Authenticate (email/password, API key, MFA, multi-org) |
vbos logout |
Sign out and clear stored credentials |
vbos switch-org [ORG_ID] |
Switch organization (interactive if no ID given) |
vbos resend-verification |
Resend email verification |
