Skip to main content
Authorize your account to add a new 2FA method. This step is required before running vastai tfa activate. For your first method, verification defaults to email. For subsequent methods, use an existing 2FA method.

Usage

Options

string
2FA method type to use for authorization. Choices: email, sms, totp. Defaults to email. Only use when you have exactly one method of this type.
string
2FA method ID to use if you have more than one of the same type. Get the ID from vastai tfa status.
string
One-time backup code. Using a backup code immediately authorizes without an interactive code prompt.
string
Secret token from a previous incomplete authorization attempt. Use with --code to resume.
string
2FA code from a previous incomplete authorization attempt. Use with --secret to resume.

Examples

Global Options

The following options are available for all commands: