Documentation Index
Fetch the complete documentation index at: https://docs.outkit.dev/llms.txt
Use this file to discover all available pages before exploring further.
outkit init is the one command that wires your project to Outkit. It detects your
framework, lets you pick (or create) a profile, installs the right SDK, writes the backend
proxy endpoint, and prints the swap snippet for your stack.
Prerequisites
outkit init
Run it from the root of your project:
- Detects your framework — React, Next.js, Vue, Svelte, Astro, vanilla JS — and picks the right SDK package.
- Detects your design tokens — and applies them to your profile.
- Picks a profile — uses your team’s active profile, or offers to create one seeded with the detected tokens.
- Installs the SDK —
@outkit-dev/reactor@outkit-dev/core(use--no-installto skip). - Writes the backend proxy — server route that forwards to
POST /render/enhanceand keeps your API key on the server. - Writes
outkit.json— repo-local config the rest of the CLI reads. - Prints the swap snippet — the exact JSX/HTML to drop into your component.
Flags
| Flag | Effect |
|---|---|
--no-install | Don’t install the SDK package — just write configs and snippets. |
--profile <id> | Skip the profile picker and bind to a specific profile. |
outkit.json
outkit upgrade.
After init
You’ll see something like:Switching profiles or teams
outkit.json. To pull the new profile’s tokens into your repo:
Upgrading
When the SDK gets a new release:@outkit-dev/* packages and runs any required codemods. To preview migrations
between two specific versions:
Undo
init, theme apply, upgrade, and agent are all journaled to ~/.outkit/undo.json. To
reverse the most recent code-mutating command:
Health check
After init (and any time things look off):doctor checks auth, network reachability, project mode, SDK packages, the wire format end
to end, and the design-token meta event. Use --json to consume it from CI.
Next Steps
Generate API keys
Plaintext keys are shown once. The CLI offers to write them to
.env.local.Sync design tokens
outkit theme detect / apply / sync keeps your profile in lockstep with your codebase.