Skip to content

Add ability to filter winget list and winget search commands by install scope (user/machine) #6046

@IDisposable

Description

@IDisposable

Relevant area(s)

WinGet CLI

Description of the new feature / enhancement

It would be wonderful to be able to filter the list and search commands to restrict to packages that were (for list) or can-be (for search) installed specifically as a user or machine package.

Proposed technical implementation details

Add a --Scope command line parameter to the WinGet CLI in ListCommand.cpp and SearchCommand.cpp. Use the preexisting Execution::Args::Type::InstallScope enumeration (which is already used and validated in the install command).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-FeatureThis is a feature request for the Windows Package Manager client.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions