Documentation
The Barista's Manual
Everything you need to know about brewing production-ready code with CodeCaffeine.
Documentation is being written — Some sections are preview only
Quick Start
terminal
1
Install the CLI
$ npm install -g @codecaffeine/cli
2
Authenticate
$ cc auth login
3
Brew your first service
$ cc brew schema.sql --framework express
4
Ship it
$ npm run dev
Documentation Sections
Getting Started
Install the CLI, set up your account, and generate your first service in under 5 minutes.
InstallationQuick StartConfiguration
Schema-to-Service
Learn how to transform database schemas into full-stack services with customizable architecture patterns.
SQL InputPrisma InputArchitecture PatternsOutput Configuration
Refactor Engine
Understand how the refactoring engine analyzes and transforms code using design patterns.
Code AnalysisPattern DetectionType InferenceCustom Rules
Coming Soon
API Contracts
Generate perfectly aligned frontend and backend code from a single API specification.
OpenAPI SpecFrontend HooksBackend MocksValidation
Coming Soon
Marketplace
Browse templates, contribute your own, and customize generation templates for your team.
Browse TemplatesCreate TemplatesTemplate APIPublishing
CLI Reference
Complete reference for the cc command-line tool, including all commands, flags, and options.
cc brewcc refactorcc contractcc init
CLI Reference Preview
cc brew
Generate a full-stack service from a database schema file.
Usage
$ cc brew <schema-file> [options]
Options
--frameworkTarget framework (express, fastapi, nestjs)express--archArchitecture pattern (clean, hexagonal, mvc)clean--outputOutput directory./generated--validateInclude validation schemas (zod, pydantic)zod--dry-runPreview generated files without writingfalse