From b2c4d19ca2c50a34a42b93cf7a07c510cfc51bb4 Mon Sep 17 00:00:00 2001 From: Ariel Caplan Date: Wed, 2 Sep 2026 14:11:42 +0300 Subject: [PATCH] Add examples to store create dev `store create dev` was the only `shopify store` command without `static examples`. Every sibling (`auth`, `list`, `open`, `info`, `execute`, `create preview`, `delete`) defines them, so add them here for consistency. The command is still hidden, so only the oclif manifest changes: the README lists non-hidden commands only, and the shopify.dev docs data carries flags rather than examples. Co-Authored-By: Claude Opus 5 (1M context) Assisted-By: devx/13746eb2-e5e2-4de0-b1fd-476a489da9c3 --- packages/cli/oclif.manifest.json | 6 ++++++ packages/store/src/cli/commands/store/create/dev.ts | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/packages/cli/oclif.manifest.json b/packages/cli/oclif.manifest.json index 3418f8aec87..e2a83181f36 100644 --- a/packages/cli/oclif.manifest.json +++ b/packages/cli/oclif.manifest.json @@ -7188,6 +7188,12 @@ "description": "Creates a new development store in your organization.", "descriptionWithMarkdown": "Creates a new development store in your organization.", "enableJsonFlag": false, + "examples": [ + "<%= config.bin %> <%= command.id %>", + "<%= config.bin %> <%= command.id %> --name \"Lavender Candles\" --organization-id 1234567 --plan basic", + "<%= config.bin %> <%= command.id %> --name \"Lavender Candles\" --organization-id 1234567 --plan basic --with-demo-data", + "<%= config.bin %> <%= command.id %> --name \"Lavender Candles\" --organization-id 1234567 --plan basic --json" + ], "flags": { "country": { "description": "Two-letter country code for the store, such as US, CA, or GB. Follows the ISO 3166-1 alpha-2 standard.", diff --git a/packages/store/src/cli/commands/store/create/dev.ts b/packages/store/src/cli/commands/store/create/dev.ts index 2ca985ef88b..e1f54dd458e 100644 --- a/packages/store/src/cli/commands/store/create/dev.ts +++ b/packages/store/src/cli/commands/store/create/dev.ts @@ -18,6 +18,13 @@ export default class StoreCreateDev extends Command { static description = this.descriptionWithoutMarkdown() + static examples = [ + '<%= config.bin %> <%= command.id %>', + '<%= config.bin %> <%= command.id %> --name "Lavender Candles" --organization-id 1234567 --plan basic', + '<%= config.bin %> <%= command.id %> --name "Lavender Candles" --organization-id 1234567 --plan basic --with-demo-data', + '<%= config.bin %> <%= command.id %> --name "Lavender Candles" --organization-id 1234567 --plan basic --json', + ] + static flags = { ...globalFlags, ...jsonFlag,