dotnet-grpc-cli 0.5.0

There is a newer version of this package available.
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                
nuke :add-package dotnet-grpc-cli --version 0.5.0                

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 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.

Version Downloads Last updated
0.6.0 2,226 4/19/2022
0.5.0 12,444 5/11/2021
0.4.0 1,208 1/24/2021
0.3.0 418 1/20/2021
0.2.0 699 7/5/2020
0.1.0 636 7/4/2020