The Wire · Showcase
SHOPIFY CLI GAINS COUNTRY FLAG FOR STORE CREATION
By RepoJournal · Filed · About Shopify
The CLI now lets developers specify store country at creation time, unifying a flag across dev and preview environments.
Shopify CLI added a `--country` flag to `shopify store create dev` [1], implementing a long-pending piece of shop/world#22968 and sharing the same flag definition, validation, and error handling with `shopify store create preview` [1]. The flag exports a single `countryFlag` constant from `flags.ts` with environment variable support via `SHOPIFY_FLAG_STORE_COUNTRY`, normalizing input to trimmed uppercase and validating the two-letter country code shape before command execution [1]. Documentation was then enhanced with additional detail to clarify the flag's purpose [2], addressing feedback from the implementation PR [3]. The change lands across 3 commits and 2 PRs, with both the core feature and documentation refinement now merged.
One email a day. Unsubscribe in one click.
Keep up with Shopify in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.
One email a day. Unsubscribe in one click. Read a past issue →
Action items
- → Update Shopify CLI to pick up the country flag in your store creation workflows Shopify/cli [plan]
References
- [1] Add --country flag to store create dev ↗ Shopify/cli
- [2] Add additional detail to country flag description Shopify/cli
- [3] Add additional detail to country flag description ↗ Shopify/cli