Usage
Description
Set up TOTP (Time-based One-Time Password) 2FA using an Authenticator app. This command generates a new TOTP secret and displays: • A QR code (for scanning with your app) • A manual entry key (for typing into your app) • A secret token (needed for the next step) Workflow:- Run this command to generate the TOTP secret
- Add the account to your Authenticator app by either: • Scanning the displayed QR code, OR • Manually entering the key shown
- Once added, your app will display a 6-digit code
- Complete setup by running: vastai tfa activate —secret <SECRET> <CODE>
Examples
Global Options
The following options are available for all commands:| Option | Description |
|---|---|
--url URL | Server REST API URL |
--retry N | Retry limit |
--raw | Output machine-readable JSON |
--explain | Verbose explanation of API calls |
--api-key KEY | API key (defaults to ~/.config/vastai/vast_api_key) |