How alzeph/django-forge-cli works
Django Forge is a Django project-management CLI. A developer invokes forge; its entry point dispatches native commands or forwards Django commands to manage.py. The main workflow scaffolds a project, then adds apps, installs manifest-described modules, or configures services; these operations modify project settings, URLs, dependencies, and Forge state. Blueprints combine those operations, while list, remove, upgrade, and doctor support ongoing management. The graph reflects documented workflows and source-index references; unsampled command implementations are not assumed to call particular helpers.
Main entry points: install.py Module installation · main.py CLI router · blueprint.py Blueprint orchestration · configure.py Service configuration
Components 24
CLI entry
- CLI router
forge/main.py - Django command runner
forge/core/engine.py
Project scaffolding
- Project initialization
forge/commands/init.py - App generation
forge/commands/add.py - Project skeleton
forge/templates/project_base/settings.py - Welcome page
forge/templates/project_base/welcome.py
Modules and services
- Module installation
forge/commands/install.py - Dependency resolver
forge/core/dependency_resolver.py - Module manifests
forge/templates/apps - Service configuration
forge/commands/configure.py - Module removal
forge/commands/remove.py - Module upgrade
forge/commands/upgrade.py - Module listing
forge/commands/modules.py - Project diagnostics
forge/commands/doctor.py
Project integration
- Settings editor
forge/core/config_manager.py - URL editor
forge/core/urls_manager.py - Python environment
forge/core/environment.py - Forge project state
forge/core/state.py
Blueprints and catalog
- Blueprint orchestration
forge/commands/blueprint.py - Blueprint definitions
forge/templates/blueprints
Other components
- Developer
- Service providers
- Django project files
- Django manage.py
Connections 42
- Developer → CLI router: invokes
README.md - CLI router → Project initialization: dispatches
forge/main.py - CLI router → App generation: dispatches
forge/main.py - CLI router → Blueprint orchestration: dispatches
forge/main.py - CLI router → Module installation: dispatches
forge/main.py - CLI router → Service configuration: dispatches
forge/main.py - CLI router → Django command runner: forwards commands
forge/main.py - Django command runner → Django manage.py: runs
forge/core/engine.py - Project initialization → Project skeleton: applies settings
forge/commands/init.py - Project initialization → Module installation: delegates installs
forge/commands/init.py - Project initialization → Django project files: creates project
README.md - App generation → Settings editor: registers app
forge/commands/add.py - App generation → URL editor: wires routes
forge/commands/add.py - App generation → Django project files: generates app
README.md - Blueprint orchestration → Blueprint definitions: reads definitions
README.md - Blueprint orchestration → Project initialization: scaffolds project
forge/commands/blueprint.py - Blueprint orchestration → App generation: creates apps
forge/commands/blueprint.py - Blueprint orchestration → Module installation: installs modules
forge/commands/blueprint.py - Blueprint orchestration → Service configuration: configures services
forge/commands/blueprint.py - Module installation → Dependency resolver: resolves dependencies
forge/commands/install.py - Module installation → Module manifests: loads manifests
forge/commands/install.py - Module installation → Python environment: installs packages
forge/commands/install.py - Module installation → Settings editor: updates settings
forge/commands/install.py - Module installation → URL editor: wires module URLs
forge/commands/install.py - Module installation → Forge project state: records modules
forge/commands/install.py - Dependency resolver → Module manifests: uses module metadata
forge/core/dependency_resolver.py - Service configuration → Settings editor: edits settings
forge/commands/configure.py - Service configuration → Python environment: installs service packages
forge/commands/configure.py - Service configuration → Forge project state: records services
forge/commands/configure.py - Service configuration → Service providers: configures integrations
README.md - Module removal → Python environment: removes packages
forge/commands/remove.py - Module removal → Forge project state: updates records
forge/commands/remove.py - Module upgrade → Module installation: reinstalls modules
forge/commands/upgrade.py - Module upgrade → Python environment: updates packages
forge/commands/upgrade.py - Module listing → Forge project state: reads records
forge/commands/modules.py - Project diagnostics → Forge project state: checks records
forge/commands/doctor.py - Project diagnostics → Python environment: checks environment
forge/commands/doctor.py - Project diagnostics → Settings editor: checks settings
forge/commands/doctor.py - Settings editor → Django project files: writes settings
forge/core/config_manager.py - URL editor → Django project files: writes URL routes
forge/core/urls_manager.py - Python environment → Django project files: installs dependencies
forge/core/environment.py - Forge project state → Django project files: persists forge.toml
forge/core/state.py