On this page you find all important commands for the CLI tool grpcurl. If the
command you are looking for is missing please ask our AI.
grpcurl
- grpcurl is a command line tool used for interacting with gRPC servers.
- It acts as a command line client, allowing users to send requests and receive responses from gRPC servers.
- It supports various features like unary, server-side streaming, client-side streaming, and bidirectional streaming.
- grpcurl is written in Go and is available for Linux, macOS, and Windows platforms.
- It provides a straightforward and intuitive way to test gRPC services without writing any code.
- The tool has built-in support for protobuf messages, allowing users to easily construct and send requests.
- grpcurl can be used to perform service discovery by querying the server for the available services and their methods.
- It also supports SSL/TLS encryption, enabling secure communication with gRPC servers.
- grpcurl supports both HTTP/1.1 and HTTP/2 transport protocols, making it compatible with various gRPC server implementations.
- It is a powerful tool for debugging, testing, and exploring gRPC APIs, and is widely used by developers in the gRPC community.
List of commands for grpcurl:
-
grpcurl:tldr:254ad grpcurl: Send an empty request.$ grpcurl ${grpc-server-com:443} ${my-custom-server-Service-Method}try on your machineexplain this command
-
grpcurl:tldr:30f39 grpcurl: List all methods in a particular service.$ grpcurl ${grpc-server-com:443} list ${my-custom-server-Service}try on your machineexplain this command
-
grpcurl:tldr:bbd17 grpcurl: Send a request with a header and a body.$ grpcurl -H "${Authorization: Bearer $token}" -d ${'{"foo": "bar"}'} ${grpc-server-com:443} ${my-custom-server-Service-Method}try on your machineexplain this command
-
grpcurl:tldr:e060d grpcurl: List all services exposed by a server.$ grpcurl ${grpc-server-com:443} listtry on your machineexplain this command