$ the-wire · showcase
Shopify CLI recovers from storage permission errors and versions in JSON
By RepoJournal · Filed · About Shopify · Composed from the cited sources · methodology
Two Shopify CLI changes shipped: a permission failure during local storage initialization now surfaces as a recoverable error instead of a raw filesystem abort, and `shopify version` gained a typed JSON contract for scripts.
Fix local storage initialization permission errors Shopify/cli
Permission errors raised while initializing local storage previously bypassed the existing recovery handler, so commands like `theme info` could die with a raw filesystem error. The CLI now catches `EACCES` and `EPERM` during initialization, raises an `AbortError` with recovery guidance, and points you to the nearest existing directory when the settings folder can't be created.
Add JSON output to version command Shopify/cli
`shopify version` has no typed machine-readable contract, so scripts had to parse the plain text version string. It now accepts `--json`, returning a closed object with a required string `version` property, and the result is exposed through `--json-schema`; the normal mode still prints the raw version line.
Merge pull request #8572 from Shopify/gonzalo/local-storage-initialization-permissions Shopify/cli
The local-storage initialization fix landed on the default branch.
Merge pull request #8542 from Shopify/donald/version-json-schema Shopify/cli
The JSON version output landed on the default branch.