Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grpc-cli

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grpc-cli

This is a gRPC Client CLI utility. You can explore a .proto file as well as interact with a given gRPC server.

  • 1.0.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

GRPC-Client

With grpc-cli you can do the following:

  • execute grpc commands
  • explore namespaces and grpc services
  • use an interactive prompt (Javascript REPL) for advanced usage

###Quick Example

>grpc-cli helloworld.proto localhost:50051 helloworld.Greeter.SayHello "{\"name\":\"World\"}"
{message: "Hello World"}

Installation

  1. install nodejs: nodejs.org

  2. install the grpc-client module:

    npm install -g grpc-cli
    

Usage

> grpc-cli [options] <protoFile> [hostPort] [rpcCommand] [rpcParam]

###Arguments

  • protoFile - required - filepath to the .proto file that will be used
  • hostPort - optional - the host and port for the GRPC server
  • rpcCommand - optional - the RPC command that will be executed, given the full namespace, use the -x option to see all available rpcCommand's
  • rpcParam - optional - the serialized json representation of the rpcCommand's parameter

###Options

-h, --help                                    give help information
-V, --version                                 output the version number
-i, --interactive                             Open an interactive prompt - Javascript REPL
-x, --explore                                 Displays available full RPC command paths for the given proto file
-u, --call-credentials <username> [password]  Username for call credentials
-c, --channel-credentials <pemFile>           Key file (.pem) OpenSSL file for secure channel credentials

###Not Implemented (yet)

  • Channel Credentials
  • Call Credintials
  • Streaming Inputs and/or outputs

###Contact Daniel Myers damyers2@cisco.com

Keywords

FAQs

Package last updated on 15 Mar 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc