Lattice CLI Reference
Complete reference for allstn lattice commands.
Overview
Thestn lattice command group provides tools for managing and interacting with Station Lattice mesh networks.
CLI Client Mode
You can interact with a running lattice from the CLI without starting a server using the--nats flag:
- Querying lattice status from scripts
- Executing agents from CI/CD pipelines
- Debugging without running a full station
Commands
stn lattice status
Display the current lattice connection status.
Examples:
stn lattice stations
Manage stations in the lattice mesh.
stn lattice stations list
List all stations connected to the mesh.
Examples:
stn lattice stations info
Get detailed information about a specific station.
stn lattice agents
List all agents available in the mesh.
Examples:
stn lattice agents info
Get detailed information about a specific agent.
Examples:
stn lattice agent exec
Execute an agent on a remote station.
Examples:
stn lattice route
Find agents by capability (for debugging routing).
Examples:
stn lattice work
Manage async work items. Async work allows you to submit long-running tasks that execute in the background.
stn lattice work assign
Assign work to an agent asynchronously.
Examples:
stn lattice work await
Wait for work to complete and return the result.
stn lattice work check
Check work status without blocking.
stn lattice dashboard
Launch the interactive TUI dashboard.
Examples:
Global Flags
These flags apply to allstn lattice commands:
The
--nats flag enables CLI client mode, allowing you to interact with a lattice without running a station server.
Authentication tokens can be included in the URL: nats://my-token@host:4222
