pub package likes points popularity license stars forks sdk version

Command-line application for code generation for gRPC clients from gRPC Reflection.

Note: Requires Dart 2.17 or above.

Get Started

Install as a global tool

To install grpcgen as a global tool, run:

dart pub global activate grpcgen

Install as a project dependency

Add grpcgen package in your dev_dependencies:

dev_dependencies:
  grpcgen: any

Note: This package should not be added to dependencies.

In order to generate gRPC Client code from server reflection, run:

dart run grpcgen https://example-domain.com

Output

If everything goes well in the previews section, the outputs will be generated. The generated files can be found in lib/grpc/generated/.

Libraries