@macrocontent/create-macro. Prefer pnpm dlx so you always get the latest CLI. Commands: init, login, logout, add. Account login (library)
pnpm dlx @macrocontent/create-macro login Opens Dashboard /cli-login, stores credentials under ~/.config/macro/credentials.json. Separate from init setup sessions.
Add a Store component (source)
pnpm dlx @macrocontent/create-macro add @macro/free-section Requires a library entitlement with source download. Hosted-only offers stay Dashboard Assign. Writes under macro-components/<slug>/ and prints project-slot host markup when needed.
Human init
pnpm dlx @macrocontent/create-macro init Creates a short-lived setup session, opens the Dashboard wizard (/setup?session=…), then writes macro.config.js and installs SDK/overlay.
Agent / CI init
pnpm dlx @macrocontent/create-macro init --yes --stack=vite --overlay --json Useful flags: --offline, --force, --skip-install, --prerender, --session=<id>.
From the Dashboard
Website overview → Setup SDK widget → copy a linked CLI command (session already completed with that site’s public key).