Hoppscotch CLI
A CLI to run Hoppscotch test scripts in CI environments.
Preview of the CLI:
Commands Available:
Usage: hopp-cli [options or commands] arguments
Options:
-v, --ver see the current version of the CLI
-c, --config <file> path to a Hoppscotch collection.json file for CI testing
-h, --help display help for command
Commands:
test interactive Hoppscotch testing through CLI
Command Descriptions:
-
hopp-cli -v
/ hopp-cli --ver
- Prints out the current version of the Hoppscotch CLI
-
hopp-cli -c <config>
/ hopp-cli --config <config>
- Takes an absolute path of the Hoppscotch config JSON
- Parses the collection JSON and executes each requests
- Outputs the response of each request
- (FUTURE SCOPE): Execute the pre-request and post-request scripts on each request
-
hopp-cli -h
/ hopp-cli --help
-
hopp-cli test
- Interactive CLI to accept Hoppscotch collection JSON path
- Parses the collection JSON and executes each requests
- Outputs the response of each request
- (FUTURE SCOPE): Execute the pre-request and post-request scripts on each request
Installation:
- Clone the repository
pnpm install
cd packages/hoppscotch-cli
pnpm run build
sudo pnpm link --global
- Test the installation by executing
hopp-cli
Contributing:
To get started contributing to the repository, please read CONTRIBUTING.md