> ## Documentation Index
> Fetch the complete documentation index at: https://vastai-80aa3a82-auto-cli-sdk-preview-pr-398.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# vastai tfa resend-sms

Resend SMS 2FA code

## Usage

```bash theme={null}
vastai tfa resend-sms --secret SECRET [--phone-number PHONE_NUMBER]
```

## Options

<ParamField path="--phone-number" type="string">
  Phone number to receive SMS code (E.164 format, e.g., +1234567890)
</ParamField>

<ParamField path="--secret" type="string">
  Secret token from the original 2FA login attempt
</ParamField>

## 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

```bash theme={null}
vastai tfa resend-sms --secret abc123def456
```

## Global Options

The following options are available for all commands:

| Option          | Description                                           |
| --------------- | ----------------------------------------------------- |
| `--url URL`     | Server REST API URL                                   |
| `--retry N`     | Retry limit                                           |
| `--raw`         | Output machine-readable JSON                          |
| `--explain`     | Verbose explanation of API calls                      |
| `--api-key KEY` | API key (defaults to `~/.config/vastai/vast_api_key`) |
