Skip to content
Merged
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/stable-update-hydrogen-cli-13.0.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/cli': patch
---

Update cli-hydrogen to 13.0.1
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export interface hydrogendeploy {
'--env-file <value>'?: string

/**
* Forces a deployment to proceed if there are uncommitted changes in its Git repository.
* Forces a deployment to proceed if there are uncommitted changes in its Git repository, and skips confirmation prompts for non-preview environments.
* @environment SHOPIFY_HYDROGEN_FLAG_FORCE
*/
'-f, --force'?: ''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
* @publicDocs
*/
export interface hydrogenenvpush {
/**
* Preview environment variable changes without pushing them.
* @environment SHOPIFY_HYDROGEN_FLAG_DRY_RUN
*/
'--dry-run'?: ''

/**
* Specifies the environment to perform the operation using its handle. Fetch the handle using the `env list` command.
*
Expand All @@ -16,6 +22,12 @@ export interface hydrogenenvpush {
*/
'--env-file <value>'?: string

/**
* Push environment variable changes without confirmation.
* @environment SHOPIFY_HYDROGEN_FLAG_FORCE
*/
'-f, --force'?: ''

/**
* The path to the directory of the Hydrogen storefront. Defaults to the current directory where the command is run.
* @environment SHOPIFY_HYDROGEN_FLAG_PATH
Expand Down
24 changes: 21 additions & 3 deletions docs-shopify.dev/generated/generated_docs_data_v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -3365,7 +3365,7 @@
"syntaxKind": "PropertySignature",
"name": "-f, --force",
"value": "''",
"description": "Forces a deployment to proceed if there are uncommitted changes in its Git repository.",
"description": "Forces a deployment to proceed if there are uncommitted changes in its Git repository, and skips confirmation prompts for non-preview environments.",
"isOptional": true,
"environmentValue": "SHOPIFY_HYDROGEN_FLAG_FORCE"
},
Expand All @@ -3388,7 +3388,7 @@
"environmentValue": "SHOPIFY_HYDROGEN_DEPLOYMENT_TOKEN"
}
],
"value": "export interface hydrogendeploy {\n /**\n * Directory containing the client assets to deploy, relative to the project root. Defaults to the detected Vite client output directory, then falls back to `dist/client`.\n * @environment SHOPIFY_HYDROGEN_FLAG_ASSETS_DIR\n */\n '--assets-dir <value>'?: string\n\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, the Hydrogen build pipeline will be used. When custom output directories are configured, defaults to `node --run build`.\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\n /**\n * Directory containing the Oxygen worker entry point (`index.js` or `index.mjs`), relative to the project root. Defaults to the detected Vite server output directory, then falls back to `dist/server`.\n * @environment SHOPIFY_HYDROGEN_FLAG_WORKER_DIR\n */\n '--worker-dir <value>'?: string\n}"
"value": "export interface hydrogendeploy {\n /**\n * Directory containing the client assets to deploy, relative to the project root. Defaults to the detected Vite client output directory, then falls back to `dist/client`.\n * @environment SHOPIFY_HYDROGEN_FLAG_ASSETS_DIR\n */\n '--assets-dir <value>'?: string\n\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, the Hydrogen build pipeline will be used. When custom output directories are configured, defaults to `node --run build`.\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, and skips confirmation prompts for non-preview environments.\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\n /**\n * Directory containing the Oxygen worker entry point (`index.js` or `index.mjs`), relative to the project root. Defaults to the detected Vite server output directory, then falls back to `dist/server`.\n * @environment SHOPIFY_HYDROGEN_FLAG_WORKER_DIR\n */\n '--worker-dir <value>'?: string\n}"
}
},
"hydrogendev": {
Expand Down Expand Up @@ -3621,6 +3621,15 @@
"description": "The following flags are available for the `hydrogen env push` command:",
"isPublicDocs": true,
"members": [
{
"filePath": "docs-shopify.dev/commands/interfaces/hydrogen-env-push.interface.ts",
"syntaxKind": "PropertySignature",
"name": "--dry-run",
"value": "''",
"description": "Preview environment variable changes without pushing them.",
"isOptional": true,
"environmentValue": "SHOPIFY_HYDROGEN_FLAG_DRY_RUN"
},
{
"filePath": "docs-shopify.dev/commands/interfaces/hydrogen-env-push.interface.ts",
"syntaxKind": "PropertySignature",
Expand All @@ -3645,9 +3654,18 @@
"description": "The path to the directory of the Hydrogen storefront. Defaults to the current directory where the command is run.",
"isOptional": true,
"environmentValue": "SHOPIFY_HYDROGEN_FLAG_PATH"
},
{
"filePath": "docs-shopify.dev/commands/interfaces/hydrogen-env-push.interface.ts",
"syntaxKind": "PropertySignature",
"name": "-f, --force",
"value": "''",
"description": "Push environment variable changes without confirmation.",
"isOptional": true,
"environmentValue": "SHOPIFY_HYDROGEN_FLAG_FORCE"
}
],
"value": "export interface hydrogenenvpush {\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 * Path to an environment file to override existing environment variables. Defaults to the '.env' located in your project path `--path`.\n *\n */\n '--env-file <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}"
"value": "export interface hydrogenenvpush {\n /**\n * Preview environment variable changes without pushing them.\n * @environment SHOPIFY_HYDROGEN_FLAG_DRY_RUN\n */\n '--dry-run'?: ''\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 * Path to an environment file to override existing environment variables. Defaults to the '.env' located in your project path `--path`.\n *\n */\n '--env-file <value>'?: string\n\n /**\n * Push environment variable changes without confirmation.\n * @environment SHOPIFY_HYDROGEN_FLAG_FORCE\n */\n '-f, --force'?: ''\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}"
}
},
"hydrogengenerateroute": {
Expand Down
13 changes: 11 additions & 2 deletions packages/cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2234,7 +2234,8 @@ USAGE

FLAGS
-f, --force
Forces a deployment to proceed if there are uncommitted changes in its Git repository.
Forces a deployment to proceed if there are uncommitted changes in its Git repository, and skips confirmation
prompts for non-preview environments.
[env: SHOPIFY_HYDROGEN_FLAG_FORCE]

-s, --shop=<value>
Expand Down Expand Up @@ -2450,9 +2451,17 @@ Push environment variables from the local .env file to your linked Hydrogen stor

```
USAGE
$ shopify hydrogen env push [--env <value> | ] [--env-file <value>] [--path <value>]
$ shopify hydrogen env push [--dry-run | -f] [--env <value> | ] [--env-file <value>] [--path <value>]

FLAGS
-f, --force
Push environment variable changes without confirmation.
[env: SHOPIFY_HYDROGEN_FLAG_FORCE]

--dry-run
Preview environment variable changes without pushing them.
[env: SHOPIFY_HYDROGEN_FLAG_DRY_RUN]

--env=<value>
Specifies the environment to perform the operation using its handle. Fetch the handle using the `env list` command.

Expand Down
20 changes: 19 additions & 1 deletion packages/cli/oclif.manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4181,7 +4181,7 @@
"force": {
"allowNo": false,
"char": "f",
"description": "Forces a deployment to proceed if there are uncommitted changes in its Git repository.",
"description": "Forces a deployment to proceed if there are uncommitted changes in its Git repository, and skips confirmation prompts for non-preview environments.",
"env": "SHOPIFY_HYDROGEN_FLAG_FORCE",
"name": "force",
"required": false,
Expand Down Expand Up @@ -4561,6 +4561,16 @@
"description": "Push environment variables from the local .env file to your linked Hydrogen storefront.",
"enableJsonFlag": false,
"flags": {
"dry-run": {
"allowNo": false,
"description": "Preview environment variable changes without pushing them.",
"env": "SHOPIFY_HYDROGEN_FLAG_DRY_RUN",
"exclusive": [
"force"
],
"name": "dry-run",
"type": "boolean"
},
"env": {
"description": "Specifies the environment to perform the operation using its handle. Fetch the handle using the `env list` command.",
"exclusive": [
Expand All @@ -4580,6 +4590,14 @@
"required": false,
"type": "option"
},
"force": {
"allowNo": false,
"char": "f",
"description": "Push environment variable changes without confirmation.",
"env": "SHOPIFY_HYDROGEN_FLAG_FORCE",
"name": "force",
"type": "boolean"
},
"path": {
"description": "The path to the directory of the Hydrogen storefront. Defaults to the current directory where the command is run.",
"env": "SHOPIFY_HYDROGEN_FLAG_PATH",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"@shopify/plugin-cloudflare": "4.5.0",
"@shopify/plugin-did-you-mean": "4.5.0",
"@shopify/theme": "4.5.0",
"@shopify/cli-hydrogen": "13.0.0",
"@shopify/cli-hydrogen": "13.0.1",
"@types/global-agent": "3.0.0",
"@vitest/coverage-istanbul": "^3.2.6",
"esbuild-plugin-copy": "^2.1.1"
Expand Down
7 changes: 6 additions & 1 deletion packages/e2e/data/snapshots/commands.txt
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,18 @@
├─ search
├─ store
│ ├─ auth
│ │ └─ list
│ ├─ bulk
│ │ ├─ cancel
│ │ ├─ execute
│ │ └─ status
│ ├─ create
│ │ └─ preview
│ ├─ execute
│ ├─ graphiql
│ └─ info
│ ├─ info
│ ├─ list
│ └─ open
├─ theme
│ ├─ check
│ ├─ console
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading