v0 Platform API/Packages
create-v0-sdk-app
Create v0 SDK-powered apps with one command
A command-line tool for quickly scaffolding new applications powered by the v0 SDK. Get started with pre-built templates and examples.
Installation
No installation required! Use with npx
:
Or install globally:
Usage
Interactive Mode
The CLI will prompt you for:
- Project name: Your app's directory name
- Template: Choose from available templates
- Package manager: npm, pnpm, or yarn
Direct Usage
Available Templates
v0 Clone
A full-featured replica of v0.dev with authentication and multi-tenant support.
Features:
- User authentication (NextAuth.js)
- Multi-tenant architecture
- PostgreSQL database with Drizzle ORM
- Real-time streaming
- Rate limiting
Classic v0
The iconic v0.dev interface with three-generation workflow.
Features:
- Classic v0 UI/UX
- Multiple generations (A, B, C)
- shadcn/ui components
- Next.js 15 with App Router
AI Tools Example
Demonstrates AI SDK integration with v0 tools.
Features:
- AI SDK integration
- v0 tools for autonomous agents
- Multiple agent patterns
- TypeScript examples
Command Options
Options
--template <name>
- Specify template (v0-clone, classic-v0, ai-tools-example)--package-manager <pm>
- Choose package manager (npm, pnpm, yarn)--help
- Show help information--version
- Show version number
Examples
Create a v0 clone
Set up environment variables:
Install dependencies and start:
Create a classic v0 interface
Post-Creation Steps
After creating your app:
-
Set up environment variables:
-
Install dependencies:
-
Database setup (for v0-clone template):
-
Start development server:
Template Structure
Each template includes:
- Complete source code - Ready-to-run application
- Documentation - Setup and usage instructions
- Environment examples -
.env.example
files - Package configuration - Optimized
package.json
- TypeScript config - Proper TypeScript setup
Customization
After creation, you can:
- Modify components - All source code is yours to customize
- Add features - Extend with additional v0 SDK capabilities
- Change styling - Update themes and design systems
- Deploy - Ready for deployment to Vercel, Netlify, etc.
Requirements
- Node.js 22+
- pnpm 9+ (recommended)
- v0 API key from v0.dev