Suggest shopify store open for previewing created preview store#7969
Merged
Conversation
This was referenced Jun 30, 2026
Contributor
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
d9c29d7 to
30ce965
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-20260630184011Caution After installing, validate the version by running |
Assisted-By: devx/e0c644e1-15e4-4763-9754-d6a4d1b34ad9
5ea31e3 to
0ca8964
Compare
30ce965 to
a21d2e5
Compare
gonzaloriestra
approved these changes
Jul 1, 2026
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?
When
shopify store create previewfinishes, the first suggested next step was to open a raw storefront URL. For preview stores that link can be tokenized/unresolved, and it doesn't give users (or agents) a repeatable, copyable command. Now thatshopify store openexists, the next-steps output should point at that command so previewing a store is consistent with the other suggested commands (store execute,theme pull/push).WHAT is this pull request doing?
Updates the first next step emitted by
previewStoreNextStepsinpackages/store/src/cli/services/store/create/preview/result.ts:Open your store (<storefrontUrl>) to preview the storefront.(rendered a direct link to the storefront URL)Use `shopify store open --store <subdomain>` to preview the storefront.(rendered as acommandtoken in text output, and as the backtick-quoted command in JSON output)This makes the storefront step a copyable command keyed off the store subdomain, matching the format of the other two next steps.
Tests in
result.test.tswere updated to assert the new JSON string and the{command: ...}text token, and the JSON test case was renamed from "with the storefront URL" to "with the next steps".How to test your changes?
shopify store create preview(or run the preview-store result suite).Use `shopify store open --store <subdomain>` to preview the storefront.--json) output reflect the command rather than a storefront URL.pnpm vitest packages/store/src/cli/services/store/create/preview/result.test.tsChecklist
shopify store openis still a hidden command, so the suggestion is not yet public; no changeset added.