@ai-chat-ui/cli
v0.0.33
Published
CLI for AI Chat UI
Readme
@ai-chat-ui/cli
CLI tool for setting up AI Chat UI projects with shadcn/ui integration.
Installation
You can use the CLI without installation via npx:
npx @ai-chat-ui/cli create my-app
# or
npx @ai-chat-ui/cli initOr install it globally:
npm install -g @ai-chat-ui/cli
# or
pnpm add -g @ai-chat-ui/cli
# or
yarn global add @ai-chat-ui/cliCommands
create
Create a new AI Chat UI project with everything pre-configured.
npx @ai-chat-ui/cli create my-appIf you don't provide a project name, you'll be prompted for one:
npx @ai-chat-ui/cli createThis command will:
- Prompt for a project name (if not provided)
- Create a new Next.js app with the AI Chat UI starter template
- Install all required dependencies
- Set up Tailwind CSS and shadcn/ui components
- Configure everything needed to start building your AI chat interface
What's Included:
- ✅ Next.js 15 with App Router
- ✅ TypeScript configured
- ✅ Tailwind CSS v4
- ✅ shadcn/ui components pre-installed
- ✅ AI Chat UI components (@assistant-ui/react)
- ✅ Example chat interface
- ✅ API route for chat functionality
Prerequisites:
- Node.js 18+ installed
- npm, pnpm, or yarn
init
Initialize shadcn/ui in an existing React project.
npx @ai-chat-ui/cli initThis command will:
- Check if you're in a valid project directory (with
package.json) - Detect your package manager (npm, pnpm, or yarn)
- Check for React in your dependencies
- Run
shadcn/ui initto set up Tailwind CSS and shadcn/ui components
Prerequisites:
- A React project (Next.js, Vite, or Create React App)
- Node.js 18+ installed
Usage Example
# Navigate to your existing React project
cd my-react-app
# Initialize shadcn/ui
npx @ai-chat-ui/cli init
# After initialization, add shadcn/ui components
npx shadcn@latest add button
npx shadcn@latest add dialog
npx shadcn@latest add resizableWhat's Next?
After running init, you can:
- Add shadcn/ui components using
npx shadcn@latest add <component-name> - Build your AI chat interface with pre-styled components
- Customize components in the
components/uidirectory
Learn More
License
MIT
