Skip to main content
Resend SMS 2FA code

Usage

vastai tfa resend-sms --secret SECRET [--phone-number PHONE_NUMBER]

Options

-p
string
Phone number to receive SMS code (E.164 format, e.g., +1234567890) (alias: --phone-number)
-s
string
Secret token from the original 2FA login attempt (alias: --secret)

Description

Resend the SMS verification code to your phone. This is useful if: • You didn’t receive the original SMS • The code expired before you could use it • You accidentally deleted the message You must provide the same secret token from the original request.

Examples

vastai tfa resend-sms --secret abc123def456

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)