Skip to main content
Activate a new 2FA method by verifying the code. Run vastai tfa auth-new before this command to authorize adding a new method.

Usage

Arguments

string
required
6-digit verification code from SMS or Authenticator app.

Options

string
required
Secret token from the setup process. For TOTP, obtained from vastai tfa totp-setup. For SMS, obtained from vastai tfa send-sms.
string
New 2FA method type to activate. Choices: sms, totp. Treated as totp when neither this flag nor --phone-number is supplied.
string
Phone number for SMS method in E.164 format (e.g., +12345678901). Required when activating an SMS method.
string
Friendly label for the new 2FA method (e.g., “Work Authenticator”).

Examples

If this is your first 2FA method, backup codes are generated and displayed after activation. Save them in a secure location.

Global Options

The following options are available for all commands: