Setup

The command line interface (CLI) gives you tools to build and deploy events configuration. It can be used to:

  • Build events endpoints and define models.

  • Create event filters

  • Add actions and integrate cloud services to event filters.

  • Deploy events to Reactivehub cloud.

Installation

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

  2. Install the Reactivehub CLI tools.

npm install -g @reactivehub/cli

Note: All CLI commands are available with the rhubcommand.

rhub init

Run the init command in your project folder to create the .rhubrc configuration file.

{
"events": {
"folder": "events"
},
"listeners": {
"folder": "listeners"
}
}

Authentication

  1. To authenticate the Reactivehub Cli you first need to sign up for a Reactivehub account.

  2. Run the rhub login command in your terminal.

  3. Access the admin console and follow the auth steps.

  4. Congratulations, you're all set!