Skip to content

feat(core): add --trustThirdPartyPreset flag to skip confirmation prompt#35827

Merged
AgentEnder merged 1 commit into
nrwl:masterfrom
cogwirrel:feat/trust-third-party-preset
Jun 5, 2026
Merged

feat(core): add --trustThirdPartyPreset flag to skip confirmation prompt#35827
AgentEnder merged 1 commit into
nrwl:masterfrom
cogwirrel:feat/trust-third-party-preset

Conversation

@cogwirrel

Copy link
Copy Markdown
Contributor

Current Behavior

When create-nx-workspace is invoked with a third-party preset (e.g. --preset=@aws/nx-plugin), a warning and interactive confirmation prompt are always shown — even when the caller is a wrapper CLI that has already established trust on behalf of the user. The only way to bypass this today is --no-interactive, which suppresses all prompts and still emits the warning to stdout.

Expected Behavior

Callers that wrap create-nx-workspace (such as pnpm create @aws/nx-workspace) can pass --trustThirdPartyPreset to skip the third-party preset warning and confirmation entirely, without affecting any other interactive prompts.

npx create-nx-workspace my-project \
  --preset=@aws/nx-plugin \
  --trustThirdPartyPreset

Related Issue(s)

Fixes #35826

…onfirmation prompt

When using a third-party preset like `@aws/nx-plugin`, Nx prompts users
to confirm they trust the publisher before installing it. This is a useful
security measure for interactive use, but creates friction for automated
workflows and CLI tools that wrap `create-nx-workspace` where trust has
already been established.

The new `--trustThirdPartyPreset` flag allows callers to bypass both the
warning and the interactive confirmation prompt entirely.
@cogwirrel cogwirrel requested a review from a team as a code owner May 29, 2026 00:56
@cogwirrel cogwirrel requested a review from JamesHenry May 29, 2026 00:56
@netlify

netlify Bot commented May 29, 2026

Copy link
Copy Markdown

👷 Deploy request for nx-docs pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit dbb58ea

@netlify

netlify Bot commented May 29, 2026

Copy link
Copy Markdown

👷 Deploy request for nx-dev pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit dbb58ea

@nx-cloud

nx-cloud Bot commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

View your CI Pipeline Execution ↗ for commit dbb58ea

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

☁️ Nx Cloud last updated this comment at 2026-06-02 18:17:59 UTC

@cogwirrel cogwirrel changed the title feat(create-nx-workspace): add --trustThirdPartyPreset flag to skip confirmation prompt feat(core): add --trustThirdPartyPreset flag to skip confirmation prompt Jun 3, 2026
@AgentEnder AgentEnder merged commit 11cf46d into nrwl:master Jun 5, 2026
18 of 19 checks passed
@cogwirrel

Copy link
Copy Markdown
Contributor Author

Thanks @AgentEnder! :)

vrxj81 pushed a commit to vrxj81/nx that referenced this pull request Jun 7, 2026
…mpt (nrwl#35827)

## Current Behavior

When `create-nx-workspace` is invoked with a third-party preset (e.g.
`--preset=@aws/nx-plugin`), a warning and interactive confirmation
prompt are always shown — even when the caller is a wrapper CLI that has
already established trust on behalf of the user. The only way to bypass
this today is `--no-interactive`, which suppresses *all* prompts and
still emits the warning to stdout.

## Expected Behavior

Callers that wrap `create-nx-workspace` (such as `pnpm create
@aws/nx-workspace`) can pass `--trustThirdPartyPreset` to skip the
third-party preset warning and confirmation entirely, without affecting
any other interactive prompts.

```bash
npx create-nx-workspace my-project \
  --preset=@aws/nx-plugin \
  --trustThirdPartyPreset
```

## Related Issue(s)

Fixes nrwl#35826
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(create-nx-workspace): add --trustThirdPartyPreset flag to skip confirmation prompt for trusted presets

2 participants