---
id: "changelog/affitor-init-wizard"
type: "changelog"
url: "https://affitor.com/changelog/affitor-init-wizard"
updated: "2026-05-25"
---
# affitor init wires tracking into your Next.js app

> The CLI detects Next.js, installs the SDK and adds the tracking code for you, with a preview of every change before it writes.

Run `affitor init` in a Next.js project. The CLI detects the framework, installs the SDK, and adds the tracking code, showing you the diff before it writes anything.

```bash
npx affitor init
```

A server-side Node SDK ships alongside it, so you can record sales from your backend. Since June 2026 the SDK is published as `@affitor/sdk`.
