Skip to content

Add typed JSON output to config autoupgrade on - #8775

Merged
isaacroldan merged 1 commit into
codex/json-autoupgradefrom
codex/json-autoupgrade-on
Oct 6, 2026
Merged

isaacroldan merged 1 commit into
codex/json-autoupgradefrom
codex/json-autoupgrade-on

Conversation

@isaacroldan

@isaacroldan isaacroldan commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

WHY are these changes introduced?

Let scripts enable automatic upgrades and read the result as JSON.

WHAT is this pull request doing?

Add --json / -j to config autoupgrade on. Reuse the shared result schema and presenter.

Normal output: Auto-upgrade on. Shopify CLI will update automatically after each command.

JSON output: {"enabled":true}.

Validation: 32 focused tests, lint, type-check, and build passed locally.

How to manually test your changes?

From the repository root after normal setup:

node packages/cli/bin/dev.js config autoupgrade status
node packages/cli/bin/dev.js config autoupgrade on --json --no-input
node packages/cli/bin/dev.js config autoupgrade status -j
node packages/cli/bin/dev.js config autoupgrade on --json-schema

Both JSON results must contain enabled: true, with no terminal banner.
The schema must require a boolean enabled. Restore the original setting after testing.

Checklist

  • Cross-platform impacts
  • Documentation impacts
  • Analytics impacts
  • Minor changeset

Stack: #8774 → #8775 → #8776. Merge in this order.

@isaacroldan

Copy link
Copy Markdown
Contributor Author

/snapit

@isaacroldan
isaacroldan added this pull request to stack #8780 October 6, 2026 08:29
@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

🫰✨ Thanks @isaacroldan! Your snapshot has been published to npm.

Built from c34817dfe0f12f4c47ab03d693e387d486d6ffd7. Workflow run.

Test the snapshot by installing your package globally:

pnpm i -g --@shopify:registry=https://registry.npmjs.org @shopify/cli@0.0.0-snapshot-20261006082743

Caution

After installing, validate the version by running shopify version in your terminal.
If the versions don't match, you might have multiple global instances installed.
Use which shopify to find out which one you are running and uninstall it.

@isaacroldan
isaacroldan force-pushed the codex/json-autoupgrade-on branch from c34817d to a9308dd Compare October 6, 2026 11:31
@isaacroldan
isaacroldan added this pull request to the merge queue Oct 6, 2026
Merged via the queue into main with commit 8a2a374 Oct 6, 2026
30 of 31 checks passed
@isaacroldan
isaacroldan deleted the codex/json-autoupgrade-on branch October 6, 2026 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: @shopify/cli @shopify/cli package issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants