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](/docs/themes/tools/cli#directory-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.
shopify theme publish [flags]
The following flags are available for the `theme publish` command:
env: SHOPIFY_FLAG_NO_COLOR
Disable color output.
env: SHOPIFY_CLI_THEME_TOKEN
Password generated from the Theme Access app.
env: SHOPIFY_FLAG_VERBOSE
Increase the verbosity of the output.
env: SHOPIFY_FLAG_ENVIRONMENT
The environment to apply to the current command.
env: SHOPIFY_FLAG_FORCE
Skip confirmation.
env: SHOPIFY_FLAG_STORE
Store URL. It can be the store prefix (example) or the full myshopify.com URL (example.myshopify.com, https://example.myshopify.com).
env: SHOPIFY_FLAG_THEME_ID
Theme ID or name of the remote theme.