--- name: evse-simulator description: Control and monitor an OCPP charging station simulator via CLI. Use when users ask to manage charging stations, trigger OCPP messages from stations to the CSMS, start/stop the simulator or ATG, list stations or templates, or check simulator state. license: Apache-2.0 compatibility: Requires the simulator UI server to be running with WebSocket enabled. metadata: author: SAP --- # e-Mobility Charging Station Simulator CLI ## Status !`evse-cli --version 2>/dev/null || echo "Not installed — see ui/cli/README.md"` ## Configuration The CLI connects to the simulator UI server via WebSocket (SRPC protocol). Config file location: `${XDG_CONFIG_HOME:-$HOME/.config}/evse-cli/config.json` ```json { "uiServer": { "host": "localhost", "port": 8080, "protocol": "ui", "version": "0.0.1", "authentication": { "enabled": true, "type": "protocol-basic-auth", "username": "admin", "password": "admin" } } } ``` Precedence: defaults < config file < `--config ` < `--server-url `. ## Global Options | Option | Description | | --------------------- | ---------------------------- | | `--json` | Machine-readable JSON output | | `-C, --config ` | Path to configuration file | | `--server-url ` | WebSocket URL override | `NO_COLOR` environment variable disables color output (see [no-color.org](https://no-color.org/)). ## Commands ### Simulator ```shell evse-cli simulator state # Get state, version, template statistics evse-cli simulator start # Start the simulator evse-cli simulator stop # Stop the simulator ``` ### Stations ```shell evse-cli station list # List all stations evse-cli station start [hashId...] # Start station(s) evse-cli station stop [hashId...] # Stop station(s) evse-cli station add -t