---
id: "changelog/affitor-init-wizard"
type: "changelog"
url: "https://affitor.com/changelog/affitor-init-wizard"
updated: "2026-05-25"
---
# Sign in from the CLI, and init wires tracking into Next.js

> The CLI signs you in through the browser, and init detects Next.js, installs the SDK and adds the tracking code, asking before each install and showing a diff before it edits your layout.

The CLI now signs you in through your browser, so programs you create belong to your dashboard account. `programs` lists them and `whoami` shows who is signed in.

```bash
npx affitor login
npx affitor init
```

In a Next.js project, `init` detects the framework, installs the SDK and adds the tracking code. It asks before installing anything and shows a diff of the change to your app layout before applying it.

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`.
