Skip to content

[FEATURE] [0.0.4-alpha] Add JSON Output for Version Command #2965

@codvy8282

Description

@codvy8282

Project

cortex-cli

Description

The version command outputs plain text but doesn't support JSON output for programmatic version checking.

Use Case

$ cortex --version
cortex 0.0.4-alpha

$ cortex --version --json
error: unexpected argument '--json'

Proposed Solution

  1. Support --version --json or cortex version --json
  2. Output structured version info:
{
  "version": "0.0.4-alpha",
  "build": "...",
  "commit": "...",
  "platform": "windows"
}

Alternatives Considered

No response

Impact

All users

Additional Context

  1. Programmatic version checking
  2. Include build metadata
  3. Useful for diagnostics

Metadata

Metadata

Assignees

No one assigned

    Labels

    cortexIssues related to CortexLM/cortex repositoryvalidValid issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions