@reactivehub/cli

Event Cli Tols


Keywords
reactivehub, cli, events
License
ISC
Install
npm install @reactivehub/cli@1.6.0

Documentation

Reactivehub Cli

Instalation

  1. Make sure you have Node.js and npm installed on your machine.

  2. Install the Reactivehub CLI tools.

  npm install -g @reactivehub/cli

All CLI commands will be available with the rhub command.

Authentication

  1. In order to use all CLI features you must be authenticated, for that, run the login command in your terminal:
  rhub login
  1. Access the admin console and follow the auth steps.

  2. Congratulations, you're all set!

Service Accounts

For security purposes, service accounts can only be added to your account in the admin console.

Commands

The command rhub --help list all available core commands, all action commands are available at the documentation page.

Command Description
init Create the .rhubrc configuration file.
login Authenticate to your Reactivehub account, you'll be redirect to the console admin to issue your auth code.
add:event Create a new event config YAML in the /events folder in the directory where the command was executed.
add:filter Add a new filter to an event.
add:action {eventId} {filterId} {type} {action} Add a Cloud Service action to an Event Filter.
deploy Deploy all events to your Reactivehub namespace API.
test Test your event YAML config.

Action Commands

Check the action documentation page to view all available commands.

Deploy

All events are deployed under your namespace ({namespace}.reactivehub.io/events), the rhub deploy command will check and send to our servers all the YAML configuration files under the /events foldes in the directory where the command was executed.