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.
Currently, the CLI is in Beta and supports content management scripts through which you can perform the following tasks:
- Bulk publish content
- Export content
- Import content
Contentstack account Node.js version 8 or above
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.
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
auth: To perform authentication-related activities
cm: To perform content management activities such as bulk publish, import, and export content
help: To list the helpful commands in CLI
config: To set regions and customize them
To get a more detailed documentation for every command, visit the CLI section in our docs.