ash-run - run a one-off command in a running VM
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.
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.
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.
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.