1.0.5-beta • Published 6 years ago

seaquest-cli v1.0.5-beta

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

Seaquest-CLI

Seaquest is a command-line tool for quick restful requests directly from the command-line.

Getting started

To run Seaquest, make sure you have Node.js v6 or higher. Install Node.js via package manager.

Installation

The easiest way to install Seaquest is using npm. If you have Node.js installed, it is most likely that you have npm installed as well.

$ npm install -g seaquest-cli

This installs Seaquest globally on your system allowing you to run it from anywhere. If you want to install it locally, Just remove the -g flag.

Usage

Using Seaquest CLI

The seaquest command allows you to specify an endpoint to be called.

$ seaquest https://api.ipify.org

If you have arguments to send in your request, just use the parameter -a, --arguments.

$ seaquest http://www.omdbapi.com -a apikey=297b81a2 t=seaquest

Command Arguments

For the complete list or arguments you may inform -?, --help argument.

ArgumentDefaultTypeMultipleDescriptionExample
-e, --endpointStringNoThe remote address for the calling endpoint. The argument name may be suppressed when its value is the first argumentseaquest https://api.ipify.org
-a, --argumentsString[]YesThe key and value strings for the arguments to be sent-a apikey=297b81a2 t=seaquest
-m, --methodGETStringNoThe method to be used for calling the endpointseaqeuest https://api.ipify.org -m GET
-h, --headersString[]YesThe key and value strings for the headers to be sent-h "X-User-Token: 1a2b3c4d" "X-Client-Agent: Seaquest-CLI"
-t, --timeout30000NumberNoThe millisecond amount limit for receiving a response-t 10000
-b, --bodyStringNoThe body content to be sent on request-b { "id": "string", "length": 5 }
-i, --iteration1NumberNoThe number calls to be made. When higher than 1 the output is reduced.-i 5
-r, --iterationsIntervalTime1000NumberNoThe millisecond interval between iterations calls-r 5000
-l, --responseLimit5120NumberNoThe maximum size of response body to output in the console-l 300
-u, --uncutResponsefalseBooleanNoIndicates if the response should not be limited-u
-j, --jsonfalseBooleanNoIndicates if the response should be displayed as JSON-j
-v, --verbosefalseBooleanNoIndicates if Seaquest should output all information about both request and response-v
-?, --helpfalseBooleanNoIndicates if help info should be shown instead of making any call to an endpoint-?

Contributing

Please take a moment to analyse our source code. Open an issue first to discuss potential changes/additions.