xref: /aosp_15_r20/external/grpc-grpc/examples/cpp/reflection/README.md (revision cc02d7e222339f7a4f6ba5f422e6413f4bd931f2)
1gRPC Reflection Example
2================
3
4This example shows how reflection can be registered on a gRPC server.
5
6### Build and run the example
7
8To start the reflection server on its default port of 50051, run the following command from within the `examples/cpp/reflection` folder:
9
10```
11$ bazel run :reflection_server
12```
13
14There are multiple existing reflection clients you can use to inspect its services.
15
16To use `gRPC CLI`, see https://github.com/grpc/grpc-go/blob/master/Documentation/server-reflection-tutorial.md#grpc-cli.
17
18To use `grpcurl`, see https://github.com/fullstorydev/grpcurl.
19