Skip to content

feat!: Contentstack CLI v2 GA — production release - #2701

Merged
cs-raj merged 831 commits into
mainfrom
development
Aug 12, 2026
Merged

feat!: Contentstack CLI v2 GA — production release#2701
cs-raj merged 831 commits into
mainfrom
development

Conversation

@cs-raj

@cs-rajcs-raj commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR merges the development branch into main, promoting Contentstack CLI v2 from beta to General Availability. The v2 production release pipeline goes live and all beta-only infrastructure is removed.

Jira Epic: DX (CLI v2 Post-Release Stabilization)
Note: The final packages/contentstack/package.json version bump (dep ranges ~2.0.0-beta.X2.0.0) will be committed to development as the last step before this PR is merged.


What's in this PR

Release Infrastructure

ChangeDetail
Added production release pipelinerelease-production-pipeline.yml → triggers on push to main; calls release-production-platform-plugins.yml then release-production-core.yml with secrets: inherit
Removed beta release workflowsrelease.yml, release-v2-beta-core.yml, release-v2-beta-platform-plugins.yml deleted from development
All npm publishes tagged latestv2 is the new latest; v1 releases will use v1 dist-tag on the v1-legacy branch

Breaking Changes

Refer to MIGRATION.md for the full guide. Key breaking changes:

  • @contentstack/cli-launch is no longer bundled. It is now an opt-in plugin. Users must install it manually: csdx plugins:install @contentstack/cli-launch. The CLI will suggest the install command when a Launch command is invoked without the plugin present.
  • Short flags removed from auth and config commands that conflicted with oclif internals.
  • Dead --branch flag removed from auth:tokens:add.
  • auth:tokens namespace now has its own help text; auth:tokens:list command added.
  • Third-party deps bumped to latest minor (no known breaking surface but lockfile changed significantly).

New Features

auth:tokens namespace + auth:tokens:list

  • csdx auth:tokens now shows namespace-level help listing all token subcommands.
  • csdx auth:tokens:list lists all stored management and delivery tokens.

Opt-in launch plugin UX

  • When a launch:* command is run without the plugin installed, the CLI prints a clear warning and suggests the install command (csdx plugins:install @contentstack/cli-launch).
  • Documented in the migration guide and root README.

readGlobalFieldSchemas utility

  • New utility function in @contentstack/cli-utilities for reading per-file global field schemas, with globalfields.json added to the ignore list.
  • bulk-operations registered as a progress-supported module.

Org plan check + endpoint auto-update

  • CLI config now performs an org plan check on startup and auto-updates region endpoints when the org plan changes.

Bug Fixes

FixDetail
Region display for custom regionscsdx config:get:region now correctly shows the AM endpoint for custom regions
Unified @contentstack/cli-utilities loadingPrevents multiple instances of the module being loaded in the monorepo — fixes subtle state bugs
brace-expansion CVEPatched via override to ^4.0.5
Mixed loggingConsole output now consistently routes through the logger
Flags conflictRemoved short flags (-u, -t, etc.) from auth/config commands that shadowed oclif built-ins

Documentation

DocChange
Root README.mdComplete rewrite — concise usage, bundled-plugin table with docs links, installable-plugin table
MIGRATION.md11+ breaking changes added; launch opt-in requirement documented; dead flag notes
Migration guide migration noteUpdated 2.x.x-beta2.x everywhere

Packages Released

All packages below publish to the latest dist-tag on npm when this merges and the pipeline runs.

PackageVersion
@contentstack/cli-auth2.0.0-beta.172.0.0
@contentstack/cli-config2.0.0-beta.152.0.0
@contentstack/cli-command2.0.0-beta.112.0.0
@contentstack/cli-utilities2.0.0-beta.122.0.0
@contentstack/cli-cm-import2.0.0-beta.252.0.0
@contentstack/cli-cm-export2.0.0-beta.252.0.0
@contentstack/cli-cm-seed2.0.0-beta.252.0.0
@contentstack/cli-cm-bootstrap2.0.0-beta.252.0.0
@contentstack/cli-cm-branches2.0.0-beta.112.0.0
@contentstack/cli-cm-clone2.0.0-beta.262.0.0
@contentstack/cli-cm-export-to-csv2.0.0-beta.122.0.0
@contentstack/cli-cm-import-setup2.0.0-beta.192.0.0
@contentstack/cli-migration2.0.0-beta.172.0.0
@contentstack/cli-audit2.0.0-beta.162.0.0
@contentstack/cli-bulk-operations2.0.0-beta.52.0.0

Pre-merge Checklist

  • All open PRs targeting development are merged
  • fix/DX-10156-remove-beta-workflows (chore: remove beta release workflows from development #2700) merged into development
  • Final step: version bump packages/contentstack/package.json — update dep ranges from ~2.0.0-beta.X2.0.0 and commit to development
  • pnpm lockfile up-to-date on development
  • main branch protection rules reviewed (pipeline will auto-trigger on merge)
  • npm NPM_TOKEN secret available in repo Actions secrets
  • v1-legacy branch release workflow (v1-legacy trigger + tag: v1) is in place before merging this PR to avoid accidental latest overwrite from v1 hotfixes
  • Post-merge: verify npm install -g @contentstack/cli installs v2 (check csdx --version)
  • Post-merge: verify npm install -g @contentstack/cli@v1 still works for v1 users

harshitha-cstkand others added 30 commits April 6, 2026 13:42
update: replace .cursor commands/rules/skills with AGENTS + skills
@cs-raj
cs-raj requested a review from a team as a code ownerAugust 12, 2026 12:00
@snyk-io

snyk-ioBot commented Aug 12, 2026

Copy link
Copy Markdown

Snyk checks have passed. No issues have been found so far.

StatusScan Engine Critical High Medium LowTotal (0)
Open Source Security0000 0 issues
Licenses0000 0 issues
Code Security0000 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@github-actions

Copy link
Copy Markdown

🔒 Security Scan Results

ℹ️ Note: Only vulnerabilities with available fixes (upgrades or patches) are counted toward thresholds.

Check TypeCount (with fixes)Without fixesThresholdResult
🔴 Critical Severity0010✅ Passed
🟠 High Severity0025✅ Passed
🟡 Medium Severity02500✅ Passed
🔵 Low Severity001000✅ Passed

⏱️ SLA Breach Summary

✅ No SLA breaches detected. All vulnerabilities are within acceptable time thresholds.

SeverityBreaches (with fixes)Breaches (no fixes)SLA Threshold (with/no fixes)Status
🔴 Critical0015 / 30 days✅ Passed
🟠 High0030 / 120 days✅ Passed
🟡 Medium0090 / 365 days✅ Passed
🔵 Low00180 / 365 days✅ Passed

ℹ️ Vulnerabilities Without Available Fixes (Informational Only)

The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:

  • Critical without fixes: 0
  • High without fixes: 0
  • Medium without fixes: 2
  • Low without fixes: 0

✅ BUILD PASSED - All security checks passed

cs-rajand others added 3 commits August 12, 2026 17:41
Final version bump to 2.0.0 will be done as the last step before
merging development into main.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Replace 2.0.0-beta.X ranges with matching v1 versions from v1-legacy
for all shared packages. cli-bulk-operations left at ^2.0.0-beta.5
as it has no v1 equivalent.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…tstack-version
revert: restore @contentstack/cli version to 1.67.0
@github-actions

Copy link
Copy Markdown

🔒 Security Scan Results

ℹ️ Note: Only vulnerabilities with available fixes (upgrades or patches) are counted toward thresholds.

Check TypeCount (with fixes)Without fixesThresholdResult
🔴 Critical Severity0010✅ Passed
🟠 High Severity0025✅ Passed
🟡 Medium Severity02500✅ Passed
🔵 Low Severity001000✅ Passed

⏱️ SLA Breach Summary

✅ No SLA breaches detected. All vulnerabilities are within acceptable time thresholds.

SeverityBreaches (with fixes)Breaches (no fixes)SLA Threshold (with/no fixes)Status
🔴 Critical0015 / 30 days✅ Passed
🟠 High0030 / 120 days✅ Passed
🟡 Medium0090 / 365 days✅ Passed
🔵 Low00180 / 365 days✅ Passed

ℹ️ Vulnerabilities Without Available Fixes (Informational Only)

The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:

  • Critical without fixes: 0
  • High without fixes: 0
  • Medium without fixes: 2
  • Low without fixes: 0

✅ BUILD PASSED - All security checks passed

cs-rajand others added 5 commits August 12, 2026 17:49
v1 dep versions broke the build — source code imports v2-only APIs
(e.g. loadChalk from cli-utilities). Keep version at 1.67.0 but
dep ranges must stay at ~2.0.0-beta.X to match the v2 source.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Rolls back the premature 2.0.0 bump. Final version bump will be
done as the last step before merging development into main.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

🔒 Security Scan Results

ℹ️ Note: Only vulnerabilities with available fixes (upgrades or patches) are counted toward thresholds.

Check TypeCount (with fixes)Without fixesThresholdResult
🔴 Critical Severity0010✅ Passed
🟠 High Severity0025✅ Passed
🟡 Medium Severity02500✅ Passed
🔵 Low Severity001000✅ Passed

⏱️ SLA Breach Summary

✅ No SLA breaches detected. All vulnerabilities are within acceptable time thresholds.

SeverityBreaches (with fixes)Breaches (no fixes)SLA Threshold (with/no fixes)Status
🔴 Critical0015 / 30 days✅ Passed
🟠 High0030 / 120 days✅ Passed
🟡 Medium0090 / 365 days✅ Passed
🔵 Low00180 / 365 days✅ Passed

ℹ️ Vulnerabilities Without Available Fixes (Informational Only)

The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:

  • Critical without fixes: 0
  • High without fixes: 0
  • Medium without fixes: 2
  • Low without fixes: 0

✅ BUILD PASSED - All security checks passed

harshitha-cstk
harshitha-cstk previously approved these changes Aug 12, 2026
reeshika-h
reeshika-h previously approved these changes Aug 12, 2026
OMpawar-21
OMpawar-21 previously approved these changes Aug 12, 2026
netrajpatel
netrajpatel previously approved these changes Aug 12, 2026
@github-actions

Copy link
Copy Markdown

🔒 Security Scan Results

ℹ️ Note: Only vulnerabilities with available fixes (upgrades or patches) are counted toward thresholds.

Check TypeCount (with fixes)Without fixesThresholdResult
🔴 Critical Severity0010✅ Passed
🟠 High Severity0025✅ Passed
🟡 Medium Severity02500✅ Passed
🔵 Low Severity001000✅ Passed

⏱️ SLA Breach Summary

✅ No SLA breaches detected. All vulnerabilities are within acceptable time thresholds.

SeverityBreaches (with fixes)Breaches (no fixes)SLA Threshold (with/no fixes)Status
🔴 Critical0015 / 30 days✅ Passed
🟠 High0030 / 120 days✅ Passed
🟡 Medium0090 / 365 days✅ Passed
🔵 Low00180 / 365 days✅ Passed

ℹ️ Vulnerabilities Without Available Fixes (Informational Only)

The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:

  • Critical without fixes: 0
  • High without fixes: 0
  • Medium without fixes: 2
  • Low without fixes: 0

✅ BUILD PASSED - All security checks passed

@cs-raj
cs-raj merged commit 40f9146 into mainAug 12, 2026
10 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants

@cs-raj@netrajpatel@reeshika-h@naman-contentstack@maheshmotkar-cs@OMpawar-21@harshitha-cstk@shafeeqd959