Skip to content

Installation

@revturbine/sdk is published to the public npm registry — no auth, token, or registry configuration required.

Terminal window
npm install @revturbine/sdk

The web SDK requires:

| Package | Version | |---|---| | react | >=18.0.0 | | react-dom | >=18.0.0 |

The SDK ships with full TypeScript declarations. No additional @types/ packages are needed.

Recommended tsconfig.json settings:

{
"compilerOptions": {
"strict": true,
"moduleResolution": "bundler",
"esModuleInterop": true,
"jsx": "react-jsx"
}
}

The same @revturbine/sdk package includes a headless entry point for use without React:

import { initRevTurbine } from '@revturbine/sdk/headless';

This import tree-shakes React dependencies. See the Headless API guide for usage patterns with vanilla JS, Vue, Svelte, and Angular.

Server SDKs are available for backend entitlement checks and placement resolution:

| Language | Package | |---|---| | Node.js | @revturbine/sdk (headless entry) | | Python | revturbine (PyPI) |

The @revturbine/cli package manages your RevTurbine configuration (plans, entitlements, placements) and change sets from the terminal — verify, diff, upload, and deploy an ExportedConfig.

Terminal window
npm install -g @revturbine/cli
revturbine --help

Or run it without installing:

Terminal window
npx @revturbine/cli verify ./exported_config.json

See the CLI reference for the full command surface (verify, diff, upload, deploy, export, status, and the change-set lifecycle).

Set these in your environment (.env, CI secrets, etc.) — never commit them to source:

| Variable | Description | Required | |---|---|---| | REVTURBINE_TENANT_ID | Your tenant identifier | Yes | | REVTURBINE_API_KEY | API key (prefixed rt_live_ or rt_test_) | Yes | | REVTURBINE_ENDPOINT | API endpoint URL | Yes (defaults to https://api.revturbine.io) |

.env
REVTURBINE_TENANT_ID=tenant_abc
REVTURBINE_API_KEY=rt_live_your_key_here
REVTURBINE_ENDPOINT=https://api.revturbine.io

| Runtime | Minimum Version | |---|---| | Node.js | 20+ | | Modern browsers | Chrome 90+, Firefox 90+, Safari 15+, Edge 90+ | | React | 18.0+ | | TypeScript | 5.0+ |