Skip to content

Unhide store commands for public release#7976

Merged
amcaplan merged 4 commits into
stable/4.5from
unhide-store-commands
Jul 9, 2026
Merged

Unhide store commands for public release#7976
amcaplan merged 4 commits into
stable/4.5from
unhide-store-commands

Conversation

@amcaplan

@amcaplan amcaplan commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Implements https://github.com/shop/issues-develop/issues/22736

What

Unhide the following shopify store commands ahead of their public release:

  • shopify store auth list
  • shopify store open
  • shopify store list
  • shopify store create preview

shopify store create dev intentionally remains hidden and is not part of this release.

How

  • Removed static hidden = true from the four commands above.
  • Regenerated packages/cli/oclif.manifest.json and packages/cli/README.md so the commands are documented publicly (and store create dev stays out).
  • Updated auth/list.test.ts and create/preview.test.ts, which previously asserted the commands were hidden.
  • Added one brief changeset per newly-public command (@shopify/cli + @shopify/store, minor).

Notes

No behavior changes to the commands themselves — only visibility.

amcaplan commented Jul 1, 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 Area: @shopify/cli @shopify/cli package issues label Jul 1, 2026
@nickwesselman

Copy link
Copy Markdown
Contributor

/snapit

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

🫰✨ Thanks @nickwesselman! 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-20260701165159

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.

@amcaplan amcaplan force-pushed the unhide-store-commands branch from 5c0ef19 to 1e0fce1 Compare July 2, 2026 14:07
@amcaplan amcaplan force-pushed the unhide-store-commands branch from 1e0fce1 to 1edebeb Compare July 3, 2026 12:32
@amcaplan

amcaplan commented Jul 3, 2026

Copy link
Copy Markdown
Contributor Author

/snapit

@github-actions

github-actions Bot commented Jul 3, 2026

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-20260703123325

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.

@amcaplan amcaplan changed the base branch from main to graphite-base/7976 July 9, 2026 11:15
@amcaplan amcaplan force-pushed the unhide-store-commands branch from c6833f3 to c60f566 Compare July 9, 2026 11:15
@amcaplan amcaplan changed the base branch from graphite-base/7976 to add-country-flag-to-store-create-dev July 9, 2026 11:15
@amcaplan amcaplan changed the base branch from add-country-flag-to-store-create-dev to graphite-base/7976 July 9, 2026 11:27
@amcaplan amcaplan force-pushed the graphite-base/7976 branch from 360670c to 7bc65df Compare July 9, 2026 11:27
@amcaplan amcaplan force-pushed the unhide-store-commands branch from c60f566 to c6cddfa Compare July 9, 2026 11:27
@amcaplan amcaplan changed the base branch from graphite-base/7976 to main July 9, 2026 11:27
@amcaplan amcaplan force-pushed the unhide-store-commands branch 3 times, most recently from 5e141f3 to 787ce87 Compare July 9, 2026 13:10
amcaplan added 3 commits July 9, 2026 19:25
Unhide `shopify store auth list`, `shopify store open`, `shopify store list`,
and `shopify store create preview` ahead of their public release. `shopify
store create dev` remains hidden.

Regenerated the oclif manifest and README, updated tests, and added a
changeset per newly-public command.

Assisted-By: devx/64aec273-1f35-4e4f-be5f-883631f97c64
Assisted-By: devx/64aec273-1f35-4e4f-be5f-883631f97c64
@amcaplan amcaplan force-pushed the unhide-store-commands branch from 787ce87 to fa7747b Compare July 9, 2026 16:27
@amcaplan amcaplan changed the base branch from main to stable/4.5 July 9, 2026 16:28
Assisted-By: devx/7f40dd7e-8ac5-44cb-8a46-99677b33f144
@amcaplan amcaplan force-pushed the unhide-store-commands branch from fa7747b to b2ebd9e Compare July 9, 2026 16:30
@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

⚠️ Potential Breaking Changes Detected

This PR contains changes that may break the existing contract.

@shopify/dev_experience — this PR contains breaking changes that require coordination for the next major release.

🔧 Removed Environment Variables

The following env vars are no longer referenced in command flags:

Env Var Previously Used By
SHOPIFY_FLAG_PREVIEW_STORE_COUNTRY store:create:preview --country

@github-actions

github-actions Bot commented Jul 9, 2026

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/private/node/constants.d.ts
@@ -6,6 +6,7 @@ export declare const environmentVariables: {
     doctor: string;
     enableCliRedirect: string;
     env: string;
+    firstPartyDev: string;
     noAnalytics: string;
     optOutInstrumentation: string;
     appAutomationToken: string;
packages/cli-kit/dist/private/node/session.d.ts
@@ -90,7 +90,6 @@ export declare function setLastSeenUserIdAfterAuth(id: string): void;
  */
 export declare function getLastSeenAuthMethod(): Promise<AuthMethod>;
 export declare function setLastSeenAuthMethod(method: AuthMethod): void;
-export declare function setCommandSessionId(sessionId: string | undefined): void;
 export interface EnsureAuthenticatedAdditionalOptions {
     noPrompt?: boolean;
     forceRefresh?: boolean;
packages/cli-kit/dist/public/node/base-command.d.ts
@@ -16,7 +16,6 @@ declare abstract class BaseCommand extends Command {
     protected parse<TFlags extends FlagOutput & {
         path?: string;
         verbose?: boolean;
-        'auth-alias'?: string;
     }, TGlobalFlags extends FlagOutput, TArgs extends ArgOutput>(options?: Input<TFlags, TGlobalFlags, TArgs>, argv?: string[]): Promise<ParserOutput<TFlags, TGlobalFlags, TArgs> & {
         argv: string[];
     }>;
packages/cli-kit/dist/public/node/cli.d.ts
@@ -39,9 +39,6 @@ export declare const globalFlags: {
 export declare const jsonFlag: {
     json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
 };
-export declare const authAliasFlag: {
-    'auth-alias': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
-};
 /**
  * Builds a  flag that only accepts a valid port number. The flag parses its
  * value as an integer and rejects anything that isn't a whole number between 1 and
packages/cli-kit/dist/public/node/session.d.ts
@@ -22,19 +22,6 @@ export type AccountInfo = UserAccountInfo | ServiceAccountInfo | UnknownAccountI
  * @param userId - User identifier to report on the command analytics event.
  */
 export declare function setLastSeenUserId(userId: string): void;
-/**
- * Finds a stored Shopify account session by alias without changing the current session.
- *
- * @param alias - The account alias to find.
- * @returns The matching session ID, or undefined if no session matches.
- */
-export declare function findSessionIdByAlias(alias: string): Promise<string | undefined>;
-/**
- * Selects a stored Shopify account session by alias for the current command process.
- *
- * @param alias - The account alias to select. Passing undefined clears the command selection.
- */
-export declare function setCurrentSessionAlias(alias?: string): Promise<void>;
 interface UserAccountInfo {
     type: 'UserAccount';
     email: string;
packages/cli-kit/dist/public/node/context/local.d.ts
@@ -63,6 +63,13 @@ export declare function alwaysLogAnalytics(env?: NodeJS.ProcessEnv): boolean;
  * @returns True if SHOPIFY_CLI_ALWAYS_LOG_METRICS is truthy.
  */
 export declare function alwaysLogMetrics(env?: NodeJS.ProcessEnv): boolean;
+/**
+ * Returns true if the CLI User is 1P.
+ *
+ * @param env - The environment variables from the environment of the current process.
+ * @returns True if SHOPIFY_CLI_1P is truthy.
+ */
+export declare function firstPartyDev(env?: NodeJS.ProcessEnv): boolean;
 /**
  * Returns true if the CLI can run the "doctor-release" command.
  *

@amcaplan amcaplan marked this pull request as ready for review July 9, 2026 20:01
@amcaplan amcaplan requested review from a team as code owners July 9, 2026 20:01
@amcaplan amcaplan merged commit e64abd3 into stable/4.5 Jul 9, 2026
25 of 27 checks passed
@amcaplan amcaplan deleted the unhide-store-commands branch July 9, 2026 20:01
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.

3 participants