CLI Installation
Install the WebhookRelay CLI on your system.
npm (Recommended)
The easiest way to install the CLI is via npm:
bash
npm install -g webhookrelay-cliVerify installation:
bash
webhookrelay --versionBinary 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/webhookrelayLinux
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/webhookrelayWindows
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 webhookrelayDocker
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 loginAuthentication
After installation, authenticate with your account:
Interactive Login
bash
webhookrelay loginThis 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 listConfiguration File
Create ~/.webhookrelay/config.json:
json
{
"apiKey": "whr_live_abc123...",
"organizationId": "org_xyz789",
"apiUrl": "https://api.webhookrelay.com"
}Configuration
Set Default Organization
bash
# List organizations
webhookrelay orgs list
# Set default
webhookrelay config set organization org_xyz789Configuration Options
| Option | Environment Variable | Description |
|---|---|---|
apiKey | WEBHOOKRELAY_API_KEY | API key for authentication |
organizationId | WEBHOOKRELAY_ORG_ID | Default organization |
apiUrl | WEBHOOKRELAY_API_URL | API base URL |
View Configuration
bash
webhookrelay config showUpdating
npm
bash
npm update -g webhookrelay-cliBinary
Re-download the latest binary using the commands above.
Homebrew
bash
brew upgrade webhookrelayUninstalling
npm
bash
npm uninstall -g webhookrelay-cliBinary
bash
rm /usr/local/bin/webhookrelay
rm -rf ~/.webhookrelayHomebrew
bash
brew uninstall webhookrelayTroubleshooting
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/webhookrelayAuthentication Failed
- Verify your API key is valid
- Check if the key has required permissions
- Ensure you're using the correct organization
bash
# Test authentication
webhookrelay whoamiNetwork Issues
If behind a proxy:
bash
export HTTPS_PROXY=http://proxy.example.com:8080
webhookrelay loginGetting Help
bash
# General help
webhookrelay --help
# Command-specific help
webhookrelay tunnel --help
webhookrelay sources --help