Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 3 additions & 1 deletion .github/config/release.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
"seed": false,
"bootstrap": false,
"branches": false,
"apps-cli": false
"apps-cli": false,
"migrate-rte": false,
"bulk-operations": false
}
}
18 changes: 18 additions & 0 deletions .github/workflows/release-v2-beta-plugins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,21 @@ jobs:
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
8 changes: 8 additions & 0 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,11 @@ jobs:
- 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
16 changes: 15 additions & 1 deletion 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, Developer Hub apps, 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 @@ -48,6 +48,20 @@ CI: [.github/workflows/unit-test.yml](.github/workflows/unit-test.yml) and other
- **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.
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).
2 changes: 2 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/cli-cm-migrate-rte@2.0.0-beta
```

**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 Down
2 changes: 1 addition & 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 Down
13 changes: 13 additions & 0 deletions packages/contentstack-bulk-operations/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
root = true

[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false


21 changes: 21 additions & 0 deletions packages/contentstack-bulk-operations/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
*-debug.log
*-error.log
/.nyc_output
/dist
/lib
/tmp
node_modules
oclif.manifest.json
.env
*.log
tsconfig.tsbuildinfo
.vscode
*.env
coverage
.husky/_
.nvmrc
report.json
/doc
/logs
/bulk-operation
.DS_Store
14 changes: 14 additions & 0 deletions packages/contentstack-bulk-operations/.mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"require": [
"test/helpers/init.js",
"ts-node/register"
],
"watch-extensions": [
"ts"
],
"recursive": true,
"reporter": "spec",
"timeout": 60000,
"exit": true,
"spec": ["test/**/*.test.ts"]
}
27 changes: 27 additions & 0 deletions packages/contentstack-bulk-operations/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
*
!lib/**
!bin/**
!oclif.manifest.json
!npm-shrinkwrap.json
lib/**/*.test.js
lib/**/*.test.d.ts
*.test.ts
.vscode
.github
src
test
eslint.config.js
.prettierrc
.prettierignore
.editorconfig
.mocharc.json
.nycrc
tsconfig.json
.husky
*.log
coverage
.env
*.env
.nvmrc


1 change: 1 addition & 0 deletions packages/contentstack-bulk-operations/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
legacy-peer-deps=true
28 changes: 28 additions & 0 deletions packages/contentstack-bulk-operations/.nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"extension": [
".ts"
],
"include": [
"src/**/*.ts"
],
"exclude": [
"**/*.d.ts",
"test/**",
"lib/**"
],
"reporter": [
"text",
"lcov",
"html",
"json",
"json-summary",
"clover"
],
"all": true,
"check-coverage": true,
"lines": 80,
"statements": 80,
"functions": 80,
"branches": 75
}

9 changes: 9 additions & 0 deletions packages/contentstack-bulk-operations/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
lib
node_modules
coverage
*.log
dist
oclif.manifest.json
tsconfig.tsbuildinfo


10 changes: 10 additions & 0 deletions packages/contentstack-bulk-operations/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"semi": true,
"singleQuote": true,
"trailingComma": "es5",
"printWidth": 120,
"tabWidth": 2,
"useTabs": false,
"arrowParens": "always"
}

21 changes: 21 additions & 0 deletions packages/contentstack-bulk-operations/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