Skip to content

Latest commit

 

History

History
77 lines (50 loc) · 834 Bytes

README.md

File metadata and controls

77 lines (50 loc) · 834 Bytes

M3O CLI

The command line for M3O

Install

Quick install

curl -fssl https://install.m3o.com/cli | /bin/bash

From source

go get github.com/m3o/m3o-cli/cmd/m3o

Otherwise download the latest release binary.

Usage

Display help

m3o -h

API Token

Export your API token as found in the UI

export M3O_API_TOKEN=xxxxxx

List services

m3o explore list

Search services

m3o explore search --query=helloworld

Query service

Usage

m3o [service] [endpoint] --[param]=value

Example

m3o helloworld call --name=Alice

Client Call

$ m3o client call helloworld Call '{"name": "Alice"}'
{
 "message": "Hello Alice"
}

Client Stream

m3o client stream notes Subscribe '{}'