- 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 Javascript library to your project.
Run the following npm command:

npm i rox-browser --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-browser';

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

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.


Suggested Edits are limited on API Reference Pages

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