Add local source and auto fallback to store list#7714
Draft
dmerand wants to merge 4 commits into
Draft
Conversation
This was referenced Jun 4, 2026
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/public/node/session.d.ts@@ -119,9 +119,10 @@ export declare function ensureAuthenticatedThemes(store: string, password: strin
* Ensure that we have a valid session to access the Business Platform API.
*
* @param scopes - Optional array of extra scopes to authenticate with.
+ * @param options - Optional auth behavior overrides such as .
* @returns The access token for the Business Platform API.
*/
-export declare function ensureAuthenticatedBusinessPlatform(scopes?: BusinessPlatformScope[]): Promise<string>;
+export declare function ensureAuthenticatedBusinessPlatform(scopes?: BusinessPlatformScope[], options?: EnsureAuthenticatedAdditionalOptions): Promise<string>;
/**
* Logout from Shopify.
*
|
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
Add
--source localandautofallback toshopify store liston top of #7709.Position in the stack
store listScope
--source auto|bp|localtoshopify store listlocal-source.ts, backed bylistStoredStoreAuthSummaries()autoprefer BP and fall back to local auth when BP:--source bpstrict: no local fallbacknoPromptthroughensureAuthenticatedBusinessPlatform()soautocan probe BP before deciding to fall backContract cleanup included in this PR
store listtypeslist/index.tsWhy this stays separate from #7709
#7709 introduced the local read API.
This PR is the behavior layer on top:
Smoke checks
node packages/cli/bin/dev.js store list --jsonnode packages/cli/bin/dev.js store list --json --source local