Skip to content

Add environment feature flag for CLI V2 - #1759

Merged
sejas merged 1 commit into
add/list-sites-commandfrom
update/add-cli-v2-feature-flag
Sep 11, 2025
Merged

Add environment feature flag for CLI V2#1759
sejas merged 1 commit into
add/list-sites-commandfrom
update/add-cli-v2-feature-flag

Conversation

@sejas

@sejas sejas commented Sep 11, 2025

Copy link
Copy Markdown
Member

Related issues

Proposed Changes

  • Add ENABLE_CLI_V2 environment feature flag where new commands will be added.
  • This PR doesn't add the feature flag in the UI. If/when needed it can be added in feature-flags.ts as we usually do.
  • To execute the new commands developers will need to run ENABLE_CLI_V2=true node dist/cli/main.js site list or export that environment variable in your system. ~/.bashrc, ~/.zshrc ...

Testing Instructions

  • Run npm run cli:build
  • Run node dist/cli/main.js site list
  • Observe the error output: Unknown arguments: site, list
  • Run ENABLE_CLI_V2=true node dist/cli/main.js site list
  • Observe that the list of sites is displayed successfully.
Screenshot 2025-09-11 at 12 22 24

Pre-merge Checklist

  • Have you checked for TypeScript, React or other console errors?
@sejas
sejas changed the base branch from trunk to add/list-sites-command September 11, 2025 11:18

@youknowriad youknowriad left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me, thanks for the help here.

@sejas
sejas merged commit 28ca9ea into add/list-sites-command Sep 11, 2025
12 of 15 checks passed
@sejas
sejas deleted the update/add-cli-v2-feature-flag branch September 11, 2025 11:23
@sejas sejas self-assigned this Sep 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants