feat(cli): add --json output flag to doctor, models, route, run, and analytics (#13)
- Adds optional `--json` / `-j` flag to CLI commands for scriptable output - Redirects non-JSON logging messages to stderr under JSON mode - Adds test suite for CLI JSON serialization in backend/tests/test_cli.py - Updates documentation in README.md
This commit is contained in:
@@ -179,7 +179,8 @@ npm run dev
|
||||
|
||||
## CLI Usage
|
||||
|
||||
The built-in Typer CLI provides terminal commands for inspection, diagnostics, and testing (use `modelrouter` if installed via pip, or `python backend/app/cli/main.py` from source):
|
||||
The built-in Typer CLI provides terminal commands for inspection, diagnostics, and testing (use `modelrouter` if installed via pip, or `python backend/app/cli/main.py` from source).
|
||||
You can append `--json` or `-j` to most commands to output raw, pipeable JSON instead of Rich formatted tables:
|
||||
|
||||
```bash
|
||||
# Launch the AI Traffic Control Room Web UI and API Gateway
|
||||
|
||||
Reference in New Issue
Block a user