Skip to main content
Launch an interactive terminal with tab completion, command history, and auto-suggestions for running Lager CLI commands.

Syntax

The terminal also launches automatically when you run lager with no subcommand.

Features

Built-in Commands

These commands are available inside the REPL in addition to all lager commands:

Keyboard Shortcuts

Usage

All Lager commands are available inside the terminal without the lager prefix:
The terminal automatically prepends lager to each command and executes it through the CLI, so authentication, box resolution, and all standard behavior works as expected.

Blocked Commands

Interactive commands that require their own terminal session are blocked inside the REPL:
  • Commands with tui subcommands (e.g., supply tui, battery tui)
  • Interactive UART sessions
The terminal warns you and suggests running these from a regular shell instead.

Dependencies

The terminal requires prompt_toolkit and rich. If these are not installed, the CLI falls back to showing normal help output:

Notes

  • Running lager with no arguments launches the terminal automatically
  • Command history persists across sessions in ~/.lager_terminal_history
  • Exit codes from each command are shown with a check mark or X indicator
  • The welcome screen adapts to your terminal width