The command line for M3O
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.
Display help
m3o -h
Export your API token as found in the UI
export M3O_API_TOKEN=xxxxxx
m3o explore list
m3o explore search --query=helloworld
Usage
m3o [service] [endpoint] --[param]=value
Example
m3o helloworld call --name=Alice
$ m3o client call helloworld Call '{"name": "Alice"}'
{
"message": "Hello Alice"
}
m3o client stream notes Subscribe '{}'