Command Reference¶
This is the full CLI reference with examples from basic to advanced.
analyze¶
Analyze a FastAPI source root and report conversion-relevant structure.
Basic¶
Intermediate¶
Advanced¶
Use this when you want machine-readable output in CI pipelines.
convert¶
Convert a FastAPI source root into a Lilya target root.
lilya-converter convert SOURCE TARGET \
[--dry-run] \
[--diff] \
[--copy-non-python/--no-copy-non-python] \
[--report REPORT.json]
Basic¶
Intermediate (recommended preview)¶
lilya-converter convert ./fastapi_project ./lilya_project --dry-run --diff --report ./reports/convert.json
Advanced¶
lilya-converter convert ./fastapi_project ./lilya_project --no-copy-non-python --report ./reports/convert.json
Single-file workflow¶
The converter expects a source directory. For one-file conversion, use a minimal root.
mkdir -p ./tmp-single-source/app
cp ./fastapi_project/app/main.py ./tmp-single-source/app/main.py
lilya-converter convert ./tmp-single-source ./tmp-single-target --report ./reports/convert-single.json
scaffold¶
Generate a minimal Lilya scaffold informed by source analysis.
Basic¶
Advanced¶
map rules¶
List all known conversion rules.
map applied¶
Show which rules were actually applied in a conversion report.
verify¶
Run structural checks on converted output.
Basic¶
Intermediate¶
What it checks¶
- Python syntax validation.
- Remaining FastAPI import/call patterns.
- Unresolved local imports.
Suggested production routine¶
analyzeconvert --dry-run --diffconvertverifymap applied