codex-django-cli
CLI scaffolding package for codex-django projects.
It provides the interactive codex-django command, project blueprints, and bootstrap workflows used to assemble Codex Django applications.
Install
# CLI only
pip install codex-django-cli
# Recommended end-user install via the runtime package
pip install "codex-django[cli]"
Requires Python 3.12 or newer.
The package also ships optional guidance for coding agents that work with this CLI. From a consuming project's root, install and check its managed copy with:
codex-django skills install --project .
codex-django skills status --project .
After a package upgrade, use codex-django skills update --project .; use codex-django skills delete --project . to remove installer-owned content. python -m codex_django_cli.agent_skills offers the same lifecycle. The installer preserves unrelated AGENTS.md text and refuses to replace locally edited managed files. Keep application rules in a separate project skill. This CLI skill covers scaffolding; the runtime codex-django package has separate guidance.
Development
uv sync --extra dev
uv run pytest tests/unit/cli tests/integration/cli
uv build --no-sources
Install-chain e2e smoke:
# Local dev chain (editable codex-django-cli + editable ../codex-django)
uv run pytest tests/e2e/cli/test_install_chains_e2e.py -m e2e -k local_dev_chain -v
# Optional override for runtime checkout path
export CODEX_DJANGO_CHECKOUT=/absolute/path/to/codex-django
# Online-install chain (PyPI codex-django-cli + local codex-django wheel)
export CODEX_DJANGO_E2E_ONLINE=1
export CODEX_DJANGO_WHEEL=/absolute/path/to/codex_django-*.whl
uv run pytest tests/e2e/cli/test_install_chains_e2e.py -m e2e -k online_install_chain -v
# Optional: test a specific PyPI target (version, index alias, etc.)
export CODEX_DJANGO_CLI_PYPI_SPEC='codex-django-cli'
Requires Python 3.12 or newer.
Quick Start
# Create a new project
codex-django init myproject
# Or install through codex-django and use the same CLI entrypoint
pip install "codex-django[cli]"
codex-django init myproject --i18n --languages en,ru
CLI flags
codex-django init myproject [OPTIONS]
Options:
--i18n / --no-i18n Enable translation-aware scaffold (default: off)
--languages CODES Comma-separated language codes, e.g. en,ru,de
--with-booking Include booking engine + cabinet integration
--with-notifications Include ARQ worker + email notification scaffold
--with-messaging Include the messaging cabinet feature (requires codex-django 0.7.0+)
--with-unfold / --without-unfold Select Unfold or Django's built-in admin (default: Unfold)
--with-public-booking Include public-facing booking pages
--without-cabinet Skip cabinet scaffold
--without-conversations Skip conversations feature
--with-sw Include service worker + manifest
--with-cloud-db Add dj-database-url for cloud DB (Neon/Heroku/Render)
--overwrite Overwrite existing files
Modules
| Module | Extra | Description |
|---|---|---|
codex_django_cli.main |
- | Interactive entrypoint, menu flow, and CLI argument dispatch. |
codex_django_cli.engine |
- | Blueprint renderer and file generation engine for scaffold assets. |
codex_django_cli.commands |
- | Init, install orchestration, deploy helpers, and quality tools. |
codex_django_cli.blueprints |
- | Packaged project, cabinet, feature, deployment, and repository templates. |
Documentation
Full docs with project structure, scaffold workflow, architecture, and API reference:
https://codexdlc.github.io/codex-django-cli/
Part of the Codex ecosystem
| Package | Role |
|---|---|
| codex-core | Foundation — immutable DTOs, PII masking, env settings |
| codex-platform | Infrastructure — Redis, Streams, ARQ workers, Notifications |
| codex-ai | LLM layer — unified async interface for OpenAI, Gemini, Anthropic |
| codex-services | Business logic — Booking engine, CRM, Calendar |
Each library is fully standalone — install only what your project needs. Together they form the backbone of codex-bot (Telegram AI-agent infrastructure built on aiogram) and codex-django (Django integration layer and scaffolding toolkit).
Metadata
Release files for codex-django-cli 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| codex_django_cli-0.4.0.tar.gz | 223.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| codex_django_cli-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 532.3 kB
Release files / codex_django_cli-0.4.0.tar.gz
| Download URL | codex_django_cli-0.4.0.tar.gz |
|---|---|
| Size | 223.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
995e248335481eea97fca7436f4cc394cf0eef346a33cf42b5fc70ca8e727d0c
|
|
BLAKE2b-256 checksum How to use checksums |
021f2137d81d84962bc1925dfe2f784d4dda3569567f53544fbb6a82241888ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 9, 2026.
Transparency logRelease files / codex_django_cli-0.4.0-py3-none-any.whl
| Download URL | codex_django_cli-0.4.0-py3-none-any.whl |
|---|---|
| Size | 309.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8ac032134842323e630bb1b8849eee5d2c7fde22d72a8f196f2a7ccc93e4a22f
|
|
BLAKE2b-256 checksum How to use checksums |
76eff3abe3040b1ea2fae418dbddf58351a6b3c66aa581061527c9cb4b961de7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 9, 2026.
Transparency log