CLI Reference
Synopsis
PROJECT_PATH defaults to . (current directory).
Options
--port / -p
Port for the UI server. Default: 8765.
--host
Host address to bind. Default: 127.0.0.1.
--json
Print all discovered schemas as a JSON array to stdout, then exit. No server is started.
Output shape:
[
{
"name": "orders",
"var_name": "orders_schema",
"file_path": "data/schemas.py",
"source_class": null,
"title": null,
"description": "E-commerce order records",
"coerce": true,
"columns": [...],
"index": null,
"metadata_source": "runtime"
}
]
--export
Export schema documentation to stdout and exit. No server is started.
Supported formats: markdown, html.
# Markdown — paste into README, Sphinx, or MkDocs
pandera-ui . --export markdown > schemas.md
# Standalone HTML file
pandera-ui . --export html > schemas.html
The Markdown output produces a GFM table per schema with columns, types, nullability, and descriptions. The HTML output is a self-contained file with inline CSS.
--coverage
Print documentation coverage statistics and exit. No server is started.
Documentation Coverage
======================
Schemas : 4
title : 0/4 (0.0%)
description : 2/4 (50.0%)
Columns : 18
title : 0/18 (0.0%)
description : 9/18 (50.0%)
The same data is also available as a JSON endpoint when the server is running: GET /api/coverage.
--watch / -w
Start the UI server and automatically reload schemas when any .py file in the project changes.
Useful during schema development — edit a schema, save, and the UI reflects the change within seconds without restarting the server.
--help
Show the help message and exit.
API endpoints
When the server is running, the following JSON endpoints are available:
| Endpoint | Description |
|---|---|
GET /api/schemas |
All discovered schemas |
GET /api/coverage |
Documentation coverage statistics |
GET / |
The browser UI |
Exit codes
| Code | Meaning |
|---|---|
0 |
Success |
1 |
Error (invalid --export format, watchdog not installed, etc.) |