CLI Reference¶
Commands¶
process¶
| Option | Description |
|---|---|
-o, --output |
Output CSV path (default: osm_data.csv) |
-c, --config |
Custom config file |
--force-refresh |
Ignore all cache, re-download from API |
--update |
Reprocess from API cache (skip CSV cache) |
osm-powerplants process Germany -o germany.csv
osm-powerplants process France Spain Italy -o europe.csv
osm-powerplants process DE FR ES -o countries.csv # ISO codes
osm-powerplants process "United States" -o usa.csv # quotes for spaces
Rejection reports
The CLI currently emits accepted plants only. To also capture the
rejection report (CSV + GeoJSON of dropped OSM elements), use the
Python API with rejected_output_path â see
Quality Tracking.
info¶
Shows config file path, cache directory, and current settings.
--version¶
Country names¶
Accepts full names, ISO-2, ISO-3, and common variations. Invalid names produce suggestions:
Exit codes¶
| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | Error |