$ the-wire · showcase
Shopify CLI starts asking for demo data on dev store creation
By RepoJournal · Filed · About Shopify
Shopify CLI's interactive dev store creation now prompts for demo data, and the `--with-demo-data` flag becomes tri-state `--demo-data`.
Shopify CLI improves the interactive dev store creation flow. `shopify store create dev` now asks whether to populate the new store with demo data after the name and plan prompts, so developers creating stores interactively, including through the inline flow in `app dev`, get the same option that `--with-demo-data` provided non-interactively [1]. The flag itself is renamed from `--with-demo-data` to `--demo-data` with `allowNo`, giving it standard tri-state behavior: `--demo-data` and `--no-demo-data` answer the question outright, while unspecified flags prompt in interactive terminals and default to false in non-interactive contexts. This is a breaking change for any scripts using the old flag name [2].
The same flow gets explanatory context when an organization has no dev stores. `app dev` now renders a short notice before diving into the "Name for the new development store" prompt, because "the developer asked to run `app dev`, not to create a store" [3]. The store picker's "Create a new dev store" choice remains unprompted, as intent is already expressed there.
For consistency, `store create dev` also gains `static examples`, matching every sibling `shopify store` command (`auth`, `list`, `open`, `info`, `execute`, `create preview`, `delete`). Since the command is hidden, only the oclif manifest changes, not the README or docs data [4].
Action items
- → Update any scripts using the `--with-demo-data` flag to `--demo-data` or `--no-demo-data` Shopify/cli [immediate]
- → Review the new demo data prompt in interactive dev store creation for your team's workflow Shopify/cli [plan]
References
- [1] Ask about demo data when creating a dev store interactively ↗ Shopify/cli
- [2] Ask about demo data when creating a dev store interactively ↗ Shopify/cli
- [3] Explain the empty-organization store creation prompts in app dev ↗ Shopify/cli
- [4] Add examples to store create dev ↗ Shopify/cli