1. Reference
  2. ava CLI
uv run ava COMMAND

Commands that talk to a running operator take --connect HOST:PORT (default localhost:7433). Most take --json.

GroupCommands
Projectinit
Operatordev, operator, web, tui
Runsrun, result, run list, run show, run history, run links, run cancel, run retry
Waits and eventsrun decide, event send, machine send
Workflowsflow, schedule, webhooks
Integrationsconnect, disconnect
Stored datastate

​
Project

​
ava init

Creates a starter project in the current, empty folder. See Quickstart.

FlagMeaning
--editable-depsAlso clone Avalanche and PredictRLM into .trampoline-ai/ and use those copies

​
Operator

​
ava dev [FLOW ...]

Starts the operator, the UI and the REST API, and opens the browser. FLOW is a Python file or a folder; without it, [tool.avalanche] flow_targets from pyproject.toml is used.

FlagDefaultMeaning
--port7433Port for ava commands
--web-port7435Port for the UI and the REST API
--login-port7436Port for browser sign-in to integrations
--log-levelWARNINGDEBUG, INFO, WARNING or ERROR
--discovery-timeout60Seconds allowed to load the workflows
--schedules-enabledoffTurn every schedule on, for this start only
--state-db.avalanche/operator/state.dbWhere runs are kept. :memory: keeps nothing.

​
ava operator [FLOW ...]

The same as ava dev, without opening a browser. Adds:

FlagDefaultMeaning
--host127.0.0.1Address to listen on
--webhook-port7434Port for incoming webhooks
--no-weboffDo not serve the UI or the REST API

​
ava web

Serves the UI for an operator that is already running.

FlagDefaultMeaning
--connectlocalhost:7433The operator
--host, --port127.0.0.1, 7435Where to serve the UI
--trusted-proxyoffConfirms a proxy with sign-in is in front, when not on 127.0.0.1

​
ava tui [FLOW]

The terminal UI.

FlagMeaning
--connectThe operator. Without it, the TUI shows sample data.
--flow, --run, --nodeOpen on a workflow, a run or a step
--read-onlyLook without starting or cancelling anything
--token, --tls, --insecure, --tls-ca-certConnection security

​
Runs

​
ava run FLOW

Starts a run and prints its ID. It does not wait for the run to finish.

FlagMeaning
--input JSONThe run input
--file FIELD=PATHA file for an input field. Repeatable.
--workspace FIELD=DIRA folder for an input field. Repeatable.
--context JSONCaller context
--rerun-of RUN_IDRerun an earlier run
--from SLUGThe step to rerun from. Required with --rerun-of. Repeatable.
--onlyRerun only the --from steps

​
ava result RUN_ID

Gets a run’s result. Also available as ava run result. One of --json or --output-dir is required.

FlagDefaultMeaning
--jsonPrint the result
--output-dir PATHWrite the result and its files to a new folder
--waitoffWait for the run to finish
--timeout300Seconds to wait
--node STEP_IDOne step’s output instead of the run’s
--entry NFor a state machine: the result of its Nth state entry
CommandDoes
ava run list [--flow FLOW]Lists runs
ava run show RUN_IDShows a run’s state
ava run history RUN_ID [--limit N] [--cursor C]A state machine’s transitions
ava run links RUN_IDThe runs it started and the run that started it
ava run cancel RUN_IDCancels a run
ava run retry RUN_ID --entryRetries a state machine’s interrupted state

Instead of RUN_ID, a keyed run can be named with --flow FLOW --key FIELD=JSON.

​
Waits and events

​
ava run decide RUN_ID NODE JSON

Submits an approval.

FlagMeaning
--reason TEXTRequired. Kept with the run.
--idempotency-key KEYRequired. A repeated send with the same key is ignored.

​
ava event send RUN_ID KEY JSON

Sends an event to a run that is waiting for it. --idempotency-key is required.

​
ava machine send [MACHINE] EVENT

Sends an event to a state machine.

FlagMeaning
--run RUN_IDThe instance, by run ID
--key FIELD=JSONThe instance, by key. Needs MACHINE. Repeatable.
--data JSONThe event’s data, or @file
--idempotency-key KEYOptional. Generated when missing.

​
Workflows

CommandDoes
ava flow listLists workflows and state machines
ava flow show SELECTORShows one definition
ava schedule listLists schedules and whether they are on
ava schedule enable SELECTOR [--input JSON]Turns a schedule on, with the input its runs use
ava schedule disable SELECTORTurns it off
ava webhooks listLists webhook URLs
ava webhooks get SELECTORShows one

A selector names a workflow by file and function, such as flow.py::process_invoice.

​
Integrations

​
ava connect [NAME]

Without a name, lists the integrations your workflows declare. With a name, connects an account.

FlagMeaning
--api-keyEnter an API key (asked for, never passed on the command line)
--headerThe header an API key is sent in
--client-secretEnter an OAuth client secret
--no-browserPrint the sign-in link instead of opening it

​
ava disconnect NAME

Removes an account.

​
Stored data

ava state works on the operator’s data while the operator is stopped. Each command takes --state-db PATH.

CommandDoes
ava state infoLocation, sizes, runs by status
ava state delete RUN_ID ...Deletes finished runs and their files
ava state prune --keep-last NDeletes all but the newest N finished runs
ava state prune --before DATEDeletes finished runs older than a date
ava state clear [--yes] [--include-schedules]Deletes every run