Skip to content

feat(nx-cloud): add nx start-nx-agents as an alias for nx-cloud start-nx-agents - #36572

Merged
lourw merged 1 commit into
masterfrom
start-nx-agents
Aug 5, 2026
Merged

feat(nx-cloud): add nx start-nx-agents as an alias for nx-cloud start-nx-agents#36572
lourw merged 1 commit into
masterfrom
start-nx-agents

Conversation

@lourw

@lourw lourw commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Current Behavior

#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, mirroring the existing start-ci-run alias.

Related Issue(s)

Fixes the generator output shipped in #36504.


Polygraph View session ↗

…-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.
@netlify

netlify Bot commented Aug 4, 2026

Copy link
Copy Markdown

Deploy Preview for nx-dev ready!

Name Link
🔨 Latest commit ec1964f
🔍 Latest deploy log https://app.netlify.com/projects/nx-dev/deploys/6a725150940d1f000866770d
😎 Deploy Preview https://deploy-preview-36572--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

netlify Bot commented Aug 4, 2026

Copy link
Copy Markdown

Deploy Preview for nx-docs ready!

Name Link
🔨 Latest commit ec1964f
🔍 Latest deploy log https://app.netlify.com/projects/nx-docs/deploys/6a7251504b6b8b0008afd730
😎 Deploy Preview https://deploy-preview-36572--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

nx-cloud Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

View your CI Pipeline Execution ↗ for commit ec1964f

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ✅ Succeeded 39m 6s View ↗
nx run-many -t check-imports check-lock-files c... ✅ Succeeded 5s View ↗
nx-cloud record -- pnpm nx-cloud conformance:check ✅ Succeeded 59s View ↗
nx build workspace-plugin ✅ Succeeded <1s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded 18s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 5s View ↗

☁️ Nx Cloud last updated this comment at 2026-08-04 21:37:31 UTC

@lourw lourw self-assigned this Aug 4, 2026
@lourw
lourw marked this pull request as ready for review August 5, 2026 14:35
@lourw
lourw requested a review from a team as a code owner August 5, 2026 14:35
@lourw
lourw requested a review from MaxKless August 5, 2026 14:35
@lourw
lourw merged commit a63562d into master Aug 5, 2026
29 checks passed
@lourw
lourw deleted the start-nx-agents branch August 5, 2026 14:36
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 -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants