Use Contentstack Command-line Interface (CLI) to interact with Contentstack directly from your terminal.
Node.js v22 or higher — download from nodejs.org.
npm install -g @contentstack/cli
csdx --version csdx --help csdx auth:login
For complete documentation, visit the Contentstack CLI docs.
| Plugin | Description | Docs |
|---|---|---|
@contentstack/cli-auth |
Authentication — login, logout, token management | Docs |
@contentstack/cli-config |
Region and early-access header configuration | Docs |
@contentstack/cli-cm-import |
Import stacks and modules into Contentstack | Docs |
@contentstack/cli-cm-export |
Export stacks and modules from Contentstack | Docs |
@contentstack/cli-cm-seed |
Seed a stack from a GitHub repository | Docs |
@contentstack/cli-cm-bootstrap |
Bootstrap a new Contentstack project | Docs |
@contentstack/cli-cm-export-to-csv |
Export entries, taxonomies, terms, and org users to CSV | Docs |
@contentstack/cli-cm-clone |
Clone a stack to another stack | Docs |
@contentstack/cli-migration |
Run stack migration scripts | Docs |
@contentstack/cli-cm-branches |
Branch management — create, diff, and merge | Docs |
@contentstack/cli-audit |
Audit and fix content type and entry issues | Docs |
@contentstack/cli-bulk-operations |
Bulk operations across stack content | Docs |
These are Contentstack-owned plugins not bundled in the default install. Add any of them with:
csdx plugins:install <plugin-name>
| Plugin | Description | Docs |
|---|---|---|
@contentstack/apps-cli |
Build, deploy, and manage Contentstack apps | Docs |
contentstack-cli-tsgen |
Generate TypeScript typings from a stack's content types | Docs |
contentstack-cli-content-type |
Retrieve and inspect content types in a stack | Docs |
@contentstack/cli-launch |
Deploy and manage Contentstack Launch projects | Docs |
@contentstack/cli-cm-regex-validate |
Validate regex properties on content type and global fields | Docs |
@contentstack/cli-external-migrate |
Migrate content from an external source into Contentstack | — |
@contentstack/cli-cm-export-query |
Export stack content using query filters | Docs |