The OpenNEM Command Line Interface
Using UV (recommended)
uv run opennemUsing Python directly
python -m opennem.cli
Initialize database schema and tables
opennem db initLoad initial data fixtures
opennem db fixtures
Import facility data
opennem import facilitiesImport fuel technology data
opennem import fueltechsImport BOM weather station data
opennem import bom
List all available crawlers and their status
opennem crawl listRun a specific crawler
opennem crawl run <name>Run options:
—all Run all available data for the crawler (default: False)
—limit N Limit to N most recent records
—reverse Reverse the order of the crawlers
Examples:
opennem crawl run aemo
opennem crawl run wem —all —limit 100
opennem crawl run nem —reverseFlush crawler metadata
opennem crawl flush
opennem crawl flush —days 7 —crawler “my-crawler”
opennem inspect <url>
Currently no export commands implemented
Currently no task commands implemented
DEBUG
: Enable debug output (default: false)0
: Success1
: General error130
: User interrupted (Ctrl+C)typer[all]
: Modern CLI frameworkrich
: Terminal formattingasyncio
: Async supportuv run opennem
for better performance--help
flag--help
flag for detailed usage information:
Show main help
opennem —helpShow help for a command group
opennem db —help
opennem import —help
opennem crawl —helpShow help for a specific command
opennem crawl run —help
opennem db init —help
Initialize the database
opennem db initLoad required fixtures
opennem db fixturesImport initial facility data
opennem import facilities
opennem import fueltechs
List available crawlers
opennem crawl listRun specific crawlers
opennem crawl run aemo
opennem crawl run wemRun with specific options
opennem crawl run nem —all —limit 1000
export DEBUG=true
opennem <command>
tail -f logs/opennem.log
opennem db init