Core Concepts
The CLI follows a standardGROUP COMMAND structure. Most commands operate on a specific Lager Box (Lagerbox), which is specified using the --box option.
Nets
Most hardware commands operate on nets - named abstractions representing physical test points or signals. Nets map friendly names to instrument channels.Key Command Groups
Below is a summary of the main command groups available in the Lager CLI.Lager Box Management
- Boxes: Manage Lager Box configurations (add, delete, sync, import/export)
- Hello: Verify connectivity to your Lager Box
- Update: Update Lager Box software
- SSH: Direct SSH access to Lager Box
- Logs: View Lager Box service logs
Configuration
- Instruments: List connected test equipment
- Nets: Create and manage nets (test point abstractions)
- Defaults: Set default Lager Box and net configurations
Power & Simulation
- Supply: Control programmable power supplies
- Battery: Simulate battery characteristics (SOC, voltage, capacity)
- Solar: Control solar panel simulators
- E-Load: Control electronic loads (CC/CV/CR/CP modes)
- Watt: Read power consumption from watt meters
Measurement
- Scope: Control oscilloscopes for waveform capture
- Logic: Control logic analyzers with protocol decoding
- ADC: Read analog voltage values
- Thermocouple: Read temperature sensors
I/O & Communication
- GPI: Read digital inputs
- GPO: Write digital outputs
- DAC: Analog output voltage control
- UART: Serial communication
- USB: USB port power control
- BLE: Bluetooth Low Energy scanning
Development
- Debug: Flash firmware, GDB server, memory access, RTT logging
- Python: Execute Python scripts on Lager Box
- Binaries: Run custom binaries on Lager Box
Utilities
Example: Test Script Workflow
This example shell script demonstrates a typical hardware test workflow.Setting Default Lager Box
To avoid specifying--box on every command, set a default Lager Box:
Global Options
All commands support these global options:| Option | Description |
|---|---|
--box TEXT | Lager Box name or IP address |
--help | Show help for any command |
--version | Show CLI version |
Tips
- Use
lager <command> --helpto see all options for any command - Most commands support
--yesto skip confirmation prompts - Set defaults with
lager defaults addto reduce typing - Use the
tuisubcommand (where available) for interactive control - Commands that read values (like
adc,soc) can be used in scripts

