| 1 | # Admin Commands |
| 2 | |
| 3 | Administrative commands for system management. This page demonstrates: |
| 4 | |
| 5 | - **Nested command documentation** (4 levels deep) |
| 6 | - **Command filtering** using the `commands` option |
| 7 | - **Dataclass parameter flattening** in the `config` command |
| 8 | |
| 9 | ## admin |
| 10 | |
| 11 | ::: cyclopts |
| 12 | module: complex_app:app |
| 13 | heading_level: 3 |
| 14 | recursive: true |
| 15 | commands: [admin] |
| 16 | generate_toc: false |
| 17 | |
| 18 | ## User Management Deep Dive |
| 19 | |
| 20 | The user management system supports 4 levels of command nesting: |
| 21 | |
| 22 | 1. `admin` - Top-level administrative commands |
| 23 | 2. `admin users` - User management |
| 24 | 3. `admin users permissions` - Permission management |
| 25 | 4. `admin users permissions roles` - Role templates |
| 26 | |
| 27 | ### Just the Permissions Commands |
| 28 | |
| 29 | This section shows only the permissions subcommand and its children: |
| 30 | |
| 31 | ::: cyclopts |
| 32 | module: complex_app:app |
| 33 | heading_level: 4 |
| 34 | recursive: true |
| 35 | commands: [admin.users.permissions] |
| 36 | generate_toc: false |