-
Notifications
You must be signed in to change notification settings - Fork 2
Reference Generated Management Commands
Claude edited this page Aug 28, 2026
·
2 revisions
Commands Cairn adds on top of Django's own. Run them with python manage.py <command> (inside the container : docker compose exec web python manage.py <command>).
The ones meant to run on a schedule are covered in ../../technical/operations.md.
| Command | App | Purpose |
|---|---|---|
detect_spof |
assets | Detect Single Points of Failure (SPOF) in the dependency graph |
expire_risk_acceptances |
risks | Set RiskAcceptance.status to EXPIRED for any active acceptance whose valid_until date has passed; print upcoming expirations within --reminder-days (default 30). |
generate_docs |
core | Generate the code-derived reference pages under docs/reference/generated/. |
mark_overdue_treatment_plans |
risks | Set RiskTreatmentPlan.status to OVERDUE when target_date is past and the plan is not already completed, cancelled or overdue. |
rebuild_semantic_index |
assistant | Build or refresh the requirement semantic search index. |
recalculate_compliance |
compliance | Recalculate compliance counts for all assessments, then propagate to requirements/sections/frameworks. |
refresh_mitre_attack |
risks | Refresh the MITRE ATT&CK catalogue from a JSON fixture. |
Built from docs/ at v0.36.0. Edits made here are overwritten by the next release : open a pull request against the source instead.
- Administration
- Ask Cairn
- Assets and suppliers
- Compliance
- The dashboard
- Finding your way
- Getting started
- Incidents
- How records move
- Organisational context
- Reports and management review
- Risks
- Trust Center
- Architecture
- Configuration
- Contributing
- The documentation system
- Installation
- Internationalisation
- Operations
- Release process
- Security
- Testing
- Adding an assistant provider
- Adding a dashboard widget
- Adding a domain entity
- Declaring a lifecycle
- Adding an MCP tool
- Adding a REST endpoint
- Adding a report
- Interface conventions
- Dashboard widgets
- Lifecycles
- MCP tools
- MCP tool parameters : Assets
- MCP tool parameters : Compliance
- MCP tool parameters : Governance and context
- MCP tool parameters : General
- MCP tool parameters : Incidents
- MCP tool parameters : Reports and management review
- MCP tool parameters : Risks
- MCP tool parameters : System and administration
- MCP tool parameters : Trust Center
- Management commands
- Models
- Permissions
- REST endpoints
- Environment variables
- MCP server
- REST API
- Assistant module (Ask Cairn)
- Module 0: User Management and Access Control
- Module 1: Context and Organization
- Module 2: Asset Management
- Module 3: Compliance
- Module 4: Risk Management
- Module 4 bis - EBIOS Risk Manager
- Module 5 : Trust Center
- Module 6 : Security Incident Management
- Management review : ISO 27001:2022 compliance (clause 9.3)