Usage
Options
2FA code from Authenticator app (default) or SMS (alias:
--code)Use SMS 2FA method instead of TOTP
Secret token from previous login step (required for SMS) (alias:
--secret)One-time backup code (alternative to regular 2FA code) (alias:
--backup-code)2FA Method ID if you have more than one of the same type (‘id’ from
tfa status) (alias: --method-id)Description
Complete Two-Factor Authentication login by providing the 2FA code. For TOTP (default): Provide the 6-digit code from your Authenticator app For SMS: Include the —sms flag and provide -s/—secret from thetfa send-sms command response
For backup code: Use —backup-code instead of code (codes may only be used once)
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) |