1.0.6 • Published 5 years ago

paipctl v1.0.6

Weekly downloads
5
License
ISC
Repository
github
Last release
5 years ago

PAIPCTL

PAIPCTL is a cli tool to interact with PAIP services

At the moment the only available command is invoke used to invoke a remote method exposed over nats.

INSTALLATION

You can install it as a global npm package by running: npm i -g paipctl

USAGE

INVOKE

You can invoke a remote method by pushing a local yaml file:

paipctl invoke -f test.yaml

test.yaml

subject: login
args:
  - davide.talesco@gmail.com
  - password123

You can also pass required parameters directly via command line:

paipctl invoke --subject login --args davide.talesco@gmail.com password123

TODO: implement global options to override default nats settings

OBSERVE

You can observe a paip notice message:

paipctl observe --subejct login

OPTIONS

Below the accepted command line options:

Parameter NameTypeRequiredDefaultDescription
--natsStringfalse{}this is the node-nats client connect option object https://github.com/nats-io/node-nats
--timeoutnumberfalse25000this is the milliseconds paip wait before declaring a request timed out

Environment Variables

All options are also configurable through environment variables:

Option NameENV Key Name
natsPAIP_CLI_NATS
timeoutPAIP_CLI_TIMEOUT

Environment variables options have precedence and will overwrite the value passed via command line

Note PAIP_NATS and --nats should be stringified

1.0.6

5 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.1

6 years ago