Command reference¶
django-angular3 exposes two distinct command interfaces that serve different
contexts. They share the ng_* Angular wrapper layer but differ in invocation
requirements and available commands.
The two interfaces¶
Standalone CLI |
Django management commands |
|
|---|---|---|
Invoked as |
|
|
Requires Django project |
No |
Yes — |
Requires DRF / drf-spectacular |
No |
Only for |
Primary use |
Validation, build-plan generation, Angular wrappers without a project |
Full app lifecycle — including schema export, AI-automation plans, and workspace management |
Use cases¶
Use the standalone CLI when:
Working in the
django-angular3repository itself (no generated app present).Running validation and build-plan generation in CI without a Django project.
Validating OpenAPI, UI definition, or project config files in isolation.
Invoking Angular wrapper commands from outside a Django project.
Use the Django management commands when:
Operating inside a generated app that has
django_angular3inINSTALLED_APPS.Exporting the OpenAPI schema from a live DRF backend (
export_schema).Generating an AI-automation build plan that reacts to schema changes (
build_app).Managing the full Angular workspace lifecycle, including modify and delete operations.
Standalone CLI commands¶
Invoked as django-angular3 <command> [args].
Command |
Description |
|---|---|
|
Validate an OpenAPI source document. |
|
Validate a UI definition document. |
|
Validate a |
|
Validate a project and emit a deterministic build plan. Accepts |
|
Create an empty Angular workspace. |
|
Bootstrap the configured workspace: |
|
Apply workspace defaults (package manager, style, routing). |
|
Run |
|
Generate an Angular application inside the configured workspace. Accepts |
|
Run a locally installed |
|
Build the configured Angular application. |
|
Copy the bundled |
All commands default path to django-angular3.json when omitted. All ng_*
commands accept --dry-run to print the resolved Angular subprocess call list
without invoking Angular tooling.
Django management commands¶
Invoked as django-admin <command> [args] or python manage.py <command> [args].
Command |
Description |
|---|---|
|
Export the OpenAPI schema from DRF (via drf-spectacular) and persist it as a versioned artifact. Rotates the previous schema alongside the current one for |
|
Generate a deterministic build plan driven by schema change detection. Maps skill/mode pairs to the corresponding management command names for AI-automation workflows. |
|
Create an empty Angular workspace. |
|
Bootstrap the configured workspace. |
|
Reapply angular-django2 workspace bootstrap and django-angular3 defaults to an existing workspace. |
|
Delete the generated Angular workspace entirely. |
|
Apply workspace defaults. |
|
Run |
|
Generate an Angular application. |
|
Run |
|
Build the configured Angular application. |
Command availability summary¶
Command |
Standalone CLI |
Management commands |
|---|---|---|
|
✓ |
— |
|
✓ |
— |
|
✓ |
— |
|
✓ |
— |
|
— |
✓ |
|
— |
✓ |
|
✓ |
✓ |
|
✓ |
✓ |
|
— |
✓ |
|
— |
✓ |
|
✓ |
✓ |
|
✓ |
✓ |
|
✓ |
✓ |
|
✓ |
✓ |
|
✓ |
✓ |
|
✓ |
— |