# @contentstack/cli-variants

> Variants plugin

Latest version **2.0.1** (published 2026-09-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install @contentstack/cli-variants
pnpm add @contentstack/cli-variants
yarn add @contentstack/cli-variants
bun add @contentstack/cli-variants
```

## Health

**Score 65/100 (B)** — status: active.

Positive: has types; no vulnerabilities; recently updated; high maintenance score; high quality score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 2.0.1 |
| Published | 2026-09-15 |
| First published | 2024-09-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 545.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | antony.raj@contentstack.com |
| Maintainers | mynk, cloudaccounts |
| Keywords | variant |

## Links

- npm: https://www.npmjs.com/package/@contentstack/cli-variants
- Repository: https://github.com/contentstack/cli-plugins
- Homepage: https://github.com/contentstack/cli-plugins#readme
- Issues: https://github.com/contentstack/cli-plugins/issues
- npm.io page: https://npm.io/package/@contentstack/cli-variants

## Dependencies (5)

- [lodash](https://npm.io/package/lodash.md) ^4.18.1
- [mkdirp](https://npm.io/package/mkdirp.md) ^1.0.4
- [winston](https://npm.io/package/winston.md) ^3.19.0
- [@oclif/core](https://npm.io/package/@oclif/core.md) ^4.11.14
- [@contentstack/cli-utilities](https://npm.io/package/@contentstack/cli-utilities.md) ~2.0.1

## Recent versions

- 2.0.1 (latest) — 2026-09-15
- 1.6.3 (v1-x) — 2026-08-13
- 2.0.0-beta.20 (beta) — 2026-07-29
- 2.0.0 — 2026-08-12
- 1.6.2 — 2026-08-05
- 1.6.1 — 2026-07-29
- 2.0.0-beta.19 — 2026-07-20
- 1.6.0 — 2026-07-13
- 2.0.0-beta.18 — 2026-07-13
- 2.0.0-beta.17 — 2026-06-29
- 1.5.2 — 2026-06-29
- 2.0.0-beta.16 — 2026-06-08
- 1.5.1 — 2026-06-01
- 2.0.0-beta.15 — 2026-06-01
- 2.0.0-beta.14 — 2026-05-25
- … 40 more at https://npm.io/package/@contentstack/cli-variants/versions

## README

# 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 (`cm:stacks:bulk-*` via `@contentstack/cli-bulk-operations`)
- 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
- Manage Developer Hub apps (`app:*` via `@contentstack/apps-cli`)
- 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](./MIGRATION.md) 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 →](./MIGRATION.md)**

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

```shell
$ csdx --help
```

## Namespaces
**auth**: To perform [authentication-related](/packages/contentstack-auth) activities

**cm**: To perform content management activities such as [bulk operations](/packages/contentstack-bulk-operations), [import](/packages/contentstack-import), and [export](/packages/contentstack-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](https://www.contentstack.com/docs/headless-cms/cli) in our docs.

## Useful Plugins

- [Generate TypeScript typings from a Stack](https://github.com/contentstack/cli-plugins/tree/main/packages/contentstack-cli-tsgen) (`contentstack-cli-tsgen`)
- [Manage Content Types (list, details, audit, compare, diagram)](https://github.com/contentstack/cli-plugins/tree/main/packages/contentstack-content-type) (`contentstack-cli-content-type`)
- [Validate regex fields in Content Types and Global Fields](https://github.com/contentstack/cli-plugins/tree/main/packages/contentstack-cli-cm-regex-validate) (`@contentstack/cli-cm-regex-validate`)

---
_Source: https://npm.io/package/@contentstack/cli-variants · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
