ash-run(1)Ash Manualash-run(1)

NAME

ash-run - run a one-off command in a running VM

DESCRIPTION

Runs a single command in a running ash VM over SSH, like a non-interactive ssh host command. Output and exit status propagate back to the caller.

VM SELECTION

Pass NAME to target that VM. If NAME is omitted, run requires exactly one running VM.

The command and its arguments must come after the VM name, normally introduced by -- so that arguments starting with - are not parsed as ash options: ash run work -- pwd.

SSH IDENTITY

run uses the same VM SSH identity and wrapper as ash attach, so the guest's registered Nix store and space mounts are already in place before the command executes.

EXAMPLES

ash run work -- pwd
ash run work -- nix develop . -c cargo check
ash run work -- systemctl is-active agent-home-switch

Generated from ash Cmdliner manpage metadata.

ash-run(1)ash 0.1.9ash-run(1)