Skip to content

Leia Command Reference

Leia exposes 10 slash commands. The top-level /leia is a conversational entry point; the rest are explicit subcommands. You can always describe what you want in plain English instead of remembering exact flags.

When you pass natural language to /leia (anything that is not a known subcommand), Leia dispatches the leia-interpreter subagent to figure out your intent, then routes to the right flow — typically create, deploy, status, test, or logs. So both of these work:

Terminal window
/leia create a WhatsApp bot for a pizza restaurant
/leia I need a customer support bot for my coffee shop
CommandDescriptionKey args
/leiaConversational entry point; routes natural language or shows the welcome menu[description or subcommand]
/leia createCreate an agent from natural language or a guided wizard[description] (wizard if empty)
/leia deployDeploy an agent YAML to the nexus cluster<yaml-file> [--tenant <name>]
/leia statusDashboard: cluster health, tenants, agents (or one agent’s detail)[agent-name] [--tenant <name>]
/leia logsView agent logs; follow mode<agent-name> [--follow] [--lines <n>]
/leia testInteractive chat or automated test scenarios<agent-name> [--auto]
/leia templatesBrowse or preview business templates[template-name]
/leia configManage nexus connection contexts[list|use|add|show|set] [args]
/leia bootstrapSet up a nexus cluster (local Kind or remote)[local|remote]
/leia teardownDestroy a local cluster or disconnect a remote[context-name]

The conversational entry point. With no arguments it shows the welcome menu of available commands. With natural language, it dispatches the interpreter and routes to the appropriate flow.

Usage

Terminal window
/leia [natural language description or subcommand]

Example

Terminal window
/leia # show the welcome menu
/leia I need a WhatsApp bot for my restaurant # route to create

Create a new agent. With a description, Leia parses it (leia-interpreter), designs the manifest (leia-architect), previews the generated astromesh/v1 YAML, and offers to deploy. With no arguments it runs a guided wizard instead.

Usage

Terminal window
/leia create [description of what you need]

Arguments

  • [description] — natural-language description. If omitted, Leia runs a step-by-step wizard.

Example

Terminal window
/leia create a WhatsApp bot for a pizza restaurant that handles reservations
/leia create # guided wizard

Deploy an existing agent YAML file to the cluster. Leia validates the file (apiVersion: astromesh/v1, kind: Agent, an RFC 1123 metadata.name), then dispatches leia-operator to POST it to the Nexus API and poll until it is ready.

Usage

Terminal window
/leia deploy <yaml-file> [--tenant <name>]

Arguments

  • <yaml-file> — path to the agent YAML to deploy (positional).
  • --tenant <name> — optional tenant namespace; injected or overrides metadata.namespace before deploy.

Example

Terminal window
/leia deploy ./my-restaurant.agent.yaml --tenant acme

Show a dashboard of cluster health, tenants, and agents — or detail for a single agent. Backed by leia-operator, which queries the Nexus health endpoints, the agents list, and tenants via kubectl.

Usage

Terminal window
/leia status [agent-name] [--tenant <name>]

Arguments

  • [agent-name] — optional; show detail for one agent instead of the full dashboard.
  • --tenant <name> — optional; filter to a single tenant.

Example

Terminal window
/leia status # full dashboard
/leia status my-restaurant # one agent's detail

Fetch and display logs for a deployed agent, with an optional follow mode that polls for new lines.

Usage

Terminal window
/leia logs <agent-name> [--follow] [--lines <n>]

Arguments

  • <agent-name> — the agent to read logs for (positional).
  • --follow, -f — continuously poll for new log lines until you say stop.
  • --lines <n>, -n <n> — number of lines to fetch (default: 50).

Example

Terminal window
/leia logs my-restaurant --follow
/leia logs my-restaurant --lines 200

Test a deployed agent. Leia first checks the agent is Ready, then dispatches leia-tester in interactive mode (a proxy chat session) or, with --auto, runs predefined scenarios scored on relevance, tone, accuracy, channel compliance, and boundary respect.

Usage

Terminal window
/leia test <agent-name> [--auto]

Arguments

  • <agent-name> — the agent to test (positional).
  • --auto — run automated test scenarios instead of interactive chat.

Example

Terminal window
/leia test my-restaurant # interactive chat
/leia test my-restaurant --auto # automated scenarios

Browse the bundled business templates, or preview one in detail. See Templates & Subagents for the full catalog.

Usage

Terminal window
/leia templates [template-name]

Arguments

  • [template-name] — optional; preview a specific template. If omitted, lists all templates.

Example

Terminal window
/leia templates # list all
/leia templates restaurant-booking # preview one

Manage Nexus connection contexts stored in ~/.astromesh-leia/config.yaml. Each context holds a nexus-url, api-key, cluster-type, and cluster-name; the file also tracks current-context and defaults.

Usage

Terminal window
/leia config [list|use|add|show|set] [args]

Subcommands

InputAction
(empty) or showShow the current config
listList all contexts
use <name>Switch the current context
add <name>Add a new context interactively
set <key> <value>Set a config value using dot notation

Example

Terminal window
/leia config list
/leia config use local
/leia config set defaults.tenant acme

Set up a Nexus cluster. local creates a Kind cluster, deploys Nexus, and saves the context; remote connects to an existing cluster by URL and API key. With no argument, Leia asks which mode you want.

Usage

Terminal window
/leia bootstrap [local|remote]

Arguments

  • local — create a local Kind cluster and save the context.
  • remote — connect to an existing remote cluster.

Example

Terminal window
/leia bootstrap local
/leia bootstrap remote

Destroy a local Kind cluster, or disconnect a remote context.

Usage

Terminal window
/leia teardown [context-name]

Arguments

  • [context-name] — optional; the context to tear down. Defaults to the current context.

Example

Terminal window
/leia teardown
/leia teardown nexus-local