Skip to content

Commands ​

Credential and store management ​

CommandDescription
onessh initInitialize encrypted config
onessh passwdChange master password
onessh add <alias>Add a host
onessh update <alias>Update a host
onessh rm <alias>Remove a host
onessh ls [--tag] [--filter]List hosts
onessh show <alias>Show host details
onessh user (ls, add, update, rm)Manage user profiles
onessh logout [--all]Clear cached master password
onessh logShow recent audit entries (--last, --action, --alias, --format); rotation: --audit-log-max-size-mb, --audit-log-max-backups, --audit-log-max-age, --audit-log-compress; subcommands enable / disable / status
onessh agent (start, stop, status, clear-all)Memory cache agent

SSH operations ​

CommandDescription
onessh <alias> [-- ssh-args...]Interactive SSH
onessh exec <alias> <cmd> [args...]Non-interactive remote command
onessh exec --tag <tag> <cmd>Batch exec by tag
onessh cp <src>... <dst>Copy via scp (alias:path notation)
onessh cp --tag <tag> files... :/pathBatch upload by tag
onessh ping [<alias>]Connectivity check; --all, --tag, --filter
onessh completion (bash, zsh, fish, powershell)Shell completion
onessh versionVersion and build info

Batch selectors ​

Remote commands support --all, --tag <tag>, and --filter <glob> (Go filepath.Match, full-string match). Combine tag and filter with AND semantics where supported. Use --dry-run to list matched hosts without running the operation.

Global flags ​

Available on every command:

  • --data <path> — override the data directory (default ~/.config/onessh/data, env ONESSH_DATA).
  • --cache-ttl <duration> / --no-cache — master password cache controls.
  • --agent-socket <path> / --agent-capability <token> — memory cache agent IPC.
  • -q, --quiet — suppress non-essential output.
  • --log — enable audit logging for this command run.

See the repository README for extended examples.

Released under the Unlicense.