Contentstack LogoContentstack Logo

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

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
Was this article helpful?
^