Skip to content

Add typed JSON output to hydrogen customer-account-push - #4097

Draft
gonzaloriestra wants to merge 1 commit into
gonzalo/hydrogen-json-buildfrom
gonzalo/hydrogen-json-customer-account
Draft

gonzaloriestra wants to merge 1 commit into
gonzalo/hydrogen-json-buildfrom
gonzalo/hydrogen-json-customer-account

Conversation

@gonzaloriestra

@gonzaloriestra gonzaloriestra commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

WHY are these changes introduced?

Automation needs the Customer Account URLs that were pushed, without parsing the terminal confirmation.

WHAT is this pull request doing?

Return a typed receipt with the storefront ID, redirect URI, JavaScript origin and logout URI. Add --json and schema help, preserve dev-server cleanup, and forward the documented relative URI flags.

Without --json, the existing terminal presentation remains. Example JSON result:

shopify hydrogen customer-account-push --json
{"storefrontId":"gid://shopify/HydrogenStorefront/1","redirectUri":"https://example.com/account/authorize","javascriptOrigin":"https://example.com","logoutUri":"https://example.com"}

HOW to test your changes?

pnpm --filter @shopify/cli-hydrogen test src/commands/hydrogen/customer-account-push.test.ts

Build 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 3 of 9. Previous: #4096. Next: #4098. One changeset is included in #4103.

  1. Prepare Hydrogen commands for typed JSON output
  2. Add typed JSON output to Hydrogen build tooling
  3. Add typed JSON output to hydrogen customer-account-push
  4. Add typed JSON output to hydrogen deploy
  5. Add typed JSON output to Hydrogen environment commands
  6. Add typed JSON output to Hydrogen route generation
  7. Add typed JSON output to Hydrogen project and account commands
  8. Add typed JSON output to Hydrogen setup commands
  9. Add typed JSON output to Hydrogen maintenance commands

@shopify

shopify Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Oxygen deployed a preview of your gonzalo/hydrogen-json-customer-account branch. Details:

Storefront Status Preview link Deployment details Last update (UTC)
Skeleton (skeleton.hydrogen.shop) ✅ Successful (Logs) Preview deployment Inspect deployment September 29, 2026 2:55 PM

Learn more about Hydrogen's GitHub integration.

@gonzaloriestra
gonzaloriestra force-pushed the gonzalo/hydrogen-json-customer-account branch from d7bb1c3 to d6913ec Compare September 29, 2026 14:53

This branch has not been deployed

No deployments
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.

2 participants