Skip to main content
Update a 2FA method’s settings

Usage

vastai tfa update METHOD_ID [--label LABEL] [--set-primary]

Arguments

method_id
integer
required
ID of the 2FA method to update (see vastai tfa status)

Options

-l
string
New label/name for this 2FA method (alias: --label)
-p
string
Set this method as the primary/default 2FA method (alias: --set-primary)

Description

Update the label or primary status of a 2FA method. The label is a friendly name to help you identify different methods (e.g. “Work Phone”, “Personal Authenticator”). The primary method is your preferred/default 2FA method.

Examples

vastai tfa update 123 --label "Work Phone"
 vastai tfa update 456 --set-primary
 vastai tfa update 789 --label "Backup Authenticator" --set-primary

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)