feat(core): add --trustThirdPartyPreset flag to skip confirmation prompt#35827
Merged
Merged
Conversation
…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.
👷 Deploy request for nx-docs pending review.Visit the deploys page to approve it
|
👷 Deploy request for nx-dev pending review.Visit the deploys page to approve it
|
AgentEnder
approved these changes
Jun 2, 2026
Contributor
|
View your CI Pipeline Execution ↗ for commit dbb58ea
☁️ Nx Cloud last updated this comment at |
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
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
When
create-nx-workspaceis 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 aspnpm create @aws/nx-workspace) can pass--trustThirdPartyPresetto skip the third-party preset warning and confirmation entirely, without affecting any other interactive prompts.Related Issue(s)
Fixes #35826