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:

PackageVersion
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:

LanguagePackage
Node.js@revturbine/sdk (headless entry)
Pythonrevturbine (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

The CLI signs in with a browser device-flow login — there are no API keys or environment variables to set. Authorize it once per machine:

Terminal window
revturbine login

This opens your browser to approve the device, then stores a tenant-scoped token at ~/.revturbine/credentials.json (file mode 0600). Run revturbine status to confirm you’re connected — or revturbine signup to create an account from the terminal first. Commands that only read or validate a local file, like verify, need no login.

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

RuntimeMinimum Version
Node.js20+
Modern browsersChrome 90+, Firefox 90+, Safari 15+, Edge 90+
React18.0+
TypeScript5.0+