Skip to content

CLI Installation ​

Install the WebhookRelay CLI on your system.

The easiest way to install the CLI is via npm:

bash
npm install -g webhookrelay-cli

Verify installation:

bash
webhookrelay --version

Binary Download ​

Download pre-built binaries for your platform:

macOS ​

bash
# Intel
curl -fsSL https://releases.webhookrelay.com/cli/latest/webhookrelay-darwin-amd64 -o /usr/local/bin/webhookrelay
chmod +x /usr/local/bin/webhookrelay

# Apple Silicon
curl -fsSL https://releases.webhookrelay.com/cli/latest/webhookrelay-darwin-arm64 -o /usr/local/bin/webhookrelay
chmod +x /usr/local/bin/webhookrelay

Linux ​

bash
# x64
curl -fsSL https://releases.webhookrelay.com/cli/latest/webhookrelay-linux-amd64 -o /usr/local/bin/webhookrelay
chmod +x /usr/local/bin/webhookrelay

# ARM64
curl -fsSL https://releases.webhookrelay.com/cli/latest/webhookrelay-linux-arm64 -o /usr/local/bin/webhookrelay
chmod +x /usr/local/bin/webhookrelay

Windows ​

powershell
# PowerShell
Invoke-WebRequest -Uri "https://releases.webhookrelay.com/cli/latest/webhookrelay-windows-amd64.exe" -OutFile "$env:USERPROFILE\bin\webhookrelay.exe"

# Add to PATH
$env:PATH += ";$env:USERPROFILE\bin"

Homebrew (macOS) ​

bash
brew tap webhookrelay/tap
brew install webhookrelay

Docker ​

Run the CLI in a Docker container:

bash
docker run -it webhookrelay/cli --version

# With persistent auth
docker run -it -v ~/.webhookrelay:/root/.webhookrelay webhookrelay/cli login

Authentication ​

After installation, authenticate with your account:

Interactive Login ​

bash
webhookrelay login

This opens a browser for OAuth authentication.

API Key ​

For CI/CD or automated environments:

bash
# Set via environment variable
export WEBHOOKRELAY_API_KEY="whr_live_abc123..."
webhookrelay sources list

# Or pass directly
webhookrelay --api-key "whr_live_abc123..." sources list

Configuration File ​

Create ~/.webhookrelay/config.json:

json
{
  "apiKey": "whr_live_abc123...",
  "organizationId": "org_xyz789",
  "apiUrl": "https://api.hookbase.app"
}

Configuration ​

Set Default Organization ​

bash
# List organizations
webhookrelay orgs list

# Set default
webhookrelay config set organization org_xyz789

Configuration Options ​

OptionEnvironment VariableDescription
apiKeyWEBHOOKRELAY_API_KEYAPI key for authentication
organizationIdWEBHOOKRELAY_ORG_IDDefault organization
apiUrlWEBHOOKRELAY_API_URLAPI base URL

View Configuration ​

bash
webhookrelay config show

Updating ​

npm ​

bash
npm update -g webhookrelay-cli

Binary ​

Re-download the latest binary using the commands above.

Homebrew ​

bash
brew upgrade webhookrelay

Uninstalling ​

npm ​

bash
npm uninstall -g webhookrelay-cli

Binary ​

bash
rm /usr/local/bin/webhookrelay
rm -rf ~/.webhookrelay

Homebrew ​

bash
brew uninstall webhookrelay

Troubleshooting ​

Command Not Found ​

Ensure the installation directory is in your PATH:

bash
# Check PATH
echo $PATH

# Add to PATH (add to ~/.bashrc or ~/.zshrc)
export PATH="$PATH:/usr/local/bin"

Permission Denied ​

On macOS/Linux, you may need to make the binary executable:

bash
chmod +x /usr/local/bin/webhookrelay

Authentication Failed ​

  1. Verify your API key is valid
  2. Check if the key has required permissions
  3. Ensure you're using the correct organization
bash
# Test authentication
webhookrelay whoami

Network Issues ​

If behind a proxy:

bash
export HTTPS_PROXY=http://proxy.example.com:8080
webhookrelay login

Getting Help ​

bash
# General help
webhookrelay --help

# Command-specific help
webhookrelay tunnel --help
webhookrelay sources --help

Released under the MIT License.