This script retrieves the sites and apps information from a bench.
Use [-j, --json] option to output a dict in cli :
{
"sites": {
site_name: {
"scheduler": bool,
"maintenance": bool,
"url": "http://site_name"
}
},
"apps": {
app_name: {
"app_version": version
}
}
}
Command example :
/path/to/bench/env/bin/python erpnext_info.py -j /path/to/bench