$ the-wire · showcase
Shopify CLI adds typed JSON output to deploy, execute, and webhook trigger
By RepoJournal · Filed · About Shopify · Composed from the cited sources · methodology
Four Shopify CLI app commands gain `--json` so scripts can read deploy, GraphQL, webhook, and custom-data results without parsing text, and a theme pull regression fix lands alongside them.
Add typed JSON output to app deploy Shopify/cli
`shopify app deploy --json` now reports the app, the created version, and the release state, so a pipeline can tell an approved deploy from a declined one: a declined confirmation returns `cancelled`, while a failed release keeps the created version as `partial` and exits nonzero. Transport failures fall back to the shared fatal error document because the remote release state is unknown.
Add typed JSON output to app execute Shopify/cli
`shopify app execute --json` returns native `{data, extensions?}` results with shared fatal errors carrying GraphQL details, and `--output-file` writes the result to disk and returns an absolute `{path, format}` receipt. Text output is unchanged, and existing files are left untouched when a GraphQL operation fails.
Add typed JSON output to app webhook trigger Shopify/cli
`shopify app webhook trigger --json` reports the topic, API version, delivery method, address, and delivery status, with remote delivery reporting `enqueued` and localhost delivery reporting `delivered` after a successful HTTP response. JSON request and local delivery failures reuse the shared error document.
Add typed JSON output to app import custom-data-definitions Shopify/cli
`shopify app import custom-data-definitions --json` returns converted counts, native TOML, and the sections skipped for missing scopes, keyed on a canonical `storeDomain` or `null` when none is available. The deprecated alias accepts the flag too, and the app TOML is left unchanged.
Keep theme files in the selected directory Shopify/cli
Theme pulls now keep file operations, including listing, inside the directory passed to `--path`, with regression tests and a `@shopify/theme` patch changeset alongside.