Rollout.io - Documentation

After you created your application, it is time to install the SDK.
There are two steps in the SDK install:

  1. Add Rollout SDK to your project.
  2. Initialize Rollout SDK when the app starts.

1. Add the Rollout SDK To Your Project

The first step is to add the Rollout Node.js library to your project.
Run the following npm command:

npm i rox-node --save

2. Initialize the Rollout SDK when the app starts

You will need your Rollout app key. This key is unique to your application and can be found in the Installation Instructions dialog or in the App Settings tab.

import Rox from 'rox-node';

await Rox.setup('<the app key goes here>');
const Rox = require("rox-node");

Rox.setup('<the app key goes here>');

That's it! Now your app is ready to use Rollout.

And with that, it's time to create a Rollout feature flag.

Node.js


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.