Skip to main content

Lattice CLI Reference

Complete reference for all stn lattice commands.

Overview

The stn 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:
This is useful for:
  • 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.
Flags: Examples:

stn lattice stations

Manage stations in the lattice mesh.

stn lattice stations list

List all stations connected to the mesh.
Flags: Examples:

stn lattice stations info

Get detailed information about a specific station.
Examples:

stn lattice agents

List all agents available in the mesh.
Flags: Examples:

stn lattice agents info

Get detailed information about a specific agent.
Flags: Examples:

stn lattice agent exec

Execute an agent on a remote station.
Flags: Examples:

stn lattice route

Find agents by capability (for debugging routing).
Flags: 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.
Flags: Examples:

stn lattice work await

Wait for work to complete and return the result.
Examples:

stn lattice work check

Check work status without blocking.
Examples:

stn lattice dashboard

Launch the interactive TUI dashboard.
Flags: Examples:

Global Flags

These flags apply to all stn 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

Environment Variables

Exit Codes