Skip to content
Open
Show file tree
Hide file tree
Changes from 12 commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
6b01505
feat: migrate Apps CLI plugin to cli-plugins monorepo and add related…
harshitha-cstk May 19, 2026
e4439a4
refactor: remove obsolete Apps CLI documentation and update dependencies
harshitha-cstk May 21, 2026
aefa70f
update pnpm lock file
harshitha-cstk May 21, 2026
99fee1c
refactor: enhance documentation for Apps CLI and remove obsolete files
harshitha-cstk May 21, 2026
5343fc1
Merge branch 'v2-dev' into enh/dx-7524-migrate-bulk-operation-v2
harshitha-cstk May 22, 2026
c741316
feat: migrate RTE plugin to cli-plugins monorepo
harshitha-cstk May 22, 2026
50b9462
feat: add bulk operations plugin to cli-plugins monorepo
harshitha-cstk May 22, 2026
c93a2bd
Merge branch 'feat/migrate-external-cli-plugins-v2' into enh/dx-7524-…
harshitha-cstk May 22, 2026
9bea445
Merge branch 'enh/dx-7524-migrate-apps-cli-v2' into enh/dx-7527-migra…
harshitha-cstk May 22, 2026
8aae1ca
Merge pull request #154 from contentstack/enh/dx-7524-migrate-apps-cl…
harshitha-cstk May 22, 2026
9cd7ead
Merge branch 'enh/dx-7524-migrate-apps-cli-v2' into enh/dx-7527-migra…
harshitha-cstk May 22, 2026
66b6674
feat(tsgen): migrate contentstack-cli-tsgen into cli-plugins monorepo
cs-raj May 24, 2026
310e937
updated test workflow
cs-raj May 24, 2026
bac4f66
feat: migrate contentstack-cli-content-type v2 into cli-plugins monorepo
cs-raj May 24, 2026
68029fc
Dependency update
cs-raj May 24, 2026
54f5cb3
feat: migrate @contentstack/cli-cm-regex-validate to cli-plugins mono…
cs-raj May 25, 2026
721e036
fix: correct esModuleInterop imports for jsonexport and cli-table3
cs-raj May 25, 2026
a440c6c
Merge pull request #161 from contentstack/enh/dx-7527-migrate-bulk-op…
harshitha-cstk May 25, 2026
5556af5
Merge branch 'feat/migrate-external-cli-plugins-v2' into enhc/DX-7530…
cs-raj May 25, 2026
ac0fa34
lock file update
cs-raj May 25, 2026
90c1ff4
Merge pull request #171 from contentstack/enhc/DX-7530-migrate-cli-re…
cs-raj May 25, 2026
1ee9c02
Merge branch 'feat/migrate-external-cli-plugins-v2' into enhc/DX-7525
cs-raj May 25, 2026
4b41a77
Merge pull request #168 from contentstack/enhc/DX-7525
cs-raj May 25, 2026
977bfb6
Merge branch 'feat/migrate-external-cli-plugins-v2' into enhc/DX-7531…
cs-raj May 25, 2026
0f8befe
Merge pull request #166 from contentstack/enhc/DX-7531-migrate-tsgen-v2
cs-raj May 25, 2026
48b4d3f
lock file update
cs-raj May 26, 2026
5cda6a5
Merge branch 'v2-dev' into feat/migrate-external-cli-plugins-v2
cs-raj May 26, 2026
6c76d92
lock file update
cs-raj May 26, 2026
f785215
fix: removed prepare script from the migrate-rte and bulk-operation
cs-raj May 26, 2026
e43d846
fix: removed the deprecated flag from contetn-type and added messages…
cs-raj May 26, 2026
21ef641
added flag type
cs-raj May 26, 2026
5820a2c
fix: using the ux from cli-utilities and updated the regex-validate t…
cs-raj May 26, 2026
d047eb1
dependency update
cs-raj May 26, 2026
0875dad
Merge pull request #181 from contentstack/fix/external-plugin-migration
cs-raj May 26, 2026
7a3ecc3
Merge branch 'v2-dev' into feat/migrate-external-cli-plugins-v2
harshitha-cstk May 26, 2026
b15ee3e
feat: add new command bulk delete and bulk move
May 28, 2026
3c49b40
Merge branch 'v2-dev' into feat/migrate-external-cli-plugins-v2
May 28, 2026
72d9ebd
Merge branch 'feat/migrate-external-cli-plugins-v2' into feat/DX-6009…
May 28, 2026
cdd5265
chore: update lockfile
May 28, 2026
5fb56ca
Merge pull request #190 from contentstack/feat/DX-6009-bulk
naman-contentstack May 28, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/config/release.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
"migration": false,
"seed": false,
"bootstrap": false,
"branches": false
"branches": false,
"apps-cli": false,
"migrate-rte": false,
"bulk-operations": false
}
}
26 changes: 26 additions & 0 deletions .github/workflows/release-v2-beta-plugins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,29 @@ jobs:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/contentstack-query-export/package.json
tag: beta

# Apps CLI
- name: Publishing apps-cli (Beta)
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/contentstack-apps-cli/package.json
tag: beta

# Migrate RTE
- name: Publishing migrate-rte (Beta)
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/contentstack-migrate-rte/package.json
access: public
tag: beta

# Bulk Operations
- name: Publishing bulk-operations (Beta)
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./packages/contentstack-bulk-operations/package.json
access: public
tag: beta
12 changes: 12 additions & 0 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,15 @@ jobs:
- name: Run tests for Contentstack Query Export
working-directory: ./packages/contentstack-query-export
run: npm run test:unit

- name: Run tests for Contentstack Apps CLI
working-directory: ./packages/contentstack-apps-cli
run: npm run test:unit:report:json

- name: Run tests for Contentstack Migrate RTE
working-directory: ./packages/contentstack-migrate-rte
run: npm test

- name: Run tests for Contentstack Bulk Operations
working-directory: ./packages/contentstack-bulk-operations
run: npm test
18 changes: 3 additions & 15 deletions .talismanrc
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
fileignoreconfig:
- filename: pnpm-lock.yaml
checksum: 264c0294416c2aa2028c8283831aa7ed17d63e8c69553a7b2b9774336bc0811f
- filename: packages/contentstack-bootstrap/test/bootstrap.test.js
checksum: 37b502482fc32831c39091dd1755e8b0a9f6f8bac89e5eb9d397c6af1f213d83
- filename: packages/contentstack-bootstrap/test/utils.test.js
checksum: e0ca2eb58ab1c3ac3b4d9c14a17bb8f4788678074dd65f6acc128a8a8f51997f
- filename: packages/contentstack-export-to-csv/test/unit/base-command.test.ts
checksum: 4c2befce053135453c1db31f21351bf3f797ff2f15723ca52e183ed6ed9e48e4
- filename: packages/contentstack-export-to-csv/test/unit/utils/teams-export.functional.test.ts
checksum: 17cdae91c22a935309bf4514b6616f1aea91fd0166fede182e673ade43667a36
- filename: packages/contentstack-export-to-csv/test/unit/utils/interactive.test.ts
checksum: 72c1e719e5c51a42debc817a5fe5bb1adee63b2d823df2e9ee36d0b970db7886
- filename: packages/contentstack-export-to-csv/test/unit/utils/api-client.functional.test.ts
checksum: 6d6638919ef7260f642d32cf730e2654d159d2d3582714fb2d7a9c209b9c6eeb
- filename: packages/contentstack-export-to-csv/test/unit/commands/export-to-csv.test.ts
checksum: 9621a9d013796e99a25e894404c4d7c6799bd33bde77852f09d5e32b4d1c1c49
checksum: e5b5f8ab64f4f27a1483e426cc01d7388482263e1d6fe3baf1caafcf2878ebb2
- filename: skills/framework/SKILL.md
checksum: c5746de64b1e7d1df051c4337de5eb32de6a4c85c7297aa408838d304bb2d771
version: '1.0'
28 changes: 25 additions & 3 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
| Field | Detail |
| --- | --- |
| **Name:** | Contentstack CLI plugins (pnpm monorepo; root package name `csdx`) |
| **Purpose:** | OCLIF plugins that extend the Contentstack CLI (import/export, clone, migration, seed, audit, variants, etc.). |
| **Purpose:** | OCLIF plugins that extend the Contentstack CLI (import/export, clone, migration, migrate RTE, bulk operations, seed, audit, variants, Developer Hub apps, etc.). |
| **Out of scope (if any):** | The **core** CLI aggregation lives in the separate `cli` monorepo; this repo ships plugin packages only. |

## Tech stack (at a glance)
Expand Down Expand Up @@ -35,11 +35,33 @@ CI: [.github/workflows/unit-test.yml](.github/workflows/unit-test.yml) and other
| Skill | Path | What it covers |
| --- | --- | --- |
| Development workflow | [skills/dev-workflow/SKILL.md](skills/dev-workflow/SKILL.md) | pnpm commands, CI, TDD expectations, PR checklist |
| Contentstack CLI | [skills/contentstack-cli/SKILL.md](skills/contentstack-cli/SKILL.md) | Plugin commands, OCLIF, Contentstack APIs |
| Framework | [skills/framework/SKILL.md](skills/framework/SKILL.md) | Utilities, config, logging, errors |
| Contentstack CLI | [skills/contentstack-cli/SKILL.md](skills/contentstack-cli/SKILL.md) | Plugin commands, OCLIF, Contentstack APIs (incl. `app:*` / `@contentstack/apps-cli`) |
| Framework | [skills/framework/SKILL.md](skills/framework/SKILL.md) | Utilities, config, logging, errors (incl. Developer Hub SDK, manifests, GraphQL) |
| Testing | [skills/testing/SKILL.md](skills/testing/SKILL.md) | Mocha/Chai, coverage, mocks |
| Code review | [skills/code-review/SKILL.md](skills/code-review/SKILL.md) | PR review for this monorepo |

## Apps CLI plugin (`@contentstack/apps-cli`)

- **Package path:** [packages/contentstack-apps-cli](packages/contentstack-apps-cli)
- **npm name:** `@contentstack/apps-cli` (unchanged for consumers)
- **Migrated from:** [contentstack/contentstack-apps-cli](https://github.com/contentstack/contentstack-apps-cli) — see [APPS-CLI-MIGRATION.md](APPS-CLI-MIGRATION.md)
- **v1 / v2:** Maintain on `v1-dev` (1.x CLI deps) and `v2-dev` / `v2-beta` (2.x beta deps) branches; align `@contentstack/cli-command` and `@contentstack/cli-utilities` versions with the target CLI line.
- **Docs:** OCLIF / `app:*` commands → [contentstack-cli](skills/contentstack-cli/SKILL.md#apps-cli-commands-app); SDK, manifests, GraphQL, HTTP → [framework](skills/framework/SKILL.md#apps-cli-plugin-contentstackapps-cli)

## Migrate RTE plugin (`@contentstack/cli-cm-migrate-rte`)

- **Package path:** [packages/contentstack-migrate-rte](packages/contentstack-migrate-rte)
- **npm name:** `@contentstack/cli-cm-migrate-rte` (unchanged)
- **Migrated from:** [contentstack/cli-cm-migrate-rte](https://github.com/contentstack/cli-cm-migrate-rte) — see [MIGRATE-RTE-MIGRATION.md](MIGRATE-RTE-MIGRATION.md)
- **Command:** `csdx cm:entries:migrate-html-rte` — JS sources in `src/`; `pnpm --filter @contentstack/cli-cm-migrate-rte run build` (`oclif manifest`) and `test` (see [dev-workflow](skills/dev-workflow/SKILL.md))

## Bulk operations plugin (`@contentstack/cli-bulk-operations`)

- **Package path:** [packages/contentstack-bulk-operations](packages/contentstack-bulk-operations)
- **npm name:** `@contentstack/cli-bulk-operations` (unchanged)
- **Migrated from:** [contentstack/cli-bulk-operations](https://github.com/contentstack/cli-bulk-operations) — see [BULK-OPERATIONS-MIGRATION.md](BULK-OPERATIONS-MIGRATION.md) (commands + repository)
- **Commands:** `csdx cm:stacks:bulk-entries`, `csdx cm:stacks:bulk-assets`, `csdx cm:stacks:bulk-taxonomies` — see [dev-workflow](skills/dev-workflow/SKILL.md)

## Using Cursor (optional)

If you use **Cursor**, [.cursor/rules/README.md](.cursor/rules/README.md) only points to **`AGENTS.md`**—same docs as everyone else.
51 changes: 51 additions & 0 deletions APPS-CLI-MIGRATION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Apps CLI migration: standalone repo → cli-plugins monorepo

## Summary

The **@contentstack/apps-cli** plugin (`contentstack-apps-cli`) has moved from the standalone repository [contentstack/contentstack-apps-cli](https://github.com/contentstack/contentstack-apps-cli) into the [contentstack/cli-plugins](https://github.com/contentstack/cli-plugins) monorepo at **`packages/contentstack-apps-cli`**.

The **npm package name is unchanged**: `@contentstack/apps-cli`. Install and command usage stay the same.

## Repository and issue tracking

| Before | After |
| --- | --- |
| Source: `github.com/contentstack/contentstack-apps-cli` | Source: `github.com/contentstack/cli-plugins` → `packages/contentstack-apps-cli` |
| Issues: contentstack-apps-cli repo | Issues: [cli-plugins issues](https://github.com/contentstack/cli-plugins/issues) (label or mention `apps-cli` / `@contentstack/apps-cli`) |

The standalone **contentstack-apps-cli** repository is **archived** after the first release from cli-plugins. Open PRs and bugs should be recreated or linked in cli-plugins.

## Version lines (1.x vs 2.x)

| CLI line | cli-plugins branch | Apps plugin notes |
| --- | --- | --- |
| **1.x** | `v1-dev` / `v1-beta` | `@contentstack/cli-command` and `@contentstack/cli-utilities` on 1.x-compatible ranges |
| **2.x beta** | `v2-dev` / `v2-beta` | Align with 2.x beta core packages (same pattern as export, import, bootstrap) |

Develop and release each line on its branch; do not mix 1.x and 2.x dependency pins in the same branch.

## Install (unchanged)

```bash
csdx plugins:install @contentstack/apps-cli
# or
npm install -g @contentstack/apps-cli
```

## Local development

Clone [cli-dev-workspace](https://github.com/contentstack/cli-dev-workspace) (or cli-plugins only), then:

```bash
cd cli-plugins
pnpm install
pnpm --filter @contentstack/apps-cli run build
pnpm --filter @contentstack/apps-cli test
```

See [AGENTS.md](./AGENTS.md), [skills/contentstack-cli/SKILL.md](./skills/contentstack-cli/SKILL.md#apps-cli-commands-app), and [skills/framework/SKILL.md](./skills/framework/SKILL.md#apps-cli-plugin-contentstackapps-cli) for contributor docs.

## Related migrations

- Core CLI: [cli](https://github.com/contentstack/cli) monorepo
- Other external plugins (bulk operations, migrate-rte): same cli-plugins consolidation effort
10 changes: 10 additions & 0 deletions BULK-OPERATIONS-MIGRATION.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
# 🔄 Migration Guide: From Bulk Publish to Bulk Operations Commands

> **Migrating from @contentstack/cli-cm-bulk-publish (v1.x) to New Unified Commands @contentstack/cli-bulk-operations (v1.x)**

## Repository

| Before | After |
| --- | --- |
| [contentstack/cli-bulk-operations](https://github.com/contentstack/cli-bulk-operations) | [contentstack/cli-plugins](https://github.com/contentstack/cli-plugins) → `packages/contentstack-bulk-operations` |
| Issues on standalone repo | [cli-plugins issues](https://github.com/contentstack/cli-plugins/issues) |

npm package name unchanged: **`@contentstack/cli-bulk-operations`**. Local dev: `pnpm --filter @contentstack/cli-bulk-operations run build` / `test` from cli-plugins (or cli-dev-workspace).

---

## What Changed?
Expand Down
40 changes: 40 additions & 0 deletions MIGRATE-RTE-MIGRATION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Migrate RTE migration: standalone repo → cli-plugins monorepo

## Summary

**@contentstack/cli-cm-migrate-rte** moved from [contentstack/cli-cm-migrate-rte](https://github.com/contentstack/cli-cm-migrate-rte) into [contentstack/cli-plugins](https://github.com/contentstack/cli-plugins) at **`packages/contentstack-migrate-rte`**.

The npm package name and command **`csdx cm:entries:migrate-html-rte`** are unchanged.

## Repository and issues

| Before | After |
| --- | --- |
| `github.com/contentstack/cli-cm-migrate-rte` | `github.com/contentstack/cli-plugins` → `packages/contentstack-migrate-rte` |
| Issues on standalone repo | [cli-plugins issues](https://github.com/contentstack/cli-plugins/issues) |

## Version lines (1.x vs 2.x)

| CLI line | cli-plugins branch | Plugin notes |
| --- | --- | --- |
| **1.x** | `v1-dev` / `v1-beta` | 1.x-compatible `cli-command` / `cli-utilities` |
| **2.x beta** | `v2-dev` / `v2-beta` | e.g. `2.0.0-beta.x`; uses `@contentstack/json-rte-serializer`, jsdom |

## Install

```bash
csdx plugins:install @contentstack/cli-cm-migrate-rte
# or
npm install -g @contentstack/cli-cm-migrate-rte
```

## Local development

```bash
cd cli-dev-workspace
pnpm install
pnpm --filter @contentstack/cli-cm-migrate-rte run build
pnpm --filter @contentstack/cli-cm-migrate-rte test
```

Core CLI: add `@contentstack/cli-cm-migrate-rte` to `cli/packages/contentstack` dependencies and `oclif.plugins` (use `workspace:*` in cli-dev-workspace).
10 changes: 10 additions & 0 deletions MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ npm install -g @contentstack/cli-cm-migrate-rte
csdx plugins:install @contentstack/[email protected]
```

**Source repository:** Plugin code lives in [cli-plugins](https://github.com/contentstack/cli-plugins) at `packages/contentstack-migrate-rte` (formerly [cli-cm-migrate-rte](https://github.com/contentstack/cli-cm-migrate-rte)). See [MIGRATE-RTE-MIGRATION.md](./MIGRATE-RTE-MIGRATION.md).

**Usage:**
After installation, RTE migration commands will be available through the CLI:
```bash
Expand All @@ -180,6 +182,14 @@ csdx cm:migrate-rte --help

**Migration Action:** Refer to the detailed [Bulk Operations Migration Guide](./BULK-OPERATIONS-MIGRATION.md) for complete command mappings and examples.

### 7. 📱 Apps CLI plugin repository move

**What Changed:**
- The Apps CLI plugin (`@contentstack/apps-cli`) source moved from the standalone [contentstack-apps-cli](https://github.com/contentstack/contentstack-apps-cli) repository into this **cli-plugins** monorepo at `packages/contentstack-apps-cli`
- The npm package name and `csdx app:*` commands are unchanged

**Migration Action:** For repository location, branching (1.x vs 2.x), and issue tracking, see the [Apps CLI Migration Guide](./APPS-CLI-MIGRATION.md).

**Quick Example:**
```bash
# Before (1.x.x)
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Contentstack is a headless CMS with an API-first approach that puts content at t

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

- Bulk publish content
- Bulk publish content (`cm:stacks:bulk-*` via `@contentstack/cli-bulk-operations`)
- Export content
- Import content
- Clone Stack
Expand All @@ -15,6 +15,7 @@ CLI supports content management scripts through which you can perform the follow
- 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


Expand Down
1 change: 1 addition & 0 deletions packages/contentstack-apps-cli/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/dist
42 changes: 42 additions & 0 deletions packages/contentstack-apps-cli/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"env": {
"node": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.json",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"extends": [
"plugin:@typescript-eslint/recommended"
],
"ignorePatterns": [
"lib/**/*",
"test/**/*"
],
"rules": {
"@typescript-eslint/no-unused-vars": [
"error",
{
"args": "none"
}
],
"@typescript-eslint/prefer-namespace-keyword": "error",
"quotes": "off",
"semi": "off",
"@typescript-eslint/no-redeclare": "off",
"eqeqeq": [
"error",
"smart"
],
"id-match": "error",
"no-eval": "error",
"no-var": "error",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-require-imports": "off",
"prefer-const": "error"
}
}
21 changes: 21 additions & 0 deletions packages/contentstack-apps-cli/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
*-debug.log
*-error.log
/.nyc_output
/dist
/lib
/package-lock.json
/tmp
/yarn.lock
node_modules
oclif.manifest.json
.env
*.log
tsconfig.tsbuildinfo
dependabot.yml
.vscode
*.todo
/bkp
.editorconfig
oclif.manifest.json
*.env
.vscode/
12 changes: 12 additions & 0 deletions packages/contentstack-apps-cli/.mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"require": [
"test/helpers/init.js",
"ts-node/register"
],
"watch-extensions": [
"ts"
],
"recursive": true,
"reporter": "spec",
"timeout": 60000
}
21 changes: 21 additions & 0 deletions packages/contentstack-apps-cli/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2026 Contentstack

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading
Loading