@cvo/cli
v0.0.0
Published
CLI for CVO Framework
Downloads
42
Readme
@cvo/cli
The official Command Line Interface (CLI) for the CVO Framework. It provides a set of essential tools for project initialization, development, and production builds.
🚀 Commands
cvo init <name>
Initializes a new CVO project from an official template. It sets up the directory structure, installs dependencies, and configures the environment.
cvo dev
Starts the high-performance development server.
- Hot Module Replacement (HMR): Instant updates to both frontend and backend logic.
- Live Codegen: Automatically regenerates the API SDK whenever backend source files change.
- Dev Dashboard: Access the CVO Dev Dashboard at
/__cvofor real-time environment status.
cvo build
Generates a production-ready build of your application.
- Tree-shaking: Removes unused code to ensure minimal bundle sizes.
- Optimization: Compresses and optimizes assets for peak performance.
- Type Verification: Ensures absolute type safety across the entire project.
cvo codegen
Manually triggers the static analysis and code generation process. Useful in CI/CD pipelines or restricted environments where automatic watchers are not used.
cvo db
Built-in database management tools powered by Prisma.
cvo db init: Initialize Prisma in your project.cvo db migrate: Run database migrations.cvo db generate: Generate the Prisma client.cvo db studio: Open the visual database editor.cvo db push: Push schema changes directly to the database.
🛠 Configuration
The CLI reads settings from your project's cvo.config.ts. You can override ports, entry points, and plugin configurations there.
📦 Installation
npm install -g @cvo/cli
# or
pnpm add -g @cvo/cli