grpc-cli is a Node.js command-line utility for interacting with gRPC servers using .proto files. Version 1.0.2 is the current stable release. It allows executing gRPC commands, exploring services and namespaces, and provides an interactive REPL for advanced usage. Key differentiators include its simplicity for quick prototyping and debugging without a full client library. However, it has limited functionality: streaming RPCs and credentials are not yet implemented. The tool is globally installable via npm.
npm install grpc-cliNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Installs grpc-cli globally, then executes a unary RPC call with a JSON parameter.
Not supported; use alternative client for streaming.
Use --insecure or wrap with a library like google-grpc.
Use single quotes and double quotes inside: '{"name":"value"}'.Consider migrating to gRPC-JS or using grpc-cli only for quick tests.
npm install -g grpc-cli (includes grpc)
Use JSON.stringify format: '{"name":"World"}'Verify server is running and host:port is correct.
Use full protobuf path (e.g., package.Service) as shown by --explore.