theme pushcommand
Uploads your local theme files to Shopify, overwriting the remote version if specified.
If no theme is specified, then you're prompted to select the theme to overwrite from the list of the themes in your store.
You can run this command only in a directory that matches the default Shopify theme folder structure.
This command returns the following information:
- A link to the editor for the theme in the Shopify admin.
- A preview link that you can share with others.
If you use the --json
flag, then theme information is returned in JSON format, which can be used as a machine-readable input for scripts or continuous integration.
Sample output:
Anchor to flagsFlags
The following flags are available for the theme push
command:
Disable color output.
Password generated from the Theme Access app.
The path where you want to run the command. Defaults to the current working directory.
Require theme check to pass without errors before pushing. Warnings are allowed.
Increase the verbosity of the output.
Allow push to a live theme.
Push theme files from your remote development theme.
The environment to apply to the current command.
Output the result as JSON.
Push theme files from your remote live theme.
Prevent deleting remote files that don't exist locally.
Push only the specified files (Multiple flags allowed).
Publish as the live theme after uploading.
Store URL. It can be the store prefix (example) or the full myshopify.com URL (example.myshopify.com, https://example.myshopify.com).
Theme ID or name of the remote theme.
Create a new unpublished theme and push to it.
Skip uploading the specified files (Multiple flags allowed).