Reactivehub Cli
Instalation
npm install -g @reactivehub/cli
All CLI commands will be available with the rhub
command.
Authentication
- In order to use all CLI features you must be authenticated, for that, run the login command in your terminal:
rhub login
-
Access the admin console and follow the auth steps.
-
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.
- Amazon Web Services
- Google Cloud Platform
- Custom and thrid party APIs
- MySQL
- PostgreSQL
- Redis
- Slack
- MailChimp
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.