shopify 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
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.
Usage
shopify hydrogen link [flags]Summary
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.
Flags
--path <value>string— The path to the directory of the Hydrogen storefront. Defaults to the current directory where the command is run. optional Environment:SHOPIFY_HYDROGEN_FLAG_PATH.--storefront <value>string— The name of a Hydrogen Storefront (e.g. "Jane's Apparel") optional Environment:SHOPIFY_HYDROGEN_STOREFRONT.-f, --force— Overwrites the destination directory and files if they already exist. optional Environment:SHOPIFY_HYDROGEN_FLAG_FORCE.