-
Install protobuf;
-
Configure the
grpc.generate.config.json
in your project;- Example:
{ "github": { "repo": "repository with yours .proto files to clone", "token": "Personal Token <only if repository is private>", "isPrivate": false } }
-
Use
npm install -g grpc-generate
ornpx grpc-generate
to run CLI;