Add --admin flag to shopify store open#7956
Draft
amcaplan wants to merge 1 commit into
Draft
Conversation
Contributor
Author
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
4 tasks
04fa3f9 to
d94e26a
Compare
2c5625a to
25ca7d1
Compare
Opens the Shopify admin instead of the storefront. Unclaimed preview stores fall back to the claim/save link. Assisted-By: devx/14c34c82-e316-418f-9255-474db36c1b87
25ca7d1 to
5ea31e3
Compare
d94e26a to
e552b87
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-20260629203156Caution 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?
Builds on
shopify store open(#7955). Beyond the storefront, people often want to land directly in the store's admin. For preview stores that aren't fully set up yet, getting into the admin requires saving the store first — so the command should handle that transparently rather than making the user juggle setup URLs.WHAT is this pull request doing?
Adds an
-a, --adminflag toshopify store open.--admin, the command opens the Shopify admin instead of the storefront.--adminroutes through the store's save flow: it saves the store and then brings you to the admin in the browser. This is surfaced to the user as "the Shopify admin (saving your store first)".Files:
packages/store/src/cli/commands/store/open.ts,packages/store/src/cli/services/store/open.ts, plus regenerated manifest/README.Note: there is no user-facing "claim" terminology — opening with
--adminis described as saving the store and then opening the admin.How to test your changes?
shopify store open --store <store>.myshopify.com --admin— opens the admin.Unit tests:
pnpm exec vitest run packages/store/src/cli/services/store/open.test.tsChecklist
minorchangeset