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

Update cli-hydrogen to 13.0.2
18 changes: 18 additions & 0 deletions docs-shopify.dev/commands/interfaces/hydrogen-link.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,36 @@
* @publicDocs
*/
export interface hydrogenlink {
/**
* Create a new Hydrogen storefront.
* @environment SHOPIFY_HYDROGEN_FLAG_CREATE_STOREFRONT
*/
'--create-storefront'?: ''

/**
* Overwrites the destination directory and files if they already exist.
* @environment SHOPIFY_HYDROGEN_FLAG_FORCE
*/
'-f, --force'?: ''

/**
* The name to use when creating a new Hydrogen storefront.
* @environment SHOPIFY_HYDROGEN_FLAG_NAME
*/
'--name <value>'?: string

/**
* The path to the directory of the Hydrogen storefront. Defaults to the current directory where the command is run.
* @environment SHOPIFY_HYDROGEN_FLAG_PATH
*/
'--path <value>'?: string

/**
* 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).
* @environment SHOPIFY_SHOP
*/
'-s, --shop <value>'?: string

/**
* The name of a Hydrogen Storefront (e.g. "Jane's Apparel")
* @environment SHOPIFY_HYDROGEN_STOREFRONT
Expand Down
29 changes: 28 additions & 1 deletion docs-shopify.dev/generated/generated_docs_data_v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -3897,6 +3897,24 @@
"description": "The following flags are available for the `hydrogen link` command:",
"isPublicDocs": true,
"members": [
{
"filePath": "docs-shopify.dev/commands/interfaces/hydrogen-link.interface.ts",
"syntaxKind": "PropertySignature",
"name": "--create-storefront",
"value": "''",
"description": "Create a new Hydrogen storefront.",
"isOptional": true,
"environmentValue": "SHOPIFY_HYDROGEN_FLAG_CREATE_STOREFRONT"
},
{
"filePath": "docs-shopify.dev/commands/interfaces/hydrogen-link.interface.ts",
"syntaxKind": "PropertySignature",
"name": "--name <value>",
"value": "string",
"description": "The name to use when creating a new Hydrogen storefront.",
"isOptional": true,
"environmentValue": "SHOPIFY_HYDROGEN_FLAG_NAME"
},
{
"filePath": "docs-shopify.dev/commands/interfaces/hydrogen-link.interface.ts",
"syntaxKind": "PropertySignature",
Expand All @@ -3923,9 +3941,18 @@
"description": "Overwrites the destination directory and files if they already exist.",
"isOptional": true,
"environmentValue": "SHOPIFY_HYDROGEN_FLAG_FORCE"
},
{
"filePath": "docs-shopify.dev/commands/interfaces/hydrogen-link.interface.ts",
"syntaxKind": "PropertySignature",
"name": "-s, --shop <value>",
"value": "string",
"description": "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).",
"isOptional": true,
"environmentValue": "SHOPIFY_SHOP"
}
],
"value": "export interface hydrogenlink {\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 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 * The name of a Hydrogen Storefront (e.g. \"Jane's Apparel\")\n * @environment SHOPIFY_HYDROGEN_STOREFRONT\n */\n '--storefront <value>'?: string\n}"
"value": "export interface hydrogenlink {\n /**\n * Create a new Hydrogen storefront.\n * @environment SHOPIFY_HYDROGEN_FLAG_CREATE_STOREFRONT\n */\n '--create-storefront'?: ''\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 name to use when creating a new Hydrogen storefront.\n * @environment SHOPIFY_HYDROGEN_FLAG_NAME\n */\n '--name <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 * 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 * The name of a Hydrogen Storefront (e.g. \"Jane's Apparel\")\n * @environment SHOPIFY_HYDROGEN_STOREFRONT\n */\n '--storefront <value>'?: string\n}"
}
},
"hydrogenlist": {
Expand Down
16 changes: 15 additions & 1 deletion packages/cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2614,13 +2614,27 @@ Link a local project to one of your shop's Hydrogen storefronts.

```
USAGE
$ shopify hydrogen link [-f] [--path <value>] [--storefront <value>]
$ shopify hydrogen link [--create-storefront | --storefront <value>] [-f] [--name <value> | ] [--path <value>]
[-s <value>]

FLAGS
-f, --force
Overwrites the destination directory and files if they already exist.
[env: SHOPIFY_HYDROGEN_FLAG_FORCE]

-s, --shop=<value>
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).
[env: SHOPIFY_SHOP]

--create-storefront
Create a new Hydrogen storefront.
[env: SHOPIFY_HYDROGEN_FLAG_CREATE_STOREFRONT]

--name=<value>
The name to use when creating a new Hydrogen storefront.
[env: SHOPIFY_HYDROGEN_FLAG_NAME]

--path=<value>
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
34 changes: 34 additions & 0 deletions packages/cli/oclif.manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4899,6 +4899,16 @@
"descriptionWithMarkdown": "Links your local development environment to a remote Hydrogen storefront. You can link an unlimited number of development environments to a single Hydrogen storefront.\n\n Linking to a Hydrogen storefront enables you to run [dev](https://shopify.dev/docs/api/shopify-cli/hydrogen/hydrogen-dev) and automatically inject your linked Hydrogen storefront's environment variables directly into the server runtime.\n\n After you run the `link` command, you can access the [env list](https://shopify.dev/docs/api/shopify-cli/hydrogen/hydrogen-env-list), [env pull](https://shopify.dev/docs/api/shopify-cli/hydrogen/hydrogen-env-pull), and [unlink](https://shopify.dev/docs/api/shopify-cli/hydrogen/hydrogen-unlink) commands.",
"enableJsonFlag": false,
"flags": {
"create-storefront": {
"allowNo": false,
"description": "Create a new Hydrogen storefront.",
"env": "SHOPIFY_HYDROGEN_FLAG_CREATE_STOREFRONT",
"exclusive": [
"storefront"
],
"name": "create-storefront",
"type": "boolean"
},
"force": {
"allowNo": false,
"char": "f",
Expand All @@ -4907,6 +4917,17 @@
"name": "force",
"type": "boolean"
},
"name": {
"description": "The name to use when creating a new Hydrogen storefront.",
"env": "SHOPIFY_HYDROGEN_FLAG_NAME",
"exclusive": [
"storefront"
],
"hasDynamicHelp": false,
"multiple": false,
"name": "name",
"type": "option"
},
"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 All @@ -4915,9 +4936,22 @@
"name": "path",
"type": "option"
},
"shop": {
"char": "s",
"description": "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).",
"env": "SHOPIFY_SHOP",
"hasDynamicHelp": false,
"multiple": false,
"name": "shop",
"type": "option"
},
"storefront": {
"description": "The name of a Hydrogen Storefront (e.g. \"Jane's Apparel\")",
"env": "SHOPIFY_HYDROGEN_STOREFRONT",
"exclusive": [
"create-storefront",
"name"
],
"hasDynamicHelp": false,
"multiple": false,
"name": "storefront",
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.1",
"@shopify/plugin-did-you-mean": "4.5.1",
"@shopify/theme": "4.5.1",
"@shopify/cli-hydrogen": "13.0.1",
"@shopify/cli-hydrogen": "13.0.2",
"@types/global-agent": "3.0.0",
"@vitest/coverage-istanbul": "^3.2.6",
"esbuild-plugin-copy": "^2.1.1"
Expand Down
Loading
Loading