ngrpcli is a lightweight Node.js gRPC CLI client for making gRPC requests from the command line. Current stable version is 1.0.3. It allows users to specify a proto file, package, service, RPC method, URL, and JSON payload via command-line flags. Key differentiators: simple and minimal compared to full-featured gRPC clients like grpcurl, requires no interactive shell, and is written in TypeScript with NestJS. Releases are infrequent (last update in 2023).
npm install ngrpcliNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Makes a gRPC call to localhost:5000 using a proto file, service, and RPC with JSON payload.
Use absolute path or path relative to where you run the CLI.
Use double quotes for strings inside JSON (e.g., '{"key":"value"}') and escape properly.Always provide --package if proto file does not have a 'package' statement.
Use Node.js v18+.
Install globally with 'npm i -g ngrpcli' or use 'npx ngrpcli'.
Use absolute path or ensure proto file exists relative to current working directory.
Use valid JSON: wrap keys in double quotes and use double quotes for strings.
Verify server is running and URL is correct (e.g., localhost:5000).
Use import syntax or switch to CommonJS by setting type: 'commonjs' in package.json (if applicable).
No dependency data recorded yet.