Skip to main content
veloiq new creates a ready-to-run VeloIQ project in a single command. It copies the framework’s scaffold templates, applies your app name throughout all generated files, and sets up both the Python backend and the React frontend — including Alembic migration support and AI context files for common coding tools.

Usage

Options

Examples

<app-name> is slugified automatically — spaces and special characters are converted to hyphens. My App becomes my-app.

Generated project structure

Key generated files

backend/app/main.py — The complete application is created by a single call to create_veloiq_app. The module auto-loader, admin UI, auth system, and CORS are all wired up automatically.
backend/.env.example — All supported environment variables with inline documentation. Copy this to .env before running the backend.
backend/api_schema_gen.py — The entry point for code generation. Running veloiq generate calls this file internally; you can also invoke it directly with python api_schema_gen.py. frontend/src/App.tsx — A clean application shell (~50 lines) that wires together routing, auth, and the Refine data provider. You rarely need to edit this file. frontend/src/allModels.gen.ts — A registry of all module schemas consumed by the frontend’s dynamic CRUD pages. This file is overwritten every time you run veloiq generate.
Never edit api.py or any *.gen.ts file. They are overwritten by veloiq generate.

AI context files

veloiq new writes context files that teach AI coding assistants the VeloIQ conventions for your project. Each tool reads its own file automatically. All files encode the same workflow: use veloiq add-module, edit models.py, run veloiq generate, run veloiq db upgrade, and never manually edit generated files.

Adding modules to an existing project

After the initial scaffold, use veloiq add-module to add feature modules one at a time:
This creates the module skeleton under backend/app/modules/inventory/:

Optional flags

After creating a module, edit models.py to define your fields, then run veloiq generate followed by veloiq db upgrade.