Skip to content

Latest commit

History

History
94 lines (70 loc) · 6.6 KB

File metadata and controls

94 lines (70 loc) · 6.6 KB

Contentstack CLI plugins – Agent guide

Universal entry point for contributors and AI agents. Detailed conventions live in skills/*/SKILL.md.

What this repo is

FieldDetail
Name:Contentstack CLI plugins (pnpm monorepo; root package name csdx)
Purpose:OCLIF plugins that extend the Contentstack CLI (import/export, clone, migration, migrate RTE, bulk operations, seed, audit, variants, Developer Hub apps, TypeScript codegen, 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)

AreaDetails
LanguageTypeScript / JavaScript, Node >= 18 (engines in root package.json)
Buildpnpm workspaces (packages/*); per package: tsc, OCLIF manifest/readme where applicable → lib/
TestsMocha + Chai; layouts under packages/*/test/ (see skills/testing/SKILL.md)
Lint / coverageESLint in packages that define lint scripts; nyc where configured
OtherOCLIF v4, Husky

Commands (quick reference)

Command typeCommand
Buildpnpm build
Testpnpm test
Lintpnpm run lint in a package that defines lint (no root aggregate lint script)

CI: .github/workflows/unit-test.yml and other workflows under .github/workflows/.

Where the documentation lives: skills

SkillPathWhat it covers
Development workflowskills/dev-workflow/SKILL.mdpnpm commands, CI, TDD expectations, PR checklist
Contentstack CLIskills/contentstack-cli/SKILL.mdPlugin commands, OCLIF, Contentstack APIs (incl. app:* / @contentstack/apps-cli)
Frameworkskills/framework/SKILL.mdUtilities, config, logging, errors (incl. Developer Hub SDK, manifests, GraphQL)
Testingskills/testing/SKILL.mdMocha/Chai, coverage, mocks
Code reviewskills/code-review/SKILL.mdPR review for this monorepo

Apps CLI plugin (@contentstack/apps-cli)

Tsgen plugin (contentstack-cli-tsgen)

Content Type plugin (contentstack-cli-content-type)

Regex Validate plugin (@contentstack/cli-cm-regex-validate)

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

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

Using Cursor (optional)

If you use Cursor, .cursor/rules/README.md only points to AGENTS.md—same docs as everyone else.