Skip to main content

Module apply

Module apply 

Source
Expand description

Prepare / upload remote CLI, run commands, and install payload.

Structs§

RemoteRunOutcome
Result of a remote CLI run (log text plus optional captured status-api bearer).

Functions§

ensure_remote_cli
Ensure a current CLI on the box: reuse when version matches, otherwise SCP once.
maybe_install_key
prepare_remote_agent
Prepare OpenSSH session and local tip bins; SCP CLI only when box is stale/missing.
remote_ensure_ssh_key
Opt-in: install the tip pubkey on the box (ssh-copy-id).
remote_install_payload
Copy CLI + TUI + status-api (+ MCP when present) into install_dir and enable units.
remote_run_cli
Upload the CLI agent (if needed), optionally install a public key, run a remote CLI command.
remote_setup_run
Convenience: remote setup run with optional payload install.
remote_upload_cli
Upload the PC CLI to the box agent dir (s0 / explicit sync).
upload_remote_cli