Skip to main content
Generate a new set of backup codes. Requires 2FA verification.

Usage

Options

string
2FA code from your Authenticator app, SMS, or Email. Exactly one of --code or --backup-code is required.
string
One-time backup code to authorize regeneration. Exactly one of --code or --backup-code is required.
string
2FA method type to use for verification. Choices: email, sms, totp. Only use when you have exactly one method of this type.
string
Secret token required when verifying with --method-type sms or --method-type email. Obtain from vastai tfa send-sms or vastai tfa send-email.
string
ID of the 2FA method to use for verification if you have more than one of the same type. Get the ID from vastai tfa status.

Examples

Warning: Regenerating codes immediately invalidates all existing backup codes. Save the new codes in a secure location — they are not shown again.

Global Options

The following options are available for all commands: