Shopify CLI Docs

shopify theme profile

Profile the Liquid rendering of a theme page.

Profile the Shopify Liquid on a given page.

This command will open a web page with the Speedscope profiler detailing the time spent executing Liquid on the given page.

Usage

shopify theme profile

shopify theme profile --url /products/classic-leather-jacket

Summary

Profile the Liquid rendering of a theme page.

Flags

  • --no-color — Disable color output. optional Environment: SHOPIFY_FLAG_NO_COLOR.
  • --password <value> string — Password generated from the Theme Access app or an Admin API token. optional Environment: SHOPIFY_CLI_THEME_TOKEN.
  • --path <value> string — The path where you want to run the command. Defaults to the current working directory. optional Environment: SHOPIFY_FLAG_PATH.
  • --store-password <value> string — The password for storefronts with password protection. optional Environment: SHOPIFY_FLAG_STORE_PASSWORD.
  • --url <value> string — The url to be used as context optional Environment: SHOPIFY_FLAG_URL.
  • --verbose — Increase the verbosity of the output. optional Environment: SHOPIFY_FLAG_VERBOSE.
  • -e, --environment <value> string — The environment to apply to the current command. optional Environment: SHOPIFY_FLAG_ENVIRONMENT.
  • -j, --json — Output the result as JSON. Automatically disables color output. optional Environment: SHOPIFY_FLAG_JSON.
  • -s, --store <value> string — Store URL. It can be the store prefix (example) or the full myshopify.com URL (example.myshopify.com, https://example.myshopify.com). optional Environment: SHOPIFY_FLAG_STORE.
  • -t, --theme <value> string — Theme ID or name of the remote theme. optional Environment: SHOPIFY_FLAG_THEME_ID.

Official source

On this page