Skip to main content
Before you can interact with your Lager test setup, you need to configure connections to your Lager Boxes.

Adding a Lager Box

Add your Lager Box using the boxes command:
lager boxes add --name my-lager-box --ip 100.91.127.26
Where:
  • my-lager-box is a friendly name you choose
  • 100.91.127.26 is the Lager Box’s IP address (Tailscale or local network)

Verifying the Connection

Test connectivity to your Lager Box:
lager hello --box my-lager-box
You should see a response like:
Hello from Lager Box! Version: 1.2.0

Listing Your Lager Boxes

View all configured Lager Boxes:
lager boxes
Output:
name                   ip               version   user
my-lager-box           100.91.127.26    0.2.25    lagerdata
my-other-lager-box     100.105.225.48   0.2.24    lagerdata

Setting a Default Lager Box

To avoid specifying --box with every command:
lager defaults add --box my-lager-box
Now commands will use my-lager-box by default:
# These are equivalent after setting default:
lager supply POWER voltage 3.3
lager supply POWER voltage 3.3 --box my-lager-box

Connection Methods

Lager Boxes can be accessed via:
MethodIP FormatUse Case
Tailscale VPN100.x.x.xRemote access over internet
Local Network192.168.x.xSame LAN as Lager Box
Corporate VPNVariesEnterprise network access
All methods work identically - just use the appropriate IP address for your network.
You’re now connected and ready to use all Lager CLI features.