Usage
Options
2FA code from Authenticator app, SMS, or Email
Secret token from previous auth step
2FA Method type. Only use when you only have one method of this type
Allowed values: email, sms, totp
One-time backup code (alternative to regular 2FA code)
2FA Method ID if you have more than one of the same type (‘id’ from
tfa status)Description
Authorize your account to add a new 2FA method by verifying via email or an existing method. This is a required step to ensure that only you can add new 2FA methods to your account. Step 1. Run command with your chosen verification method:- If you have an existing 2FA method set up, you can use ‘—backup-code BACKUP_CODE’ to immediately authorize (skip Step 2)
- Use —method-type or —method-id ID to specify which existing method to use for verification (see
vastai tfa statusfor available methods and their IDs) - Use —method-type email if you have a verified email address and/or no other 2FA methods set up to receive a code via email
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) |