lager) enables direct control of your hardware from the command line and text editor. With this tool, you can:
- Control power supplies: Programmatically set voltage and current for your DUT.
- Flash firmware images: Update your device with new firmware builds.
- Monitor hardware in real-time: Stream voltage, current, and other sensor data.
- Manipulate I/O pins: Directly control GPIO for testing and automation.
- And more!
Prerequisites
- A Lager Box
- Python 3.10 or higher
pip3package manager
Step 1: Install the CLI Package
To install the Lager CLI, make sure you’ve fulfilled the above prerequisites and run the following command.Step 2: Add Your Lager Box
To interact with a Lager Box, you’ll need its local IP or IP from your VPN. Once you have that, you can add it to your list of Lager Boxes and give it a name!Finding your Lager Box IP address:
- Tailscale VPN: Run
tailscale statusto see all devices on your network. Look for your Lager Box name and its100.x.y.zaddress. - Local network: Check your router’s DHCP client table, or ask your network administrator.
- Lager CLI: Run
lager boxesto see your boxes and their IP addresses.
Step 3: Verify Connectivity
Now that you’ve added a Lager Box, test that you can communicate with your Lager Box:Troubleshooting: lager hello fails
Troubleshooting: lager hello fails
| Error | Cause | Fix |
|---|---|---|
No route to host | The Lager Box is unreachable on the network | Make sure your VPN (Tailscale) is connected. Run tailscale status to verify. |
Connection refused | The Lager Box service is not running | The box may need a restart or a software update. Contact your administrator. |
Connection timed out | Network path exists but the box is not responding | Verify the IP address is correct with lager boxes. Check that the box is powered on. |
command not found: lager | The CLI is not installed or not in your PATH | Re-run pip3 install -U lager-cli. If using a virtual environment, make sure it is activated. |
Next Steps
Now that you can communicate with your Lager Box, set up the instruments connected to it:- Setting Up Your Instruments — Discover and configure the hardware connected to your box

