Shopify CLI Docs

shopify hydrogen shortcut

Creates a global h2 shortcut for Shopify CLI using shell aliases. The following shells are supported: - Bash (using ~/.bashrc) - ZSH (using ~/.zshr

Creates a global h2 shortcut for Shopify CLI using shell aliases.

The following shells are supported:

  • Bash (using ~/.bashrc)
  • ZSH (using ~/.zshrc)
  • Fish (using ~/.config/fish/functions)
  • PowerShell (added to $PROFILE)

After the alias is created, you can call Shopify CLI from anywhere in your project using h2 <command>.

Usage

shopify hydrogen shortcut

Summary

Creates a global h2 shortcut for Shopify CLI using shell aliases.

The following shells are supported:

  • Bash (using ~/.bashrc)
  • ZSH (using ~/.zshrc)
  • Fish (using ~/.config/fish/functions)
  • PowerShell (added to $PROFILE)

After the alias is created, you can call Shopify CLI from anywhere in your project using h2 <command>.

Flags

No command-specific flags were listed in the generated docs snapshot.

Official source

On this page