Command Line Interface for an awaiting hook-server, like hook.io.
This library can be installed by installing the hook.io-sdk.
npm install hook.io -g
You can also install the tool directly by running
npm install hook-cli -g
Either of these commands will make the hook
binary globally available on your local system.
The hook
binary has several usage options.
hook [command] [options]
hook [file] [options]
The hook
binary is fully capable of receiving and sending data through standard unix pipes.
echo "hello" | hook echo | echo $1
Initializes / creates a new Hook locally. Will prompt you for information related to creating the Hook.
Pushes the current working hook to an awaiting hook-server
, like hook.io
Pulls the current version of the hook from an awaiting hook-server
, like hook.io
Runs the current working Hook. Will prompt for parameters if a schema is present. Will treat STDIN / STDOUT as HTTP request and response streams.
Tests the current working Hook.