feat(nx-cloud): add nx start-nx-agents as an alias for nx-cloud start-nx-agents - #36572
Merged
Conversation
…-nx-agents The ci-workflow generator templates now emit `nx start-nx-agents`, but `nx` had no such command, so the generated workflows failed with "Cannot find configuration for task <project>:start-nx-agents". Add the command as an alias for `nx-cloud start-nx-agents`, mirroring the existing `start-ci-run` and `start-agent` aliases. It is also added to `isNxCloudCommand` so it can run without a local Nx installation, which matters because the generated workflows invoke it before dependencies are installed.
✅ Deploy Preview for nx-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for nx-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
|
View your CI Pipeline Execution ↗ for commit ec1964f
☁️ Nx Cloud last updated this comment at |
jaysoo
approved these changes
Aug 5, 2026
lourw
marked this pull request as ready for review
August 5, 2026 14:35
polygraph-snapshot-app Bot
pushed a commit
that referenced
this pull request
Aug 11, 2026
…-nx-agents (#36572) ## Current Behavior [#36504](#36504) (`c07a3dd3d1`) updated the `ci-workflow` generator templates to emit `nx start-nx-agents`, but `packages/nx` does not define a `start-nx-agents` command. Because the command is unrecognized, the CLI falls through to task resolution and the generated workflows fail: ``` NX Cannot find configuration for task @nx/nx-source:start-nx-agents ``` `start-nx-agents` is an Nx Cloud command. Nx can only invoke it the same way it invokes `start-ci-run`. ## Expected Behavior `nx start-nx-agents` works as an alias for [`nx-cloud start-nx-agents`](https://nx.dev/docs/reference/nx-cloud-cli#nx-cloud-start-nx-agents), mirroring the existing `start-ci-run` alias. ## Related Issue(s) Fixes the generator output shipped in #36504. <!-- polygraph-session-start --> --- <p><picture><source media="(prefers-color-scheme: dark)" srcset="https://static.ops.cloud.nx.app/polygraph/session-logo-v4-dark.svg"><img src="https://static.ops.cloud.nx.app/polygraph/session-logo-v4-light.svg" width="16" height="22" align="middle" alt="Polygraph"></picture> <a href="https://snapshot.app.trypolygraph.com/orgs/69cdc268b6aa527e4129c2b4/sessions/free-sparrow-1a9be01d">View session ↗</a></p> <!-- polygraph-session-end -->
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Current Behavior
#36504 (
c07a3dd3d1) updated theci-workflowgenerator templates to emitnx start-nx-agents, butpackages/nxdoes not define astart-nx-agentscommand.Because the command is unrecognized, the CLI falls through to task resolution and the generated workflows fail:
start-nx-agentsis an Nx Cloud command. Nx can only invoke it the same way it invokesstart-ci-run.Expected Behavior
nx start-nx-agentsworks as an alias fornx-cloud start-nx-agents, mirroring the existingstart-ci-runalias.Related Issue(s)
Fixes the generator output shipped in #36504.