Skip to main content
Generate a TOTP secret and QR code for setting up an Authenticator app. Run vastai tfa auth-new before this command to authorize adding a new method.

Usage

Examples

This displays a QR code and a manual entry key. Scan the QR code or type the key into your authenticator app (Google Authenticator, Authy, Microsoft Authenticator, 1Password, or any TOTP-compatible app). After adding the account to your app, complete setup with:
Where <SECRET> is the secret token printed by this command and <CODE> is the 6-digit code from your authenticator app.

Global Options

The following options are available for all commands: