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:add
Remove MFA Secret
Use the config:mfa:remove command to remove the MFA secret.
Usage
csdx config:mfa:remove
Options
- -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
More articles in "Contentstack CLI Core Commands"
Export Content Using the CLI
Learn more
Import Content Using the CLI
Learn more
CLI-Supported Features for Export, Import, and Clone Operations
Learn more
Overwrite Existing Content using CLI Import
Learn more
Cloning a Stack
Learn more
Bulk Publish and Unpublish Content
Learn more
CLI for Launch
Learn more
Compare and Merge Branches Using the CLI
Learn more
Configure Early Access in the CLI
Learn more
Configure Rate Limits in the CLI
Learn more
Configure CLI Logging Preferences
Learn more
Configure Proxy Settings in CLI
Learn more
Audit Plugin
Learn more
Query-based Export
Learn more
Bulk Operations in CLI
Learn more
