Skip to main content
Request a 2FA verification code via SMS. Returns a secret token needed for the next step (vastai tfa activate or vastai tfa login).

Usage

Options

string
Phone number to receive the SMS code in E.164 format (e.g., +12345678901). If omitted, uses the phone number on your account.

Examples

The command prints a secret token. Use it with the code you receive:
If the code expires before you use it, run vastai tfa resend-sms --secret <SECRET> to get a new one.

Global Options

The following options are available for all commands: