Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/update-hydrogen-cli-12.0.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/cli': patch
---

Update the bundled Hydrogen CLI to 12.0.1.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export interface hydrogendeploy {
'--env-file <value>'?: string

/**
* Forces a deployment to proceed if there are uncommited changes in its Git repository.
* Forces a deployment to proceed if there are uncommitted changes in its Git repository.
* @environment SHOPIFY_HYDROGEN_FLAG_FORCE
*/
'-f, --force'?: ''
Expand All @@ -71,7 +71,7 @@ export interface hydrogendeploy {
'--lockfile-check'?: ''

/**
* Description of the changes in the deployment. Defaults to the commit message of the latest commit if there are no uncommited changes.
* Description of the changes in the deployment. Defaults to the commit message of the latest commit if there are no uncommitted changes.
* @environment SHOPIFY_HYDROGEN_FLAG_METADATA_DESCRIPTION
*/
'--metadata-description <value>'?: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
export interface hydrogengenerateroute {
/**
* Remix adapter used in the route. The default is `@shopify/remix-oxygen`.
* React Router adapter used in the route. The default is `react-router`.
* @environment SHOPIFY_HYDROGEN_FLAG_ADAPTER
*/
'--adapter <value>'?: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
export interface hydrogengenerateroutes {
/**
* Remix adapter used in the route. The default is `@shopify/remix-oxygen`.
* React Router adapter used in the route. The default is `react-router`.
* @environment SHOPIFY_HYDROGEN_FLAG_ADAPTER
*/
'--adapter <value>'?: string
Expand Down
14 changes: 7 additions & 7 deletions docs-shopify.dev/generated/generated_docs_data_v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -3102,7 +3102,7 @@
"syntaxKind": "PropertySignature",
"name": "--metadata-description <value>",
"value": "string",
"description": "Description of the changes in the deployment. Defaults to the commit message of the latest commit if there are no uncommited changes.",
"description": "Description of the changes in the deployment. Defaults to the commit message of the latest commit if there are no uncommitted changes.",
"isOptional": true,
"environmentValue": "SHOPIFY_HYDROGEN_FLAG_METADATA_DESCRIPTION"
},
Expand Down Expand Up @@ -3145,7 +3145,7 @@
"syntaxKind": "PropertySignature",
"name": "-f, --force",
"value": "''",
"description": "Forces a deployment to proceed if there are uncommited changes in its Git repository.",
"description": "Forces a deployment to proceed if there are uncommitted changes in its Git repository.",
"isOptional": true,
"environmentValue": "SHOPIFY_HYDROGEN_FLAG_FORCE"
},
Expand All @@ -3168,7 +3168,7 @@
"environmentValue": "SHOPIFY_HYDROGEN_DEPLOYMENT_TOKEN"
}
],
"value": "export interface hydrogendeploy {\n /**\n * Generate an authentication bypass token, which can be used to perform end-to-end tests against the deployment.\n * @environment AUTH_BYPASS_TOKEN\n */\n '--auth-bypass-token'?: ''\n\n /**\n * Specify the duration (in hours) up to 12 hours for the authentication bypass token. Defaults to `2`\n * @environment AUTH_BYPASS_TOKEN_DURATION\n */\n '--auth-bypass-token-duration <value>'?: string\n\n /**\n * Specify a build command to run before deploying. If not specified, `shopify hydrogen build` will be used.\n *\n */\n '--build-command <value>'?: string\n\n /**\n * Entry file for the worker. Defaults to `./server`.\n * @environment SHOPIFY_HYDROGEN_FLAG_ENTRY\n */\n '--entry <value>'?: string\n\n /**\n * Specifies the environment to perform the operation using its handle. Fetch the handle using the `env list` command.\n *\n */\n '--env <value>'?: string\n\n /**\n * Specifies the environment to perform the operation using its Git branch name.\n * @environment SHOPIFY_HYDROGEN_ENVIRONMENT_BRANCH\n */\n '--env-branch <value>'?: string\n\n /**\n * Path to an environment file to override existing environment variables for the deployment.\n *\n */\n '--env-file <value>'?: string\n\n /**\n * Forces a deployment to proceed if there are uncommited changes in its Git repository.\n * @environment SHOPIFY_HYDROGEN_FLAG_FORCE\n */\n '-f, --force'?: ''\n\n /**\n * Client sourcemapping is avoided by default because it makes backend code visible in the browser. Use this flag to force enabling it.\n * @environment SHOPIFY_HYDROGEN_FLAG_FORCE_CLIENT_SOURCEMAP\n */\n '--force-client-sourcemap'?: ''\n\n /**\n * Create a JSON file containing the deployment details in CI environments. Defaults to true, use `--no-json-output` to disable.\n *\n */\n '--json-output'?: ''\n\n /**\n * Checks that there is exactly one valid lockfile in the project. Defaults to `true`. Deactivate with `--no-lockfile-check`.\n * @environment SHOPIFY_HYDROGEN_FLAG_LOCKFILE_CHECK\n */\n '--lockfile-check'?: ''\n\n /**\n * Description of the changes in the deployment. Defaults to the commit message of the latest commit if there are no uncommited changes.\n * @environment SHOPIFY_HYDROGEN_FLAG_METADATA_DESCRIPTION\n */\n '--metadata-description <value>'?: string\n\n /**\n * User that initiated the deployment. Will be saved and displayed in the Shopify admin\n * @environment SHOPIFY_HYDROGEN_FLAG_METADATA_USER\n */\n '--metadata-user <value>'?: string\n\n /**\n * Skip the routability verification step after deployment.\n *\n */\n '--no-verify'?: ''\n\n /**\n * The path to the directory of the Hydrogen storefront. Defaults to the current directory where the command is run.\n * @environment SHOPIFY_HYDROGEN_FLAG_PATH\n */\n '--path <value>'?: string\n\n /**\n * Deploys to the Preview environment.\n *\n */\n '--preview'?: ''\n\n /**\n * Shop URL. It can be the shop prefix (janes-apparel) or the full myshopify.com URL (janes-apparel.myshopify.com, https://janes-apparel.myshopify.com).\n * @environment SHOPIFY_SHOP\n */\n '-s, --shop <value>'?: string\n\n /**\n * Oxygen deployment token. Defaults to the linked storefront's token if available.\n * @environment SHOPIFY_HYDROGEN_DEPLOYMENT_TOKEN\n */\n '-t, --token <value>'?: string\n}"
"value": "export interface hydrogendeploy {\n /**\n * Generate an authentication bypass token, which can be used to perform end-to-end tests against the deployment.\n * @environment AUTH_BYPASS_TOKEN\n */\n '--auth-bypass-token'?: ''\n\n /**\n * Specify the duration (in hours) up to 12 hours for the authentication bypass token. Defaults to `2`\n * @environment AUTH_BYPASS_TOKEN_DURATION\n */\n '--auth-bypass-token-duration <value>'?: string\n\n /**\n * Specify a build command to run before deploying. If not specified, `shopify hydrogen build` will be used.\n *\n */\n '--build-command <value>'?: string\n\n /**\n * Entry file for the worker. Defaults to `./server`.\n * @environment SHOPIFY_HYDROGEN_FLAG_ENTRY\n */\n '--entry <value>'?: string\n\n /**\n * Specifies the environment to perform the operation using its handle. Fetch the handle using the `env list` command.\n *\n */\n '--env <value>'?: string\n\n /**\n * Specifies the environment to perform the operation using its Git branch name.\n * @environment SHOPIFY_HYDROGEN_ENVIRONMENT_BRANCH\n */\n '--env-branch <value>'?: string\n\n /**\n * Path to an environment file to override existing environment variables for the deployment.\n *\n */\n '--env-file <value>'?: string\n\n /**\n * Forces a deployment to proceed if there are uncommitted changes in its Git repository.\n * @environment SHOPIFY_HYDROGEN_FLAG_FORCE\n */\n '-f, --force'?: ''\n\n /**\n * Client sourcemapping is avoided by default because it makes backend code visible in the browser. Use this flag to force enabling it.\n * @environment SHOPIFY_HYDROGEN_FLAG_FORCE_CLIENT_SOURCEMAP\n */\n '--force-client-sourcemap'?: ''\n\n /**\n * Create a JSON file containing the deployment details in CI environments. Defaults to true, use `--no-json-output` to disable.\n *\n */\n '--json-output'?: ''\n\n /**\n * Checks that there is exactly one valid lockfile in the project. Defaults to `true`. Deactivate with `--no-lockfile-check`.\n * @environment SHOPIFY_HYDROGEN_FLAG_LOCKFILE_CHECK\n */\n '--lockfile-check'?: ''\n\n /**\n * Description of the changes in the deployment. Defaults to the commit message of the latest commit if there are no uncommitted changes.\n * @environment SHOPIFY_HYDROGEN_FLAG_METADATA_DESCRIPTION\n */\n '--metadata-description <value>'?: string\n\n /**\n * User that initiated the deployment. Will be saved and displayed in the Shopify admin\n * @environment SHOPIFY_HYDROGEN_FLAG_METADATA_USER\n */\n '--metadata-user <value>'?: string\n\n /**\n * Skip the routability verification step after deployment.\n *\n */\n '--no-verify'?: ''\n\n /**\n * The path to the directory of the Hydrogen storefront. Defaults to the current directory where the command is run.\n * @environment SHOPIFY_HYDROGEN_FLAG_PATH\n */\n '--path <value>'?: string\n\n /**\n * Deploys to the Preview environment.\n *\n */\n '--preview'?: ''\n\n /**\n * Shop URL. It can be the shop prefix (janes-apparel) or the full myshopify.com URL (janes-apparel.myshopify.com, https://janes-apparel.myshopify.com).\n * @environment SHOPIFY_SHOP\n */\n '-s, --shop <value>'?: string\n\n /**\n * Oxygen deployment token. Defaults to the linked storefront's token if available.\n * @environment SHOPIFY_HYDROGEN_DEPLOYMENT_TOKEN\n */\n '-t, --token <value>'?: string\n}"
}
},
"hydrogendev": {
Expand Down Expand Up @@ -3442,7 +3442,7 @@
"syntaxKind": "PropertySignature",
"name": "--adapter <value>",
"value": "string",
"description": "Remix adapter used in the route. The default is `@shopify/remix-oxygen`.",
"description": "React Router adapter used in the route. The default is `react-router`.",
"isOptional": true,
"environmentValue": "SHOPIFY_HYDROGEN_FLAG_ADAPTER"
},
Expand Down Expand Up @@ -3483,7 +3483,7 @@
"environmentValue": "SHOPIFY_HYDROGEN_FLAG_FORCE"
}
],
"value": "export interface hydrogengenerateroute {\n /**\n * Remix adapter used in the route. The default is `@shopify/remix-oxygen`.\n * @environment SHOPIFY_HYDROGEN_FLAG_ADAPTER\n */\n '--adapter <value>'?: string\n\n /**\n * Overwrites the destination directory and files if they already exist.\n * @environment SHOPIFY_HYDROGEN_FLAG_FORCE\n */\n '-f, --force'?: ''\n\n /**\n * The param name in Remix routes for the i18n locale, if any. Example: `locale` becomes ($locale).\n * @environment SHOPIFY_HYDROGEN_FLAG_ADAPTER\n */\n '--locale-param <value>'?: string\n\n /**\n * The path to the directory of the Hydrogen storefront. Defaults to the current directory where the command is run.\n * @environment SHOPIFY_HYDROGEN_FLAG_PATH\n */\n '--path <value>'?: string\n\n /**\n * Generate TypeScript files\n * @environment SHOPIFY_HYDROGEN_FLAG_TYPESCRIPT\n */\n '--typescript'?: ''\n}"
"value": "export interface hydrogengenerateroute {\n /**\n * React Router adapter used in the route. The default is `react-router`.\n * @environment SHOPIFY_HYDROGEN_FLAG_ADAPTER\n */\n '--adapter <value>'?: string\n\n /**\n * Overwrites the destination directory and files if they already exist.\n * @environment SHOPIFY_HYDROGEN_FLAG_FORCE\n */\n '-f, --force'?: ''\n\n /**\n * The param name in Remix routes for the i18n locale, if any. Example: `locale` becomes ($locale).\n * @environment SHOPIFY_HYDROGEN_FLAG_ADAPTER\n */\n '--locale-param <value>'?: string\n\n /**\n * The path to the directory of the Hydrogen storefront. Defaults to the current directory where the command is run.\n * @environment SHOPIFY_HYDROGEN_FLAG_PATH\n */\n '--path <value>'?: string\n\n /**\n * Generate TypeScript files\n * @environment SHOPIFY_HYDROGEN_FLAG_TYPESCRIPT\n */\n '--typescript'?: ''\n}"
}
},
"hydrogengenerateroutes": {
Expand All @@ -3498,7 +3498,7 @@
"syntaxKind": "PropertySignature",
"name": "--adapter <value>",
"value": "string",
"description": "Remix adapter used in the route. The default is `@shopify/remix-oxygen`.",
"description": "React Router adapter used in the route. The default is `react-router`.",
"isOptional": true,
"environmentValue": "SHOPIFY_HYDROGEN_FLAG_ADAPTER"
},
Expand Down Expand Up @@ -3539,7 +3539,7 @@
"environmentValue": "SHOPIFY_HYDROGEN_FLAG_FORCE"
}
],
"value": "export interface hydrogengenerateroutes {\n /**\n * Remix adapter used in the route. The default is `@shopify/remix-oxygen`.\n * @environment SHOPIFY_HYDROGEN_FLAG_ADAPTER\n */\n '--adapter <value>'?: string\n\n /**\n * Overwrites the destination directory and files if they already exist.\n * @environment SHOPIFY_HYDROGEN_FLAG_FORCE\n */\n '-f, --force'?: ''\n\n /**\n * The param name in Remix routes for the i18n locale, if any. Example: `locale` becomes ($locale).\n * @environment SHOPIFY_HYDROGEN_FLAG_ADAPTER\n */\n '--locale-param <value>'?: string\n\n /**\n * The path to the directory of the Hydrogen storefront. Defaults to the current directory where the command is run.\n * @environment SHOPIFY_HYDROGEN_FLAG_PATH\n */\n '--path <value>'?: string\n\n /**\n * Generate TypeScript files\n * @environment SHOPIFY_HYDROGEN_FLAG_TYPESCRIPT\n */\n '--typescript'?: ''\n}"
"value": "export interface hydrogengenerateroutes {\n /**\n * React Router adapter used in the route. The default is `react-router`.\n * @environment SHOPIFY_HYDROGEN_FLAG_ADAPTER\n */\n '--adapter <value>'?: string\n\n /**\n * Overwrites the destination directory and files if they already exist.\n * @environment SHOPIFY_HYDROGEN_FLAG_FORCE\n */\n '-f, --force'?: ''\n\n /**\n * The param name in Remix routes for the i18n locale, if any. Example: `locale` becomes ($locale).\n * @environment SHOPIFY_HYDROGEN_FLAG_ADAPTER\n */\n '--locale-param <value>'?: string\n\n /**\n * The path to the directory of the Hydrogen storefront. Defaults to the current directory where the command is run.\n * @environment SHOPIFY_HYDROGEN_FLAG_PATH\n */\n '--path <value>'?: string\n\n /**\n * Generate TypeScript files\n * @environment SHOPIFY_HYDROGEN_FLAG_TYPESCRIPT\n */\n '--typescript'?: ''\n}"
}
},
"hydrogeninit": {
Expand Down
17 changes: 8 additions & 9 deletions packages/cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1358,7 +1358,7 @@ USAGE

FLAGS
-f, --force [env: SHOPIFY_HYDROGEN_FLAG_FORCE] Forces a deployment to proceed if there
are uncommited changes in its Git repository.
are uncommitted changes in its Git repository.
-s, --shop=<value> [env: SHOPIFY_SHOP] Shop URL. It can be the shop prefix (janes-apparel) or
the full myshopify.com URL (janes-apparel.myshopify.com,
https://janes-apparel.myshopify.com).
Expand Down Expand Up @@ -1388,7 +1388,7 @@ FLAGS
`--no-lockfile-check`.
--metadata-description=<value> [env: SHOPIFY_HYDROGEN_FLAG_METADATA_DESCRIPTION] Description of the changes
in the deployment. Defaults to the commit message of the latest commit if
there are no uncommited changes.
there are no uncommitted changes.
--metadata-user=<value> [env: SHOPIFY_HYDROGEN_FLAG_METADATA_USER] User that initiated the
deployment. Will be saved and displayed in the Shopify admin
--no-verify Skip the routability verification step after deployment.
Expand Down Expand Up @@ -1515,15 +1515,14 @@ USAGE
[--typescript]

ARGUMENTS
ROUTENAME (home|page|cart|products|collections|policies|blogs|account|search|robots|sitemap|tokenlessApi|all) The
route to generate. One of
home,page,cart,products,collections,policies,blogs,account,search,robots,sitemap,tokenlessApi,all.
ROUTENAME (home|page|cart|products|collections|policies|blogs|account|search|robots|sitemap|all) The route to
generate. One of home,page,cart,products,collections,policies,blogs,account,search,robots,sitemap,all.

FLAGS
-f, --force [env: SHOPIFY_HYDROGEN_FLAG_FORCE] Overwrites the destination directory and files if they
already exist.
--adapter=<value> [env: SHOPIFY_HYDROGEN_FLAG_ADAPTER] Remix adapter used in the route. The default is
`@shopify/remix-oxygen`.
--adapter=<value> [env: SHOPIFY_HYDROGEN_FLAG_ADAPTER] React Router adapter used in the route. The default
is `react-router`.
--locale-param=<value> [env: SHOPIFY_HYDROGEN_FLAG_ADAPTER] The param name in Remix routes for the i18n locale,
if any. Example: `locale` becomes ($locale).
--path=<value> [env: SHOPIFY_HYDROGEN_FLAG_PATH] The path to the directory of the Hydrogen storefront.
Expand All @@ -1545,8 +1544,8 @@ USAGE
FLAGS
-f, --force [env: SHOPIFY_HYDROGEN_FLAG_FORCE] Overwrites the destination directory and files if they
already exist.
--adapter=<value> [env: SHOPIFY_HYDROGEN_FLAG_ADAPTER] Remix adapter used in the route. The default is
`@shopify/remix-oxygen`.
--adapter=<value> [env: SHOPIFY_HYDROGEN_FLAG_ADAPTER] React Router adapter used in the route. The default
is `react-router`.
--locale-param=<value> [env: SHOPIFY_HYDROGEN_FLAG_ADAPTER] The param name in Remix routes for the i18n locale,
if any. Example: `locale` becomes ($locale).
--path=<value> [env: SHOPIFY_HYDROGEN_FLAG_PATH] The path to the directory of the Hydrogen storefront.
Expand Down
Loading
Loading