Skip to content

contentstack/cli

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

69c4586 · Feb 27, 2024
Feb 22, 2024
Feb 26, 2024
Nov 15, 2023
Feb 7, 2023
Jun 20, 2022
Apr 13, 2022
May 8, 2023
Nov 29, 2022
May 6, 2023
Jan 11, 2024
Jan 11, 2024
Jun 20, 2022
Feb 7, 2023
Feb 27, 2024
Feb 27, 2024
Feb 27, 2024
Feb 7, 2023

Repository files navigation

Contentstack CLI

Contentstack is a headless CMS with an API-first approach that puts content at the centre. It is designed to simplify the process of publication by separating code from content.

CLI supports content management scripts through which you can perform the following tasks:

  • Bulk publish content
  • Export content
  • Import content
  • Clone Stack
  • Seed Stack from GitHub
  • Perform Launch operations
  • Migrate content
  • Migrate HTML RTE to JSON RTE content
  • Change Master Locale
  • Use Bootstrap plugin
  • Use Tsgen plugin

Installing CLI

Prerequisites

Contentstack account Node.js version 16 or above

Installation

To install CLI on your system, run the below command in your terminal:

npm install -g @contentstack/cli

To verify the installation, run csdx in the command window.

Usage

After the successful installation of CLI, use the --help parameter to display the help section of the CLI. You can even combine this parameter with a specific command to get the help section of that command.

$ csdx --help

Namespaces

auth: To perform authentication-related activities

cm: To perform content management activities such as bulk publish, import, and export, [export-to-csv] (/packages/contentstack-export-to-csv), [seed] (/packages/contentstack-seed)

help: To list the helpful commands in CLI

config: To set regions and customize them

Documentation

To get a more detailed documentation for every command, visit the CLI section in our docs.

Useful Plugins