aboutsummaryrefslogtreecommitdiff
path: root/src/cli/spec/machine.rs
diff options
context:
space:
mode:
authorCan Celik <ogulcancelik@gmail.com>2026-09-22 19:12:29 +0300
committerGitHub <noreply@github.com>2026-09-22 19:12:29 +0300
commit1c6397b1cddb288099ed212a5979732698bd72c2 (patch)
tree0574b428903ea1ce106bc7ba36e213c0418aa9f4 /src/cli/spec/machine.rs
parent7237703dc59102cf3097e833eb896b314007b548 (diff)
fix: reuse ssh authentication and add machine recovery commands (#4490)
* fix: reuse ssh authentication and add in-app mfa recovery refs #3763 * refactor: move ssh recovery to machine cli refs #3763
Diffstat (limited to 'src/cli/spec/machine.rs')
-rw-r--r--src/cli/spec/machine.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/cli/spec/machine.rs b/src/cli/spec/machine.rs
index 188e27b9..82bc4c5d 100644
--- a/src/cli/spec/machine.rs
+++ b/src/cli/spec/machine.rs
@@ -11,6 +11,17 @@ pub(super) fn command() -> Command {
.arg(json_flag()),
)
.subcommand(
+ Command::new("status")
+ .about("Check saved machines without prompting for authentication")
+ .arg(Arg::new("machine").value_name("LABEL_OR_ID"))
+ .arg(json_flag()),
+ )
+ .subcommand(
+ Command::new("reconnect")
+ .about("Authenticate a saved machine in this terminal and verify connectivity")
+ .arg(Arg::new("machine").value_name("LABEL_OR_ID").required(true)),
+ )
+ .subcommand(
Command::new("add")
.about("Prepare the remote Herdr server and save an SSH machine")
.arg(