Skip to content

feat(core): add --json flag for better AX to nx list#34551

Merged
MaxKless merged 3 commits intomasterfrom
nx-list-json-output
Feb 24, 2026
Merged

feat(core): add --json flag for better AX to nx list#34551
MaxKless merged 3 commits intomasterfrom
nx-list-json-output

Conversation

@MaxKless
Copy link
Copy Markdown
Collaborator

@MaxKless MaxKless commented Feb 23, 2026

Current Behavior

nx list shows generator/executor names and descriptions in text format only. It does not show where the plugin or its generators/executors are located on disk, and there is no machine-readable output option.

Expected Behavior

  • nx list --json outputs all local and installed plugins with their paths and capability types
  • nx list --json outputs detailed structured JSON including resolved paths to each generator/executor implementation and schema
  • nx list (text mode) now also shows the plugin's root path

@MaxKless MaxKless requested a review from a team as a code owner February 23, 2026 12:23
@netlify
Copy link
Copy Markdown

netlify bot commented Feb 23, 2026

Deploy Preview for nx-dev ready!

Name Link
🔨 Latest commit 0a5b13e
🔍 Latest deploy log https://app.netlify.com/projects/nx-dev/deploys/699c8199c07282000819eaf4
😎 Deploy Preview https://deploy-preview-34551--nx-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link
Copy Markdown

netlify bot commented Feb 23, 2026

Deploy Preview for nx-docs ready!

Name Link
🔨 Latest commit 0a5b13e
🔍 Latest deploy log https://app.netlify.com/projects/nx-docs/deploys/699c8199467e2900083bad12
😎 Deploy Preview https://deploy-preview-34551--nx-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@nx-cloud
Copy link
Copy Markdown
Contributor

nx-cloud bot commented Feb 23, 2026

View your CI Pipeline Execution ↗ for commit 0a5b13e

Command Status Duration Result
nx affected --targets=lint,test,test-kt,build,e... ✅ Succeeded 48m 43s View ↗
nx run-many -t check-imports check-lock-files c... ✅ Succeeded 3m 16s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 8s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 1s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2026-02-23 17:32:24 UTC

nx-cloud[bot]

This comment was marked as outdated.

@MaxKless MaxKless force-pushed the nx-list-json-output branch from e69f625 to ba9fb5a Compare February 23, 2026 14:12
@MaxKless MaxKless force-pushed the nx-list-json-output branch from ba9fb5a to be4da02 Compare February 23, 2026 14:17
Copy link
Copy Markdown
Member

@AgentEnder AgentEnder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sm nit on the e2e

Comment on lines +571 to +572
expect(typeof parsed.generators).toBe('object');
expect(typeof parsed.executors).toBe('object');
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we check actual values to some extent here

@MaxKless MaxKless removed the request for review from leosvelperez February 23, 2026 16:03
Copy link
Copy Markdown
Contributor

@nx-cloud nx-cloud bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important

At least one additional CI pipeline execution has run since the conclusion below was written and it may no longer be applicable.

Nx Cloud has identified a possible root cause for your failed CI:

We classified this failure as environment_state rather than a code issue. The PR modifies only the nx list command's JSON output functionality, while the failing test is in the unrelated e2e-gradle project testing Gradle daemon integration. The "Gradle build daemon has been stopped" error indicates an external environment state issue with no code path connecting it to our JSON formatting changes.

No code changes were suggested for this issue.

🔂 A CI rerun has been triggered by adding an empty commit to this branch.

Nx Cloud View detailed reasoning on Nx Cloud ↗


🎓 Learn more about Self-Healing CI on nx.dev

@MaxKless MaxKless merged commit 1081c32 into master Feb 24, 2026
24 checks passed
@MaxKless MaxKless deleted the nx-list-json-output branch February 24, 2026 09:34
FrozenPandaz pushed a commit that referenced this pull request Feb 26, 2026
### Current Behavior

nx list <plugin> shows generator/executor names and descriptions in text
format only. It does not show where the plugin or its
generators/executors are located on disk, and there is no
machine-readable output option.

  ### Expected Behavior

- nx list --json outputs all local and installed plugins with their
paths and capability types
- nx list <plugin> --json outputs detailed structured JSON including
resolved paths to each generator/executor implementation and schema
  - nx list <plugin> (text mode) now also shows the plugin's root path

(cherry picked from commit 1081c32)
FrozenPandaz pushed a commit that referenced this pull request Feb 26, 2026
### Current Behavior

nx list <plugin> shows generator/executor names and descriptions in text
format only. It does not show where the plugin or its
generators/executors are located on disk, and there is no
machine-readable output option.

  ### Expected Behavior

- nx list --json outputs all local and installed plugins with their
paths and capability types
- nx list <plugin> --json outputs detailed structured JSON including
resolved paths to each generator/executor implementation and schema
  - nx list <plugin> (text mode) now also shows the plugin's root path

(cherry picked from commit 1081c32)
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 2, 2026

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 2, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants