Skip to content

fix rename --config-file to --config and --config to --inline-config in cm:stacks:migration#251

Open
cs-raj wants to merge 4 commits into
v2-devfrom
fix/DX-3921
Open

fix rename --config-file to --config and --config to --inline-config in cm:stacks:migration#251
cs-raj wants to merge 4 commits into
v2-devfrom
fix/DX-3921

Conversation

@cs-raj

@cs-raj cs-raj commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

What

Renamed two flags in cm:stacks:migration to make --config consistent across all stack commands.

Old New Purpose
--config-file <path> --config <path> / -c <path> Path to a JSON configuration file
--config <key:val> --inline-config <key:val> Inline key-value pairs on the CLI

Why

--config meant different things depending on which command you ran:

  • cm:stacks:clone → file path
  • cm:stacks:export → file path
  • cm:stacks:import → file path
  • cm:stacks:migrationinline key-value pairs ← inconsistent

A user who learned --config on export/import would pass a file path to migration and get unexpected behaviour with no error or warning. Since CLI v2 is already a breaking release, this is the right window to fix it cleanly.

Migration Guide

# Before
csdx cm:migration --config-file ./config.json --file-path ./script.ts
csdx cm:migration --config key1:val1 key2:val2 --file-path ./script.ts

# After
csdx cm:migration --config ./config.json --file-path ./script.ts
csdx cm:migration --inline-config key1:val1 key2:val2 --file-path ./script.ts

Files Changed

  • cli-plugins/packages/contentstack-migration/src/commands/cm/stacks/migration.ts
  • cli-plugins/packages/contentstack-migration/README.md
  • cli/packages/contentstack/README.md (aggregated main CLI README)

@cs-raj cs-raj requested a review from a team as a code owner June 29, 2026 12:11
@github-actions

Copy link
Copy Markdown

🔒 Security Scan Results

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

Check Type Count (with fixes) Without fixes Threshold Result
🔴 Critical Severity 0 0 10 ✅ Passed
🟠 High Severity 0 0 25 ✅ Passed
🟡 Medium Severity 0 0 0 ✅ Passed
🔵 Low Severity 0 0 0 ✅ Passed

⏱️ SLA Breach Summary

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

Severity Breaches (with fixes) Breaches (no fixes) SLA Threshold (with/no fixes) Status
🔴 Critical 0 0 15 / 30 days ✅ Passed
🟠 High 0 0 30 / 120 days ✅ Passed
🟡 Medium 0 0 90 / 365 days ✅ Passed
🔵 Low 0 0 180 / 365 days ✅ Passed

✅ BUILD PASSED - All security checks passed

@github-actions

Copy link
Copy Markdown

🔒 Security Scan Results

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

Check Type Count (with fixes) Without fixes Threshold Result
🔴 Critical Severity 0 0 10 ✅ Passed
🟠 High Severity 0 0 25 ✅ Passed
🟡 Medium Severity 0 1 500 ✅ Passed
🔵 Low Severity 0 0 1000 ✅ Passed

⏱️ SLA Breach Summary

⚠️ Warning: The following vulnerabilities have exceeded their SLA thresholds (days since publication).

Severity Breaches (with fixes) Breaches (no fixes) SLA Threshold (with/no fixes) Status
🔴 Critical 0 0 15 / 30 days ✅ Passed
🟠 High 0 0 30 / 120 days ✅ Passed
🟡 Medium 0 1 90 / 365 days ⚠️ Warning
🔵 Low 0 0 180 / 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: 1
  • Low without fixes: 0

⚠️ BUILD PASSED WITH WARNINGS - SLA breaches detected for issues without available fixes

Consider reviewing these vulnerabilities when fixes become available.

@github-actions

Copy link
Copy Markdown

🔒 Security Scan Results

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

Check Type Count (with fixes) Without fixes Threshold Result
🔴 Critical Severity 0 0 10 ✅ Passed
🟠 High Severity 0 60 25 ✅ Passed
🟡 Medium Severity 0 1 500 ✅ Passed
🔵 Low Severity 0 0 1000 ✅ Passed

⏱️ SLA Breach Summary

⚠️ Warning: The following vulnerabilities have exceeded their SLA thresholds (days since publication).

Severity Breaches (with fixes) Breaches (no fixes) SLA Threshold (with/no fixes) Status
🔴 Critical 0 0 15 / 30 days ✅ Passed
🟠 High 0 0 30 / 120 days ✅ Passed
🟡 Medium 0 1 90 / 365 days ⚠️ Warning
🔵 Low 0 0 180 / 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: 60
  • Medium without fixes: 1
  • Low without fixes: 0

⚠️ BUILD PASSED WITH WARNINGS - SLA breaches detected for issues without available fixes

Consider reviewing these vulnerabilities when fixes become available.

Sign up for free to 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.

1 participant