alto run
Run a command in a session's shell, where it shows, and print only its output, leaving with its exit status. Waits for the shell's prompt, types the command and Enter, and waits for the command to end, by the shell's own marks (shell integration, which Alto adds to zsh, bash and fish). Exits 124 if it's still running after --timeout (it carries on), and 125 if it couldn't run it. With no id, in the work pane linked to this session (`alto work`), which you see beside it.
In context: Working beside an agent.
Usage
Run a command in a session's shell, where it shows, and print only its output, leaving with its exit status.
Waits for the shell's prompt, types the command and Enter, and waits for the command to end, by the shell's own marks (shell integration, which Alto adds to zsh, bash and fish). Exits 124 if it's still running after --timeout (it carries on), and 125 if it couldn't run it. With no id, in the work pane linked to this session (`alto work`), which you see beside it.
Usage: alto run [OPTIONS] [ID] -- <COMMAND>...
Arguments:
[ID]
<COMMAND>...
The command, as you'd type it; several arguments are joined with spaces
Options:
--in <NAME>
Which work pane, when this session has several
--on <DEVICE>
Work with the sessions on another device, paired with before (`alto devices`), or one of your own on Tailscale by its name there: for ls, new, attach, send, capture and kill
--timeout <TIMEOUT>
Give up waiting after this long (`30`, `500ms`, `2m`), leaving the command running; by default, wait for it to end
--json
Print `{output, exit, truncated, took, timed_out}` as JSON
--max-lines <N>
Keep only the last this many lines of output
[default: 2000]
--until-quiet <TIME>
For a shell without shell integration: take what it prints until it's been quiet this long, with no exit status
-h, --help
Print help (see a summary with '-h')
Generated from alto 0.0.1 by tools/export-reference.py.