Debian Codegraph @

tests/apps/complex-demo/mkdocs_docs/cli/server.md

raw symbols SCIP
1 # Server Commands
2
3 Server management commands demonstrating **Pydantic model support**.
4
5 !!! note
6 If Pydantic is not installed, the server commands will use simpler
7 parameter definitions as a fallback.
8
9 ## Server Management
10
11 ::: cyclopts
12 module: complex_app:app
13 heading_level: 3
14 recursive: true
15 commands: [server]
16 generate_toc: false
17
18 ## Pydantic Integration
19
20 When Pydantic is available, the `start` command accepts two Pydantic models:
21
22 - `ServerConfig` - Server bind address, port, workers, timeout
23 - `AuthConfig` - Authentication provider, token settings, CORS origins
24
25 Pydantic's field validators are respected, providing automatic validation
26 of port numbers, worker counts, etc.