hydrogen link
Links your local development environment to a remote Hydrogen storefront. You can link an unlimited number of development environments to a single Hydrogen storefront.
Linking to a Hydrogen storefront enables you to run dev and automatically inject your linked Hydrogen storefront's environment variables directly into the server runtime.
After you run the link command, you can access the env list, env pull, and unlink commands.
Anchor to flagsFlags
The following flags are available for the hydrogen link command:
- Anchor to --create-storefront--create-storefront--create-storefrontenv: SHOPIFY_HYDROGEN_FLAG_CREATE_STOREFRONTenv: SHOPIFY_HYDROGEN_FLAG_CREATE_STOREFRONT
Create a new Hydrogen storefront.
- Anchor to --name <value>--name <value>--name <value>stringstringenv: SHOPIFY_HYDROGEN_FLAG_NAMEenv: SHOPIFY_HYDROGEN_FLAG_NAME
The name to use when creating a new Hydrogen storefront.
- Anchor to --path <value>--path <value>--path <value>stringstringenv: SHOPIFY_HYDROGEN_FLAG_PATHenv: SHOPIFY_HYDROGEN_FLAG_PATH
The path to the directory of the Hydrogen storefront. Defaults to the current directory where the command is run.
- Anchor to --storefront <value>--storefront <value>--storefront <value>stringstringenv: SHOPIFY_HYDROGEN_STOREFRONTenv: SHOPIFY_HYDROGEN_STOREFRONT
The name of a Hydrogen Storefront (e.g. "Jane's Apparel")
- Anchor to -f, --force-f, --force-f, --forceenv: SHOPIFY_HYDROGEN_FLAG_FORCEenv: SHOPIFY_HYDROGEN_FLAG_FORCE
Overwrites the destination directory and files if they already exist.
- Anchor to -s, --shop <value>-s, --shop <value>-s, --shop <value>stringstringenv: SHOPIFY_SHOPenv: 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).
hydrogen link
Examples
hydrogen link
shopify hydrogen link [flags]