← 全部工具

contentstack/cli

热度 75 更新于 开发与构建

Contentstack Command-line Interface (CLI)

githubauto-collected

安装

暂未验证可直接使用的安装命令,请查看项目官方文档或 Release。

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 22 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.

Migration Guide

If you're upgrading from CLI 1.x to 2.x, please refer to our comprehensive Migration Guide for:

  • Breaking changes and new default behaviors
  • Step-by-step migration instructions
  • New features like TypeScript module support and Progress Manager UI
  • Command syntax updates and configuration changes
  • Troubleshooting tips for common migration issues

📖 View Migration Guide →

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.