Add shopify store open command#7955
Draft
amcaplan wants to merge 3 commits into
Draft
Conversation
Contributor
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
4 tasks
Opens a store's storefront in the default browser. Reuses the store info lookup so preview stores open their tokenized access URL. Assisted-By: devx/14c34c82-e316-418f-9255-474db36c1b87
Assisted-By: devx/14c34c82-e316-418f-9255-474db36c1b87
2c5625a to
25ca7d1
Compare
25ca7d1 to
5ea31e3
Compare
Contributor
Author
|
/snapit |
Contributor
|
🫰✨ Thanks @amcaplan! Your snapshot has been published to npm. Test the snapshot by installing your package globally: pnpm i -g --@shopify:registry=https://registry.npmjs.org @shopify/cli@0.0.0-snapshot-20260629202701Caution After installing, validate the version by running |
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?
Opening a store today means hunting for the right URL. Agents and humans working with stores (especially preview stores, which surface long tokenized access URLs) need a quick, reliable way to jump straight into a storefront without copying URLs around by hand.
This implements the
shopify store opendesign shared in #proj-agentic-store-preview.WHAT is this pull request doing?
Adds a new
shopify store open --store <domain>command that opens a store's storefront in your default browser.packages/store/src/cli/commands/store/open.tsopenStore():packages/store/src/cli/services/store/open.tsstore:openinpackages/store/src/index.tsURL resolution goes through the existing
getStoreInfoservice rather than naively building a URL from the domain string. This matters for preview stores, which expose a tokenizedaccessUrlthat can't be reconstructed from the domain alone. Regular stores resolve tohttps://<subdomain>. If the browser can't auto-open (e.g. cloud/headless environments), the command prints a clickable URL instead.How to test your changes?
shopify store open --store <your-store>.myshopify.com— opens the storefront.Unit tests:
pnpm exec vitest run packages/store/src/cli/services/store/open.test.tsChecklist
minorchangeset