@signalor/cli
v0.1.0
Published
Signalor CLI — scaffold @signalor/nextjs into your Next.js app in 30 seconds.
Maintainers
Readme
@signalor/cli
Zero-config bootstrap for @signalor/nextjs. Drops middleware, llms.txt route, sitemap, postbuild hook, and your API key into an existing Next.js app in 30 seconds.
Quick start
Inside your Next.js project's root directory:
npx @signalor/cli initThat's it. The CLI will:
- Detect your project (Next.js + package manager).
- Ask for your Signalor API key (skippable — you can wire it later).
- Install
@signalor/nextjsusing whichever package manager you use (pnpm / yarn / npm / bun). - Scaffold four files (never overwriting existing ones):
src/proxy.tson Next.js 16+ /src/middleware.tson 14-15 — AI-crawler detectionapp/llms.txt/route.ts— auto-generated llms.txtapp/sitemap.ts— Signalor sitemap helper- patches
package.jsonscripts.postbuildto runsignalor-deploy
- Write
SIGNALOR_API_KEYto.env.local(if you provided a key). - Print a summary + manual next-steps for
<SignalorSchema />in your root layout.
What it won't do
- Overwrite existing files. If you already have
proxy.ts/middleware.ts,app/llms.txt/route.ts, orapp/sitemap.ts, the CLI leaves them alone and prints the snippet you should add manually. - Touch your git state. No commits, no branches. Review the diff yourself.
- Run on non-Next.js apps. It bails out if
nextisn't inpackage.json.
Subcommands
| Command | What it does |
| ------------------ | ---------------------------------------------- |
| signalor init | Bootstrap @signalor/nextjs in this project |
| signalor --help | Show usage |
| signalor --version | Print the installed version |
More to come (signalor analyze, signalor login).
Get an API key
Mint one at signalor.ai → Settings → Developers. Per-org, revocable any time, shown once on creation.
License
MIT
