Version Command

The version command displays version information for the Ocuroot CLI and server.

Usage

ocuroot version [flags]

Description

The version command shows version details including:

  • CLI version
  • Server version (if connected)
  • Build information
  • Compatible API versions

Flags

  • --format: Output format (text, json)
  • --check-update: Check for available updates
  • --verbose: Show detailed version information

Examples

# Display version information
ocuroot version

# Show version in JSON format
ocuroot version --format json

# Check for updates
ocuroot version --check-update

# Show detailed version info
ocuroot version --verbose

Output

The command displays:

  • Version number
  • Build timestamp
  • Git commit hash
  • Platform information
  • API compatibility info
  • server: Start the Ocuroot server