grpcurl -plaintext -d '{"name":"test"}' localhost:50051 helloworld.Greeter/SayHello

Category: Web App Development

grpcurl -plaintext -d '{"name":"test"}' localhost:50051 helloworld.Greeter/SayHello

Call a gRPC method with a JSON payload

Invokes the SayHello method on the Greeter service, sending the JSON message which grpcurl converts to the binary protobuf format. The -d flag supplies the request body and method names use the service slash method syntax. Omit -d to send an empty message.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.