Skip to content

AshkanAbd/ngrpcli

Repository files navigation

ngrpcli: lightweight node gRPC cli client

How to use:

Installation:

npm i -g ngrpcli

Flags:

--url, -u: target gRPC url
--package, -p: gRPC package name
--proto, -P: gRPC proto file path
--service, -s: gRPC service name
--rpc, -r: gRPC rpc name
--data, -d: gRPC payload

Example:

npx ngrpcli -u localhost:5000 -p package -P /path/to/my.proto -s Service -r Rpc -d "{\"data\": \"my payload\"}"

Build from source:

Requirements:

Lib Version
Node 18
NestJS 10

Build:

nvm use # Switch to node version
npm i # To install dependencies

Run:

npm run start

About

node gRPC cli client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published