Add typed JSON output to Hydrogen environment commands - #4099
Draft
gonzaloriestra wants to merge 1 commit into
Draft
gonzaloriestra wants to merge 1 commit into
gonzaloriestra wants to merge 1 commit into
Conversation
This was referenced Sep 28, 2026
gonzaloriestra
added this pull request to stack #4104
September 28, 2026 15:14
gonzaloriestra
force-pushed
the
gonzalo/hydrogen-json-env
branch
from
September 28, 2026 15:31
53a14cf to
ae7aca3
Compare
gonzaloriestra
force-pushed
the
gonzalo/hydrogen-json-env
branch
from
September 28, 2026 15:38
ae7aca3 to
520f5c6
Compare
gonzaloriestra
force-pushed
the
gonzalo/hydrogen-json-env
branch
from
September 29, 2026 12:25
520f5c6 to
9dc7a15
Compare
Contributor
|
Oxygen deployed a preview of your
Learn more about Hydrogen's GitHub integration. |
gonzaloriestra
force-pushed
the
gonzalo/hydrogen-json-env
branch
from
September 29, 2026 14:54
9dc7a15 to
ff6f897
Compare
fredericoo
approved these changes
Sep 29, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
WHY are these changes introduced?
Scripts need environment data and sync receipts without parsing tables, banners or environment variable values.
WHAT is this pull request doing?
Add typed results to
env list,env pullandenv push. Preserve list fields, empty results, dry runs, cancellation and confirmation behavior. Sync receipts include variable names and metadata without values; dry-run diffs stay out of the JSON result.Without
--json, the existing terminal presentation remains. Example JSON result:{"status":"dry-run","file":"/project/.env","variables":["PUBLIC_STORE_DOMAIN"],"skipped":[]}HOW to test your changes?
pnpm --filter @shopify/cli-hydrogen test src/commands/hydrogen/env/json-output.test.tsBuild and typecheck were checked at each layer. The full stack passed 498 tests (6 skipped), lint, and schema discovery for all 22 finite commands. Command-line smoke checks covered a successful unlink result, fatal project errors, watch-mode rejection and schema environment flags. Live authenticated Shopify operations have not been exercised.
Stack
Draft 5 of 9. Previous: #4098. Next: #4100. One changeset is included in #4103.