Skip to content

feat: add create-chat-sdk CLI for scaffolding Chat SDK projects#359

Open
bensabic wants to merge 11 commits into
mainfrom
feat/chatbot-cli
Open

feat: add create-chat-sdk CLI for scaffolding Chat SDK projects#359
bensabic wants to merge 11 commits into
mainfrom
feat/chatbot-cli

Conversation

@bensabic
Copy link
Copy Markdown
Contributor

@bensabic bensabic commented Apr 10, 2026

summary

adds create-chat-sdk, a scaffold CLI for starting new Chat SDK bot projects

this renames the package from create-bot to create-chat-sdk so users can run the idiomatic npm create chat-sdk@latest my-bot flow

it also tightens the CLI behavior:

  • supports --no-install
  • makes -y fully non-interactive
  • validates package manager and project names earlier
  • fails clearly for unknown adapters or multiple state adapters
  • dedupes repeated platform adapters
  • writes package.json directly instead of shelling out to npm pkg set
  • updates generated README commands to the selected package manager
  • includes react-dom and @types/react-dom in the generated Next.js template

test plan

  • pnpm --filter create-chat-sdk test
  • pnpm --filter create-chat-sdk typecheck
  • pnpm --filter create-chat-sdk build
  • pnpm -w run check
  • pnpm --filter docs build
  • pnpm knip
  • scaffold smoke test with Slack, Discord, Redis, pnpm, and --no-install

Introduces `create-bot`, a CLI tool (like create-next-app) that scaffolds
new Chat SDK bot projects. It prompts for a project name, description,
platform adapters, and a state adapter, then generates a complete Next.js
project with webhook routes, environment variables, and bot configuration.

Supports interactive and non-interactive usage via flags (--adapter,
--description, --pm, --quiet, --yes). Includes full test coverage,
README, and documentation integrated into the Chat SDK docs site.

Made-with: Cursor
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Apr 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
chat Ready Ready Preview, Comment, Open in v0 May 29, 2026 5:10pm
chat-sdk-nextjs-chat Ready Ready Preview, Comment, Open in v0 May 29, 2026 5:10pm

@socket-security
Copy link
Copy Markdown

socket-security Bot commented Apr 10, 2026

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​chat@​4.29.0771009597100
Addednpm/​@​types/​react@​19.2.151001007995100
Addednpm/​react@​19.2.61001008497100
Addednpm/​commander@​13.1.09810010084100
Addednpm/​react-dom@​19.2.61001009298100
Addednpm/​@​clack/​prompts@​0.10.11001009996100

View full report

Comment thread skills/chat/SKILL.md Outdated
@dancer dancer requested a review from a team as a code owner May 29, 2026 17:00
@dancer dancer changed the title feat: add create-bot CLI for scaffolding Chat SDK projects feat: add create-chat-sdk CLI for scaffolding Chat SDK projects May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants