cubby init
Scaffold a new Cubby app with Next.js and Prisma preconfigured for the platform.Usage
Arguments
| Argument | Description | Default |
|---|---|---|
name | App name or . for current directory | my-cubby-app |
Examples
What Gets Created
The scaffold includes a complete Next.js 16 + Prisma setup:App Name Rules
App names must be DNS-safe:- 3-30 characters
- Lowercase letters, numbers, and hyphens only
- Must start and end with a letter or number
My Appbecomesmy-appapp_namebecomesapp-name
After Initialization
- Hot reload on code changes
- Local Postgres database
- Automatic schema sync
The CUBBY.md File
Every scaffolded app includes aCUBBY.md file that provides context for AI coding assistants. It documents:
- Platform constraints
- API route patterns
- Database access patterns
- Authentication (handled by Cubby SSO)
- What NOT to do
Customizing the Schema
Editprisma/schema.prisma to define your data models:
cubby dev which handles this automatically.
Next Steps
Aftercubby init:
- Install dependencies:
npm install - Start development:
cubby dev - Edit your schema:
prisma/schema.prisma - Build your app: Add pages in
app/ - Deploy:
cubby deploy
Related Commands
cubby dev- Start local developmentcubby deploy- Deploy to productioncubby check- Validate project