Skip to main content
Complete 2FA login by verifying your identity with a 2FA code or backup code. On success, saves the session key to ~/.config/vastai/vast_tfa_key.

Usage

Options

string
2FA code from Authenticator app, SMS, or Email. Exactly one of --code or --backup-code is required.
string
One-time backup code (alternative to regular 2FA code). Exactly one of --code or --backup-code is required.
string
2FA method type. Choices: email, sms, totp. Only use when you have exactly one method of this type.
string
Secret token from the previous login step. Required for SMS or Email 2FA (obtained from tfa send-sms or tfa send-email).
string
2FA method ID if you have more than one of the same type. Get the ID from vastai tfa status.

Examples

Global Options

The following options are available for all commands: