--- title: app generate extension description: >- Generates a new [app extension](/docs/apps/app-extensions). For a list of app extensions that you can generate using this command, refer to [Supported extensions](/docs/apps/structure/app-extensions/list). Each new app extension is created in a folder under `extensions/`. To learn more about the extensions file structure, refer to [App structure](/docs/apps/tools/cli/structure) and the documentation for your extension. api_name: shopify-cli source_url: html: 'https://shopify.dev/docs/api/shopify-cli/app/app-generate-extension' md: 'https://shopify.dev/docs/api/shopify-cli/app/app-generate-extension.md' --- # app generate extension Generates a new [app extension](https://shopify.dev/docs/apps/app-extensions). For a list of app extensions that you can generate using this command, refer to [Supported extensions](https://shopify.dev/docs/apps/structure/app-extensions/list). Each new app extension is created in a folder under `extensions/`. To learn more about the extensions file structure, refer to [App structure](https://shopify.dev/docs/apps/tools/cli/structure) and the documentation for your extension. ## Flags The following flags are available for the `app generate extension` command: * **--client-id \** **string** **env: SHOPIFY\_FLAG\_CLIENT\_ID** The Client ID of your app. * **--flavor \** **string** **env: SHOPIFY\_FLAG\_FLAVOR** Choose a starting template for your extension, where applicable * **--no-color** **env: SHOPIFY\_FLAG\_NO\_COLOR** Disable color output. * **--path \** **string** **env: SHOPIFY\_FLAG\_PATH** The path to your app directory. * **--reset** **env: SHOPIFY\_FLAG\_RESET** Reset all your settings. * **--verbose** **env: SHOPIFY\_FLAG\_VERBOSE** Increase the verbosity of the output. * **-c, --config \** **string** **env: SHOPIFY\_FLAG\_APP\_CONFIG** The name of the app configuration. * **-n, --name \** **string** **env: SHOPIFY\_FLAG\_NAME** name of your Extension * **-t, --template \** **string** **env: SHOPIFY\_FLAG\_EXTENSION\_TEMPLATE** Extension template * **-t, --type \** **string** **env: SHOPIFY\_FLAG\_EXTENSION\_TYPE** Deprecated. Please use --template Examples ### Examples * #### app generate extension ##### app generate extension ```bash shopify app generate extension [flags] ```