Skip to content

buf curl#

The buf curl command lets you invoke RPCs on a Connect, gRPC, or gRPC-Web server. This improves usability over the standard curl utility since buf curl handles aspects of the relevant protocol for you, without you having to define the right headers and craft message envelopes. It also allows you to provide request data and view response data in JSON format, even while the on-the-wire format is binary.

$ buf curl \
    --data '{"sentence": "I feel happy."}' \
    https://demo.connectrpc.com/connectrpc.eliza.v1.ElizaService/Say

 {"sentence":"Do you often feel happy?"}

Next steps#

  • Usage guide: Full usage details including request data, metadata, schema resolution, and more examples
  • CLI reference: Complete list of flags and options