Quick Install
Install Ahh CLI with a single command:
curl -fsSL https://cli.ahh.bet/install.sh | bash
After installation, reload your shell configuration:
Verify the installation:
Requirements
Before installing Ahh CLI, ensure you have the following dependencies:
curl
Required for downloading the installation script and CLI binary.Most systems have curl pre-installed. Verify with: cloudflared
Required for creating tunnels with the tunnel and serve commands.The tunnel feature uses Cloudflare’s free tunnel service to expose local ports to the internet.
Install cloudflared:brew install cloudflare/cloudflare/cloudflared
Manual Installation
If you prefer to install manually:
Download the binary
Download the appropriate archive for your operating system:mkdir -p ~/.ahh/bin
curl -L -o ~/.ahh/ahh-dist-linux.tar.gz \
https://github.com/abhishekg999/ahh/releases/latest/download/ahh-dist-linux.tar.gz
Extract and install
tar -xzf ~/.ahh/ahh-dist-linux.tar.gz -C ~/.ahh
rm ~/.ahh/ahh-dist-linux.tar.gz
chmod +x ~/.ahh/bin/ahh
Add to PATH
Add the following to your shell configuration file:# ahh
export AHH_HOME="$HOME/.ahh"
export PATH="$HOME/.ahh/bin:$PATH"
Shell Completions
The installation script automatically sets up shell completions. If you installed manually, add completions with:
Generate completion script
AHH_COMPLETIONS=1 ~/.ahh/bin/ahh > ~/.ahh/_ahh
Load completions
Add to your shell configuration:# ahh completions
[ -s "$HOME/.ahh/_ahh" ] && source "$HOME/.ahh/_ahh"
Shell completions provide tab-completion for commands and options, improving your workflow efficiency.
Updating
Update to the latest version of Ahh CLI:
This command automatically downloads and installs the latest release.
Troubleshooting
If you encounter “command not found” errors after installation, ensure you’ve reloaded your shell configuration or opened a new terminal window.
Unsupported Shell
If you’re using a shell other than bash, zsh, or fish, manually add the following to your shell configuration:
export AHH_HOME="$HOME/.ahh"
export PATH="$HOME/.ahh/bin:$PATH"
[ -s "$HOME/.ahh/_ahh" ] && source "$HOME/.ahh/_ahh"
Cloudflared Not Found
If tunnel commands fail with “cloudflared not found”:
- Verify cloudflared is installed:
cloudflared --version
- Ensure cloudflared is in your PATH
- Reinstall cloudflared using the instructions in the Requirements section
Uninstalling
To remove Ahh CLI:
Then remove the configuration lines from your shell config file (~/.bashrc, ~/.zshrc, or ~/.config/fish/config.fish).