Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
.NET CLI
The --interactive
flag for the .NET CLI now defaults to true
in user-centric scenarios. The behavior remains unchanged for CI/CD environments.
Version introduced
.NET 10 Preview 3
Previous behavior
The --interactive
flag always defaulted to false
unless explicitly specified by the user.
dotnet restore --interactive
# Required explicitly to enable interactivity
New behavior
The --interactive
flag defaults to true
in user-centric scenarios, such as when commands are run directly by a user. In CI/CD environments or when the process output stream is redirected, the flag defaults to false
.
dotnet restore
# Interactivity is enabled by default in user-centric scenarios
Type of breaking change
This is a behavioral change.
Reason for change
This change improves the user experience by:
- Simplifying NuGet authentication, addressing a common pain point.
- Providing a unified signal for enabling future CLI interactivity features.
Recommended action
No action is required for most users. To explicitly disable interactivity, pass the --interactive false
flag:
dotnet restore --interactive false
Affected APIs
None.