# l4d2-host-lib Python host library and CLI for managing L4D2 instances. ## CLI `l4d2ctl` exposes exactly these commands in v1: - `install` - `initialize -f ` - `start ` - `stop ` - `delete ` Subprocess failures are fail-fast. Raw stderr is written to stderr and the command exits with the same subprocess return code. ## Runtime Paths The host library uses hard-coded runtime paths under `/opt/l4d2`: - `/opt/l4d2/installation` - `/opt/l4d2/overlays/` - `/opt/l4d2/instances/` - `/opt/l4d2/runtime//{upper,work,merged}` ## Web App Read APIs These read APIs are provided for web app integration: - `get_instance_status(name)` - `stream_instance_logs(name, lines=200, follow=True)`