@@ -18,27 +18,34 @@ aegis init PROJECT_NAME [OPTIONS]
1818** Options:**
1919
2020- ` --components, -c TEXT ` - Comma-separated list of components (scheduler,worker,database,cache)
21+ - ` --services, -s TEXT ` - Comma-separated list of services (auth,payment,ai,analytics)
2122- ` --interactive / --no-interactive, -i / -ni ` - Use interactive component selection (default: interactive)
2223- ` --force, -f ` - Overwrite existing directory if it exists
23- - ` --output-dir, -o PATH ` - Directory to create the project in (default: current directory)
24+ - ` --output-dir, -o PATH ` - Directory to create the project in (default: current directory)
2425- ` --yes, -y ` - Skip confirmation prompt
2526
2627** Examples:**
2728``` bash
2829# Simple API project
2930aegis init my-api
3031
31- # Background processing system with scheduler
32+ # Background processing system with scheduler
3233aegis init task-processor --components scheduler
3334
3435# Background processing system with worker
3536aegis init task-processor --components worker
3637
37- # Full stack (future)
38- aegis init webapp --components scheduler,worker,database,cache
38+ # User authentication system
39+ aegis init user-app --services auth
40+
41+ # Full business application
42+ aegis init business-app --services auth,payment --components worker
3943
4044# Non-interactive with custom location
41- aegis init my-app --components scheduler --no-interactive --output-dir /projects --yes
45+ aegis init my-app --services auth --no-interactive --output-dir /projects --yes
46+
47+ # Combined services and components (must include auth's required components)
48+ aegis init full-stack --services auth --components database,scheduler,worker
4249```
4350
4451** Available Components:**
@@ -47,9 +54,65 @@ aegis init my-app --components scheduler --no-interactive --output-dir /projects
4754| -----------| --------| -------------|
4855| ` scheduler ` | ✅ Available | APScheduler-based async task scheduling |
4956| ` worker ` | ✅ Available | Pure arq worker with multiple queues for background processing |
50- | ` database ` | 🚧 Coming Soon | SQLAlchemy + asyncpg for PostgreSQL |
57+ | ` database ` | ✅ Available | SQLite database with SQLModel ORM |
5158| ` cache ` | 🚧 Coming Soon | Redis-based async caching |
5259
60+ ** Available Services:**
61+
62+ | Service | Status | Description | Auto-Added Components |
63+ | ---------| --------| -------------| ---------------------|
64+ | ` auth ` | ✅ Available | User authentication and authorization with JWT tokens | database * (backend+frontend always included)* |
65+ | ` ai ` | 🚧 Coming Soon | OpenAI integration for AI features | worker * (backend+frontend always included)* |
66+
67+ ** Service Auto-Resolution:**
68+
69+ When you select services, required components are automatically included:
70+
71+ ``` mermaid
72+ graph LR
73+ Service["--services auth"] --> Core["backend + frontend<br/>Always included"]
74+ Service --> Database["database component<br/>Auto-added by auth"]
75+ Service --> AuthFiles["Auth API routes + User models"]
76+
77+ style Service fill:#e8f5e8
78+ style Core fill:#e8f4fd
79+ style Database fill:#fff3e0
80+ style AuthFiles fill:#f1f8e9
81+ ```
82+
83+ ** Important CLI Behavior:**
84+ - ` backend ` and ` frontend ` components are always included in every project
85+ - ** Interactive mode** (` aegis init project ` ): Services auto-add their required components
86+ - ** Non-interactive mode** (` --components ` specified): You must explicitly include all required components
87+ - Example: ` --services auth ` requires ` --components database ` (auth won't auto-add it)
88+
89+ ## aegis services
90+
91+ List available services and their dependencies.
92+
93+ ** Usage:**
94+ ``` bash
95+ aegis services
96+ ```
97+
98+ ** Example Output:**
99+ ```
100+ 🔧 AVAILABLE SERVICES
101+ ========================================
102+
103+ 🔐 Authentication Services
104+ ----------------------------------------
105+ auth - User authentication and authorization with JWT tokens
106+ Requires components: backend, database
107+
108+ 💰 Payment Services
109+ ----------------------------------------
110+ No services available yet.
111+
112+ 🤖 AI & Machine Learning Services
113+ ----------------------------------------
114+ No services available yet.
115+ ```
53116
54117## aegis version
55118
@@ -118,7 +181,7 @@ cd my-project
118181uv sync # Install dependencies and create virtual environment
119182source .venv/bin/activate # Activate virtual environment (important!)
120183cp .env.example .env # Configure environment
121- make run-local # Start development server
184+ make server # Start development server
122185make test # Run test suite
123186make check # Run all quality checks
124187```
0 commit comments