Push theme to Shopify
theme_pushUpload local theme directory to Shopify, defaulting to an unpublished copy with a preview URL. Push to a specific theme by ID; live updates require explicit allow_live confirmation.
Instructions
Upload the local theme directory to Shopify.
Default: push to an UNPUBLISHED copy (safe; returns a preview URL).
Pass theme_id to push to a specific existing theme.
Pushing to the LIVE theme is BLOCKED unless allow_live=true. Only set allow_live after the user explicitly confirms.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| only | No | Optional glob, e.g. "sections/hero.liquid" | |
| theme_id | No | Existing theme ID to push to. Omit to create a new unpublished theme. | |
| allow_live | No | Must be true to push to the live/published theme | |
| new_theme_name | No | Name for the new unpublished theme (used when theme_id is omitted) |