Configure MFA Secret Using CLI
To use Multi-Factor Authentication (MFA) with the Contentstack CLI, you must first set up or remove your MFA secret. This guide walks you through how to configure your MFA settings using CLI commands.
Prerequisites
- Contentstack account
- CLI installed
- MFA enabled
- A copy of MFA secret
Set MFA Secret
Use the config:mfa:add command to set the MFA secret used to generate one-time passwords (OTP).
Usage
csdx config:mfa:addRemove MFA Secret
Use the config:mfa:remove command to remove the MFA secret.
Usage
csdx config:mfa:removeOptions
- -y, --yes: Skips the confirmation prompt and proceeds with the logout process.
Example
- To remove the MFA secret by skipping the confirmation prompt:
csdx config:mfa:remove -y
