> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vast.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# vastai tfa resend-sms

Resend an SMS 2FA verification code. Use this if you didn't receive the original code or it expired.

## Usage

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

## Options

<ParamField path="--secret" type="string" required>
  Secret token from the original `vastai tfa send-sms` request. (alias: `-s`)
</ParamField>

<ParamField path="--phone-number" type="string">
  Phone number to resend the code to in E.164 format (e.g., `+12345678901`). If omitted, uses the phone number from the original request. (alias: `-p`)
</ParamField>

## Examples

```bash theme={null}
# Resend to the same phone number as the original request
vastai tfa resend-sms --secret abc123def456

# Resend to a specific phone number
vastai tfa resend-sms --secret abc123def456 --phone-number +12345678901
```

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


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.