Skip to content

Suggest shopify store open for previewing created preview store#7969

Merged
amcaplan merged 1 commit into
mainfrom
suggest-store-open
Jul 1, 2026
Merged

Suggest shopify store open for previewing created preview store#7969
amcaplan merged 1 commit into
mainfrom
suggest-store-open

Conversation

@amcaplan

@amcaplan amcaplan commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

WHY are these changes introduced?

When shopify store create preview finishes, 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 that shopify store open exists, 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 previewStoreNextSteps in packages/store/src/cli/services/store/create/preview/result.ts:

  • Before: Open your store (<storefrontUrl>) to preview the storefront. (rendered a direct link to the storefront URL)
  • After: Use `shopify store open --store <subdomain>` to preview the storefront. (rendered as a command token 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.ts were 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?

  1. Run shopify store create preview (or run the preview-store result suite).
  2. Confirm the first next step reads: Use `shopify store open --store <subdomain>` to preview the storefront.
  3. Confirm both text and JSON (--json) output reflect the command rather than a storefront URL.
  4. pnpm vitest packages/store/src/cli/services/store/create/preview/result.test.ts

Checklist

  • I've considered possible cross-platform impacts (Mac, Linux, Windows)
  • I've considered possible documentation changes
  • I've considered analytics changes to measure impact
  • The change is user-facing — shopify store open is still a hidden command, so the suggestion is not yet public; no changeset added.

amcaplan commented Jun 30, 2026

Copy link
Copy Markdown
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions github-actions Bot added the no-changelog This PR doesn't include a changeset entry. Is an internal only change not relevant to end users. label Jun 30, 2026
@amcaplan amcaplan marked this pull request as ready for review June 30, 2026 18:33
@amcaplan amcaplan requested a review from a team as a code owner June 30, 2026 18:33
@amcaplan amcaplan force-pushed the suggest-store-open branch from d9c29d7 to 30ce965 Compare June 30, 2026 18:35
@amcaplan

Copy link
Copy Markdown
Contributor Author

/snapit

@github-actions

Copy link
Copy Markdown
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-20260630184011

Caution

After installing, validate the version by running shopify version in your terminal.
If the versions don't match, you might have multiple global instances installed.
Use which shopify to find out which one you are running and uninstall it.

Assisted-By: devx/e0c644e1-15e4-4763-9754-d6a4d1b34ad9
@amcaplan amcaplan force-pushed the store-open-command branch from 5ea31e3 to 0ca8964 Compare July 1, 2026 09:06
@amcaplan amcaplan force-pushed the suggest-store-open branch from 30ce965 to a21d2e5 Compare July 1, 2026 09:06
Base automatically changed from store-open-command to main July 1, 2026 11:45
@amcaplan amcaplan added this pull request to the merge queue Jul 1, 2026
Merged via the queue into main with commit 4b6fd9d Jul 1, 2026
29 of 53 checks passed
@amcaplan amcaplan deleted the suggest-store-open branch July 1, 2026 11:54
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