theme publishcommand
Publishes an unpublished theme from your theme library.
If no theme ID is specified, then you're prompted to select the theme that you want to publish from the list of themes in your store.
You can run this command only in a directory that matches the default Shopify theme folder structure.
If you want to publish your local theme, then you need to run shopify theme push
first. You're asked to confirm that you want to publish the specified theme. You can skip this confirmation using the --force
flag.
Anchor to flagsFlags
The following flags are available for the theme publish
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.
Increase the verbosity of the output.
The environment to apply to the current command.
Skip confirmation.
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.