hydrogen/packages/cli/docs/installation.md
2021-11-04 15:22:30 -07:00

540 B

Installation

The @shopify/hydrogen-cli is installable globally or as a project dependency.

yarn global add @shopify/hydrogen-cli

After installation, you will have access to the h2 binary in your command line. You can verify that it is properly installed by running h2 version, which should present you with the currently installed version.

h2 version

Upgrading

To upgrade the global @shopify/hydrogen-cli package, you need to run:

yarn global upgrade --latest @shopify/hydrogen-cli