app initcommand
Create a new app project
Anchor to flagsFlags
The following flags are available for the app init
command:
- Anchor to --client-id <value>--client-id <value>stringenv: SHOPIFY_FLAG_CLIENT_ID
The Client ID of your app. Use this to automatically link your new project to an existing app. Using this flag avoids the app selection prompt.
- Anchor to --flavor <value>--flavor <value>stringenv: SHOPIFY_FLAG_TEMPLATE_FLAVOR
Which flavor of the given template to use.
- Anchor to --no-color--no-colorenv: SHOPIFY_FLAG_NO_COLOR
Disable color output.
- Anchor to --template <value>--template <value>stringenv: SHOPIFY_FLAG_TEMPLATE
The app template. Accepts one of the following: - <remix|none>
- Any GitHub repo with optional branch and subpath, e.g., https://github.com/Shopify/
/[subpath]#[branch]
- Any GitHub repo with optional branch and subpath, e.g., https://github.com/Shopify/
- Anchor to --verbose--verboseenv: SHOPIFY_FLAG_VERBOSE
Increase the verbosity of the output.
- Anchor to -d, --package-manager <value>-d, --package-manager <value>stringenv: SHOPIFY_FLAG_PACKAGE_MANAGER
- Anchor to -n, --name <value>-n, --name <value>stringenv: SHOPIFY_FLAG_NAME
- Anchor to -p, --path <value>-p, --path <value>stringenv: SHOPIFY_FLAG_PATH
appinit
- --client-id <value>
The Client ID of your app. Use this to automatically link your new project to an existing app. Using this flag avoids the app selection prompt.
string
- --flavor <value>
Which flavor of the given template to use.
string
- --no-color
Disable color output.
""
- --template <value>
The app template. Accepts one of the following: - <remix|none> - Any GitHub repo with optional branch and subpath, e.g., https://github.com/Shopify/<repository>/[subpath]#[branch]
string
- --verbose
Increase the verbosity of the output.
""
- -d, --package-manager <value>
string
- -n, --name <value>
string
- -p, --path <value>
string
export interface appinit {
/**
* The Client ID of your app. Use this to automatically link your new project to an existing app. Using this flag avoids the app selection prompt.
* @environment SHOPIFY_FLAG_CLIENT_ID
*/
'--client-id <value>'?: string
/**
* Which flavor of the given template to use.
* @environment SHOPIFY_FLAG_TEMPLATE_FLAVOR
*/
'--flavor <value>'?: string
/**
*
* @environment SHOPIFY_FLAG_NAME
*/
'-n, --name <value>'?: string
/**
* Disable color output.
* @environment SHOPIFY_FLAG_NO_COLOR
*/
'--no-color'?: ''
/**
*
* @environment SHOPIFY_FLAG_PACKAGE_MANAGER
*/
'-d, --package-manager <value>'?: string
/**
*
* @environment SHOPIFY_FLAG_PATH
*/
'-p, --path <value>'?: string
/**
* The app template. Accepts one of the following:
- <remix|none>
- Any GitHub repo with optional branch and subpath, e.g., https://github.com/Shopify/<repository>/[subpath]#[branch]
* @environment SHOPIFY_FLAG_TEMPLATE
*/
'--template <value>'?: string
/**
* Increase the verbosity of the output.
* @environment SHOPIFY_FLAG_VERBOSE
*/
'--verbose'?: ''
}
App init
examples
app init
app init
shopify app init [flags]