Skip to content

Introduction

grpcmd is the grpc command: a simple, easy-to-use, and developer-friendly CLI tool for gRPC.

Feature Overview

  • View Available Services and Methods (using Reflection)
    • grpc :50051
  • Describe a gRPC Method
    • grpc :50051 UnaryMethod
      • Supports short method names with error on ambiguity.
      • Supports shell completion for the method argument.
      • Outputs a description of the method and its request/response messages.
  • Call a gRPC Method
    • grpc :50051 UnaryMethod '{"name":"Bob"}'
      • Supports streaming both requests and responses.
      • Outputs headers, data, and trailers.
      • On gRPC error, the exit code = 64 + the gRPC status code.
  • Start a gRPC Server (Implements grpcmd.GrpcmdService with Reflection)
    • grpc server :50051