Ir para o conteúdo

apogee make:*

The make:* family adds code to an existing project. All make commands edit files in place, write new ones, and may create migrations.

make:entity

Generates a domain entity, its repository port, ORM model, repository implementation, application use cases, FastAPI router and a migration.

Bash
apogee make:entity Customer \
  --field name:str \
  --field email:str \
  --field active:bool=true \
  --field created_at:datetime

Field syntax

Text Only
<name>:<type>[?][=default]
  • ? marks the field nullable
  • =default sets a default value

Supported types: str, int, float, bool, datetime, date, uuid, decimal, plus FK references like customer_id:fk(Customer) and enum types like status:enum(active,inactive,suspended).

make:value-object

Bash
apogee make:value-object Money --field amount:decimal --field currency:str

Generates a frozen dataclass under the appropriate domain context.

make:use-case

Bash
apogee make:use-case TransferFunds --context account

Creates a use case skeleton with input/output DTOs and a unit test file.

make:repository

Bash
apogee make:repository Customer --engine postgres

Used when you want to override the default repository implementation (for example, switching one entity to MongoDB while the rest stays in Postgres).

make:ai — AI integration

Wires an LLM provider into the project via apogee-ai-providers.

Bash
apogee make:ai assistant \
  --provider openrouter \
  --model anthropic/claude-opus-4

To list supported providers and models:

Bash
apogee ai:list

make:rag — RAG pipeline

Wires a RAG pipeline into the project via apogee-ai-rag. Supports 28 RAG variants and 60+ integrations.

Bash
apogee make:rag KnowledgeBase \
  --variant naive \
  --vector qdrant \
  --embedder openai \
  --reranker bge

To list supported variants and integrations:

Bash
apogee rag:list