Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/servehub/sbus-cli


https://github.com/servehub/sbus-cli

Last synced: 2 days ago
JSON representation

Awesome Lists containing this project

README

        

# sbus-cli

### Install

```
brew install servehub/tap/sbus-cli
```

### Configure

Configure access to env specific rabbitmq, identity/private key, and optionally consul (and datacenter if not dc1):

```shell script
export SBUS_AMQP_QA_URL="amqp://guest:[email protected]:5672/"
export SBUS_AMQP_STAGE_URL="amqp://guest:[email protected]:5672/"
export SBUS_AMQP_LIVE_URL="amqp://guest:[email protected]:5672/"

export SBUS_USER='users/joe.smith'
export SBUS_QA_PUBLIC_KEY=db41b9d8d231f***88f5fa007ce5
export SBUS_QA_PRIVATE_KEY=daf163359fb9***8863642af8029f5fa007ce5
```

### Usage

```shell script
sbus orders.create-order '{"price":"3.141592"}'
```

```shell script
sbus orders.create-order '{"price":"3.141592"}' --env=qa
```

```shell script
sbus orders.order-updated '{"orderId":"123"}' --env=qa --event
```

```shell script
sbus register users/joe.smith --save-to-consul="consul.qa.example.co" --group=devs --group=support --group=leads --env=qa
```

```shell
sbus --help
```