--- title: hydrogen shortcut description: |- 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 `. api_name: shopify-cli source_url: html: 'https://shopify.dev/docs/api/shopify-cli/hydrogen/hydrogen-shortcut' md: 'https://shopify.dev/docs/api/shopify-cli/hydrogen/hydrogen-shortcut.md' --- # hydrogen shortcutcommand 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 `. ### Examples * #### hydrogen shortcut ##### hydrogen shortcut ```bash shopify hydrogen shortcut ```