Skip to content

Add typed JSON output to store open - #8566

Merged
gonzaloriestra merged 1 commit into
gonzalo/json-store-authenticationfrom
gonzalo/json-store-open
Sep 21, 2026
Merged

gonzaloriestra merged 1 commit into
gonzalo/json-store-authenticationfrom
gonzalo/json-store-open

Conversation

@gonzaloriestra

@gonzaloriestra gonzaloriestra commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

WHY are these changes introduced?

Fixes shop/issues-develop#23690.

Scripts need the storefront URL and the outcome of opening the browser as structured data.

WHAT is this pull request doing?

Adds a typed result and discoverable JSON schema to store open, preserving preview access URLs, browser behavior, and terminal messages. Stacked on #8443, continuing the stack from #8441.

Example output

Illustrative sample data. Text excerpts omit terminal decoration and progress. JSON blocks show the final stdout result; progress and diagnostics go to stderr.

shopify store open --store shop.myshopify.com

Text

Opening the storefront for shop.myshopify.com in your browser.

JSON (--json)

{
  "store": "shop.myshopify.com",
  "url": "https://shop.myshopify.com",
  "opened": true
}

Browser could not open

Text

Browser didn't open automatically. Open the storefront manually:
https://shop.myshopify.com

JSON (--json)

{
  "store": "shop.myshopify.com",
  "url": "https://shop.myshopify.com",
  "opened": false
}

How to manually test your changes?

shopify store open --store shop.myshopify.com
shopify store open --store shop.myshopify.com --json
shopify store open --json-schema

Checklist

@github-actions github-actions Bot added the Area: @shopify/cli @shopify/cli package issues label Sep 16, 2026
@gonzaloriestra
gonzaloriestra added this pull request to stack #8564 September 16, 2026 15:00
@gonzaloriestra
gonzaloriestra force-pushed the gonzalo/json-store-open branch 2 times, most recently from 422fc85 to 5ecb1d3 Compare September 17, 2026 14:19
@gonzaloriestra
gonzaloriestra force-pushed the gonzalo/json-store-open branch 2 times, most recently from 85c20a3 to 6140b15 Compare September 17, 2026 14:38
@gonzaloriestra
gonzaloriestra force-pushed the gonzalo/json-store-open branch 2 times, most recently from 1d488a0 to cc6ea46 Compare September 18, 2026 10:09
@gonzaloriestra
gonzaloriestra marked this pull request as ready for review September 18, 2026 11:02
@gonzaloriestra
gonzaloriestra requested review from a team as code owners September 18, 2026 11:02
@github-actions github-actions Bot added no-changelog This PR doesn't include a changeset entry. Is an internal only change not relevant to end users. and removed Area: @shopify/cli @shopify/cli package issues labels Sep 18, 2026
@gonzaloriestra
gonzaloriestra added this pull request to the merge queue Sep 21, 2026
Merged via the queue into main with commit 6043441 Sep 21, 2026
53 of 54 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog This PR doesn't include a changeset entry. Is an internal only change not relevant to end users.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants