Skip to main content
Request a 2FA SMS verification code

Usage

vastai tfa send-sms [--phone-number PHONE_NUMBER]

Options

-p
string
Phone number to receive SMS code (E.164 format, e.g., +1234567890) (alias: --phone-number)

Description

Request a two-factor authentication code to be sent via SMS. If —phone-number is not provided, uses the phone number on your account. The secret token will be returned and must be used with ‘vastai tfa activate’.

Examples

vastai tfa send-sms
 vastai tfa send-sms --phone-number +12345678901

Global Options

The following options are available for all commands:
OptionDescription
--url URLServer REST API URL
--retry NRetry limit
--rawOutput machine-readable JSON
--explainVerbose explanation of API calls
--api-key KEYAPI key (defaults to ~/.config/vastai/vast_api_key)