Skip to content

feat(store): add shopify store list command#7609

Draft
alfonso-noriega wants to merge 1 commit into
store-create-preview-commandfrom
store-list-command
Draft

feat(store): add shopify store list command#7609
alfonso-noriega wants to merge 1 commit into
store-create-preview-commandfrom
store-list-command

Conversation

@alfonso-noriega
Copy link
Copy Markdown
Contributor

WHY are these changes introduced?

Fixes #0000

WHAT is this pull request doing?

How to test your changes?

Post-release steps

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 — I've identified the correct bump type (patch for bug fixes · minor for new features · major for breaking changes) and added a changeset with pnpm changeset add

Lists every locally stored store-auth session — both standard
PKCE-authenticated (shopify store auth) and preview-store
(shopify store create preview) — with a 3-column table (Store,
Kind, User), --kind filter, and --json output for agent
consumption. Adds a LocalStorage#entries() enumerator in
cli-kit and a listStoredStoreAppSessions() helper in @shopify/store
so the command can resolve sessions across every stored shop
without knowing the keys in advance.

Stacked on store-create-preview-command (#7558) → preview-store-session-discriminator (#7557).
Copy link
Copy Markdown
Contributor Author

alfonso-noriega commented May 22, 2026

@github-actions
Copy link
Copy Markdown
Contributor

Differences in type declarations

We 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:

  • Some seemingly private modules might be re-exported through public modules.
  • If the branch is behind main you might see odd diffs, rebase main into this branch.

New type declarations

We found no new type declarations in this PR

Existing type declarations

packages/cli-kit/dist/public/node/local-storage.d.ts
@@ -34,6 +34,19 @@ export declare class LocalStorage<T extends Record<string, any>> {
      * @throws BugError if an unexpected error occurs.
      */
     delete<TKey extends keyof T>(key: TKey): void;
+    /**
+     * Get every  pair currently held in the local storage.
+     *
+     * Useful for callers that need to enumerate all stored values without knowing the
+     * full set of keys in advance (for example, a  command iterating over every
+     * stored session). The  package stores its entire state as a single JSON
+     * object, so this is just a typed wrapper around that object.
+     *
+     * @returns An array of  tuples.
+     * @throws AbortError if a permission error occurs.
+     * @throws BugError if an unexpected error occurs.
+     */
+    entries(): [keyof T, T[keyof T]][];
     /**
      * Clear the local storage (delete all values).
      *

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: @shopify/cli @shopify/cli package issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant