Command-line application for code generation for gRPC clients from gRPC Reflection.
Note: Requires Dart 2.17 or above.
Install as a global tool
To install grpcgen as a global tool, run:
dart pub global activate grpcgen
Install as a project dependency
grpcgen package in your
dev_dependencies: grpcgen: any
Note: This package should not be added to
In order to generate gRPC Client code from server reflection, run:
dart run grpcgen https://example-domain.com
If everything goes well in the previews section, the outputs will be generated.
The generated files can be found in