Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/servehub/sbus-cli
https://github.com/servehub/sbus-cli
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/servehub/sbus-cli
- Owner: servehub
- Created: 2019-11-29T15:09:28.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-02T18:04:49.000Z (over 1 year ago)
- Last Synced: 2024-06-21T03:16:37.231Z (5 months ago)
- Language: Go
- Size: 69.3 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
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
```