treehook-cli
v1.0.4
Published
Treehook CLI for localhost connection
Downloads
8
Readme
Treehook CLI
Treehook CLI is a driver to bridge your localhost API to treehook server
npm install -g treehook-cli
To use this CLI to relay incoming webhooks to your localhost, you will need to create an account free at https://treehook.dev and create a webhook with localhost relay
How to use
The easiest way is to copy the command right from your treehook dashboard
- Go to projects tab
- Choose your project
- Choose the webhook you want to relay to your localhost
- Copy the command by clicking on the copy icon
- Paste the command to your terminal
- Change the PORT to your running service
Usage: thook --port [num] <options>
Options:
--version Show version number
-p, --port Internal HTTP server port [required]
-c, --code Code from the treehook dashboard [required]
-u, --url In case the default trehook url is deprecated [string]
-v, --verbose Print basic request info [boolean]
--help Show this help and exit [boolean]