Docs
CLI
Add, preview and search blocks with the shadcn CLI, and unlock Pro blocks with your registry token.
Our blocks install with the shadcn CLI you already know. These commands need the @twe registry in components.json, as set up in the Setup.
Add a block
pnpm dlx shadcn@latest add @twe/cta-minimal-bannerAdd several at once by listing their names:
pnpm dlx shadcn@latest add @twe/auth-minimal-login @twe/auth-minimal-registerLook before you install
Print a block's files and dependencies without writing anything:
pnpm dlx shadcn@latest view @twe/cta-minimal-bannerSearch the registry from your terminal:
pnpm dlx shadcn@latest search @twe -q "pricing"Update a block
Installed blocks are your code, so the CLI won't replace them silently. To take our latest version, overwrite the file. This removes your own edits to it:
pnpm dlx shadcn@latest add @twe/cta-minimal-banner --overwritePro blocks
Pro blocks install with the same command once the CLI sends your registry token. The token comes with All-Access, and the same token unlocks Pro code in the MCP server.
Create your registry token
Save it in your project's .env.local
TWE_TOKEN=twe_your_tokenSend it with the registry in components.json
This replaces the plain @twe line from Setup:
{
"registries": {
"@twe": {
"url": "https://techwithemma.com/r/{name}.json",
"headers": { "Authorization": "Bearer ${TWE_TOKEN}" }
}
}
}Keep .env.local out of git. Creating a new token revokes the old one, so you can rotate it any time in Account > Registry token.