Skip to content

xops host add ​

Command usage and available options are listed below. Check --help for options supported by your installed version.

text
Add one node. By default, verify SSH authentication before saving; if verification fails, report the failure and ask whether to save anyway (default: no). Use --skip-verify to save without verification or probing. Successful verification probes execution settings by default; --no-probe skips probing and explicit execution flags take priority.

Usage:
  xops host add [flags]

Flags:
  -H, --address string          Host IP or domain
  -a, --alias strings           Node alias (comma separated)
  -h, --help                    help for add
  -I, --identity string         Use a saved authentication template alias
      --interpreter string      Explicit interpreter for new nodes: server, bash, sh, zsh, fish, powershell, pwsh or cmd
  -j, --jump string             Jump host name
  -k, --key string              SSH private key path
      --launch-dialect string   Explicit launch dialect for new nodes: unknown, posix, fish, powershell or cmd
      --no-probe                Skip automatic execution probing
      --passphrase-stdin        Read passphrase securely from stdin to avoid exposure in command arguments
      --password-stdin          Read password securely from stdin to avoid exposure in command arguments
  -p, --port uint16             SSH port (default 22)
      --probe                   Probe and save execution settings for new nodes using the verification connection (default true)
      --skip-verify             Skip SSH verification and save directly
  -t, --tags strings            Node tags (comma separated)
  -u, --user string             SSH username

Global Flags:
      --color string       ANSI color output (auto=detect pipe/redirect, never=disable, always=force enable)
      --debug              Enable debug mode (equivalent to --log-level=debug)
      --lang string        Interface language (zh/en)
      --log-level string   Set internal diagnostic log level (debug, info, warn, error)

MIT License