Usage
Arguments
6-digit verification code from SMS or Authenticator app
Options
Use SMS 2FA method instead of TOTP
Secret token from setup process (required)
Phone number for SMS method (E.164 format)
Label for the new 2FA method (alias:
--label)Description
Complete the 2FA setup process by verifying your code. For TOTP (Authenticator app):- Run ‘vastai tfa totp-setup’ to get the manual key/QR code and secret
- Enter the manual key or scan the QR code with your Authenticator app
- Run this command with the 6-digit code from your app and the secret token from step 1
- Run ‘vastai tfa send-sms —phone-number <PHONE_NUMBER>’ to receive SMS and get secret token
- Run this command with the code you received via SMS and the phone number it was sent to
Examples
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) |