Add store create dev command#7332
Draft
amcaplan wants to merge 2 commits intoariel/extract-organizations-packagefrom
Draft
Add store create dev command#7332amcaplan wants to merge 2 commits intoariel/extract-organizations-packagefrom
store create dev command#7332amcaplan wants to merge 2 commits intoariel/extract-organizations-packagefrom
Conversation
558b244 to
1e0ddbe
Compare
2b81b35 to
db9717d
Compare
1e0ddbe to
f49260c
Compare
db9717d to
c5cf362
Compare
This was referenced Apr 16, 2026
c5cf362 to
f124191
Compare
f49260c to
1ef614b
Compare
f124191 to
71126b0
Compare
d069d39 to
a79415a
Compare
0b900a5 to
d37933c
Compare
a79415a to
af621f0
Compare
d37933c to
83c7554
Compare
af621f0 to
ef6f7e9
Compare
83c7554 to
a1ed994
Compare
ef6f7e9 to
8dff738
Compare
a1ed994 to
603ab33
Compare
8dff738 to
0fdfa8a
Compare
603ab33 to
4ef8ece
Compare
0fdfa8a to
3b5f211
Compare
Contributor
Differences in type declarationsWe detected differences in the type declarations generated by Typescript for this branch compared to the baseline ('main' branch). Please, review them to ensure they are backward-compatible. Here are some important things to keep in mind:
New type declarationsWe found no new type declarations in this PR Existing type declarationspackages/cli-kit/dist/private/node/session.d.ts@@ -63,14 +63,14 @@ export interface OAuthSession {
}
type AuthMethod = 'partners_token' | 'device_auth' | 'theme_access_token' | 'custom_app_token' | 'none';
/**
- * Retrieves a stable user identifier for analytics, or if none applies.
+ * Retrieves the user ID from the current session or returns 'unknown' if not found.
*
- * Evaluation order:
- * 1. If an app automation token or theme token is used, returns a deterministic UUID
- * derived from that secret.
- * 2. Otherwise, if was called (e.g. after OAuth), returns that value.
- * 3. Otherwise, if a persisted CLI session id is available, returns it.
- * 4. Otherwise returns .
+ * This function performs the following steps:
+ * 1. Checks for a cached user ID in memory (obtained in the current run).
+ * 2. Attempts to fetch it from the local storage (from a previous auth session).
+ * 3. Checks if a custom token was used (either as a theme password or partners token).
+ * 4. If a custom token is present in the environment, generates a UUID and uses it as userId.
+ * 5. If after all this we don't have a userId, then reports as 'unknown'.
*
* @returns A Promise that resolves to the user ID as a string.
*/
packages/cli-kit/dist/public/node/ui.d.ts@@ -328,6 +328,7 @@ interface RenderTasksOptions {
/**
* Runs async tasks and displays their progress to the console.
* @example
+ * ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
* Installing dependencies ...
*/
export declare function renderTasks<TContext>(tasks: Task<TContext>[], { renderOptions, noProgressBar }?: RenderTasksOptions): Promise<TContext>;
@@ -345,6 +346,7 @@ export interface RenderSingleTaskOptions<T> {
* @param options.renderOptions - Optional render configuration
* @returns The result of the task
* @example
+ * ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
* Loading app ...
*/
export declare function renderSingleTask<T>({ title, task, onAbort, renderOptions, }: RenderSingleTaskOptions<T>): Promise<T>;
|
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. |
4ef8ece to
8810eb4
Compare
743bb19 to
c7dc3ca
Compare
8810eb4 to
d5fe541
Compare
Implements `shopify store create dev` with --name (required), --organization, and --json flags. Calls the Business Platform Organizations API to create app development stores with polling for completion status. Includes structured JSON error output for agentic/automation use cases. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
d5fe541 to
ee242f3
Compare
c7dc3ca to
ce41839
Compare
4 tasks
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.

Summary
shopify store create devcommand for creating app development stores via CLI--name(required),--organization(numeric ID, auto-selects single org),--jsoncreateAppDevelopmentStoremutation via Business Platform Organizations APIrenderSingleTask(2s interval, 5-minute timeout)Stack: PR 3 of 3 — depends on PR 1 and PR 2
Test plan
pnpm nx build storepassespnpm nx type-check storepassescd packages/store && pnpm vitest run— 128/128 tests pass (15 new)cd packages/cli && pnpm vitest run— no regressionsshopify store create dev --name test-store --jsoncreates store and returns JSON🤖 Generated with Claude Code