Skip to content

Conversation

clydin
Copy link
Member

@clydin clydin commented Oct 1, 2025

This commit introduces a --json option to the ng version command. When this flag is used, the command will output all version information in a machine-readable JSON format.

The JSON structure is designed to be a stable, well-organized public API, with information grouped into cli, system, and packages categories. This is useful for scripting, tool integration, and creating detailed, parsable bug reports.

The standard, human-readable output is still the default.

This commit introduces a `--json` option to the `ng version` command. When this flag is used, the command will output all version information in a machine-readable JSON format.

The JSON structure is designed to be a stable, well-organized public API, with information grouped into `cli`, `system`, and `packages` categories. This is useful for scripting, tool integration, and creating detailed, parsable bug reports.

The standard, human-readable output is still the default.
@clydin clydin added the target: major This PR is targeted for the next major release label Oct 1, 2025
@angular-robot angular-robot bot added detected: feature PR contains a feature commit area: @angular/cli labels Oct 1, 2025
@clydin clydin added the action: review The PR is still awaiting reviews from at least one requested reviewer label Oct 1, 2025
@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Oct 1, 2025
@clydin clydin merged commit c289f3b into angular:main Oct 1, 2025
31 checks passed
@clydin clydin deleted the cli/version-json branch October 1, 2025 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: merge The PR is ready for merge by the caretaker area: @angular/cli detected: feature PR contains a feature commit target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants