Skip to content

Version

Retrieves version information about the manager.

distant manager version

Flags

  • --format <FORMAT>: determines how information is printed. With json specified, information will be printed in this form:

    { "version": "0.20.0" }
    

    Any error encountered will be captured and printed in this form:

    { "type": "error", "msg": "..." }
    

    Note

    All JSON comes in a single line format ending in a newline character.

Returned Information

Name Description Example
Version The version of the manager 0.20.0
distant manager version --help
Retrieve a list of capabilities that the manager supports

Usage: distant manager version [OPTIONS]

Options:
  -f, --format <FORMAT>
          [default: shell]

          Possible values:
          - json:  Sends and receives data in JSON format
          - shell: Commands are traditional shell commands and output responses are inline with what is expected of a program's output in a shell

      --log-level <LOG_LEVEL>
          Log level to use throughout the application

          [possible values: off, error, warn, info, debug, trace]

      --log-file <LOG_FILE>
          Path to file to use for logging

      --unix-socket <UNIX_SOCKET>
          Override the path to the Unix socket used by the manager (unix-only)

      --config <CONFIG_PATH>
          Configuration file to load instead of the default paths

      --windows-pipe <WINDOWS_PIPE>
          Override the name of the local named Windows pipe used by the manager (windows-only)

  -h, --help
          Print help (see a summary with '-h')