Shopify CLI Docs

shopify app generate extension

Generate a new app Extension.

Generates a new app extension. For a list of app extensions that you can generate using this command, refer to Supported extensions.

Each new app extension is created in a folder under extensions/. To learn more about the extensions file structure, refer to App structure and the documentation for your extension.

Usage

shopify app generate extension [flags]

Summary

Generate a new app Extension.

Flags

  • --client-id <value> string — The Client ID of your app. optional Environment: SHOPIFY_FLAG_CLIENT_ID.
  • --flavor <value> string — Choose a starting template for your extension, where applicable optional Environment: SHOPIFY_FLAG_FLAVOR.
  • --no-color — Disable color output. optional Environment: SHOPIFY_FLAG_NO_COLOR.
  • --path <value> string — The path to your app directory. optional Environment: SHOPIFY_FLAG_PATH.
  • --reset — Reset all your settings. optional Environment: SHOPIFY_FLAG_RESET.
  • --verbose — Increase the verbosity of the output. optional Environment: SHOPIFY_FLAG_VERBOSE.
  • -c, --config <value> string — The name of the app configuration. optional Environment: SHOPIFY_FLAG_APP_CONFIG.
  • -n, --name <value> string — name of your Extension optional Environment: SHOPIFY_FLAG_NAME.
  • -t, --template <value> string — Extension template optional Environment: SHOPIFY_FLAG_EXTENSION_TEMPLATE.
  • -t, --type <value> string — Deprecated. Please use --template optional Environment: SHOPIFY_FLAG_EXTENSION_TYPE.

Official source

On this page