app init
Create a new app project
Anchor to flagsFlags
The following flags are available for the app init command:
- Anchor to --auth-alias <value>--auth-alias <value>--auth-alias <value>stringstringenv: SHOPIFY_FLAG_AUTH_ALIASenv: SHOPIFY_FLAG_AUTH_ALIAS
Alias of the Shopify account to use for authentication.
- Anchor to --client-id <value>--client-id <value>--client-id <value>stringstringenv: SHOPIFY_FLAG_CLIENT_IDenv: SHOPIFY_FLAG_CLIENT_ID
The Client ID of your app. Use this to automatically link your new project to an existing app. In non-interactive environments, provide this flag or both --name and --organization-id.
- Anchor to --flavor <value>--flavor <value>--flavor <value>stringstringenv: SHOPIFY_FLAG_TEMPLATE_FLAVORenv: SHOPIFY_FLAG_TEMPLATE_FLAVOR
Which flavor of the given template to use. Required in non-interactive environments when the selected template offers multiple flavors.
- Anchor to --no-color--no-color--no-colorenv: SHOPIFY_FLAG_NO_COLORenv: SHOPIFY_FLAG_NO_COLOR
Disable color output.
- Anchor to --organization-id <value>--organization-id <value>--organization-id <value>stringstringenv: SHOPIFY_FLAG_ORGANIZATION_IDenv: SHOPIFY_FLAG_ORGANIZATION_ID
The organization ID. Your organization ID can be found in your Dev Dashboard URL: https://dev.shopify.com/dashboard/
. Required in non-interactive environments unless --client-id is provided. - Anchor to --template <value>--template <value>--template <value>stringstringenv: SHOPIFY_FLAG_TEMPLATEenv: SHOPIFY_FLAG_TEMPLATE
The app template. Accepts one of the following: - <reactRouter|none>
- Any GitHub repo with optional branch and subpath, e.g., https://github.com/Shopify/
/[subpath]#[branch]. Required if non interactive.
- Any GitHub repo with optional branch and subpath, e.g., https://github.com/Shopify/
- Anchor to --verbose--verbose--verboseenv: SHOPIFY_FLAG_VERBOSEenv: SHOPIFY_FLAG_VERBOSE
Increase the verbosity of the output. May include sensitive data.
- Anchor to -d, --package-manager <value>-d, --package-manager <value>-d, --package-manager <value>stringstringenv: SHOPIFY_FLAG_PACKAGE_MANAGERenv: SHOPIFY_FLAG_PACKAGE_MANAGER
- Anchor to -n, --name <value>-n, --name <value>-n, --name <value>stringstringenv: SHOPIFY_FLAG_NAMEenv: SHOPIFY_FLAG_NAME
The name for the new app. When provided, skips the app selection prompt and creates a new app with this name. Required in non-interactive environments unless --client-id is provided.
- Anchor to -p, --path <value>-p, --path <value>-p, --path <value>stringstringenv: SHOPIFY_FLAG_PATHenv: SHOPIFY_FLAG_PATH
app init
Examples
app init
shopify app init [flags]