dotnet-grpc-cli
0.5.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet tool install --global dotnet-grpc-cli --version 0.5.0
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo dotnet tool install --local dotnet-grpc-cli --version 0.5.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=dotnet-grpc-cli&version=0.5.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package dotnet-grpc-cli --version 0.5.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
dotnet-grpc-cli
A .NET Global Tool equivalent of grpc_cli. Inspired by grpc_cli
Install
dotnet tool install -g dotnet-grpc-cli
List services
dotnet grpc-cli ls <address>
Example:
dotnet grpc-cli ls http://localhost:10042
Shared_CS.Calculator
MegaCorp.TimeService
List methods in service
dotnet grpc-cli ls <address> <service>
Example:
dotnet grpc-cli ls http://localhost:10042 MegaCorp.TimeService
filename: MegaCorp.TimeService.proto
package: MegaCorp
service TimeService {
rpc Subscribe(ProtoBuf.Grpc.Internal.Empty) returns (stream MegaCorp.TimeResult) {}
}
Dump service in proto format
dotnet grpc-cli dump <address> <service>
Example:
dotnet grpc-cli dump http://localhost:10042 MegaCorp.TimeService
---
File: ProtoBuf.Grpc.Internal.Empty.proto
---
syntax = "proto3";
package ProtoBuf.Grpc.Internal;
message Empty {
}
---
File: MegaCorp.TimeResult.proto
---
syntax = "proto3";
import "google/protobuf/timestamp.proto";
package MegaCorp;
message TimeResult {
Timestamp Time = 1;
}
---
File: MegaCorp.TimeService.proto
---
syntax = "proto3";
import "ProtoBuf.Grpc.Internal.Empty.proto";
import "MegaCorp.TimeResult.proto";
package MegaCorp;
service TimeService {
rpc Subscribe(Empty) returns (stream TimeResult);
}
Write proto to disk
dotnet grpc-cli dump <address> <service> -o <directory>
Example:
dotnet grpc-cli dump http://localhost:10042 MegaCorp.TimeService -o ./protos
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.