@ucd-lib/fin-cli

0.12.3 • Public • Published

fin-cli

CLI interface to the fin-server

Screenshoot

Install CLI

Requires NodeJS. Then run:

npm install -g @ucd-lib/fin-cli

Usage

Open a shell and type

fin shell

You should enter the FIN shell. the first time you do this you will be asked to provide your fin server url.

You can all also run fin cli commands directly from your main shell. ex:

fin http get -P hbHB /

To access help commands use --help. For example, to view options for an http get request type:

fin http get --help

The display:

  Options:

    --help                 output usage information
    -H, --header <header>  Add additional Headers to the request
    --check-status         Return exit code for unsucessful calls
    --pretty               Pretty response body print if application/json or application/ld+json
    -P, --print <print>    [hbsHB] Specify what components to print to user. 
                            Value should be any combination of hbsHB where: 
                            H=request headers, 
                            B=request body,
                            h=response headers,
                            b=response body and 
                            s=response HTTP status code
    -d, --debug            Debug all http requests

Readme

Keywords

none

Package Sidebar

Install

npm i @ucd-lib/fin-cli

Weekly Downloads

7

Version

0.12.3

License

MIT

Unpacked Size

8.22 MB

Total Files

149

Last publish

Collaborators

  • ucdust
  • jrmerz
  • qjhart
  • steveisgreat