npm i -g ngrpcli
--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
npx ngrpcli -u localhost:5000 -p package -P /path/to/my.proto -s Service -r Rpc -d "{\"data\": \"my payload\"}"
Lib | Version |
---|---|
Node | 18 |
NestJS | 10 |
nvm use # Switch to node version
npm i # To install dependencies
npm run start