microsoft / winget-cli

WinGet is the Windows Package Manager. This project includes a CLI (Command Line Interface), PowerShell modules, and a COM (Component Object Model) API (Application Programming Interface).
https://learn.microsoft.com/windows/package-manager/
MIT License
23.31k stars 1.45k forks source link

Add ability to specify `--scope` to `winget upgrade` #2145

Open o-l-a-v opened 2 years ago

o-l-a-v commented 2 years ago

Description of the new feature / enhancement

Add a switch for scope/context with winget upgrade, both for listing upgrades (specifying no apps), and when upgrading a specific app.

Example use case

List upgradeable apps
Upgrade app

Proposed technical implementation details

Detection rules should say something about scope/context. So should the manifest too.

Edit 221221

cjwijtmans commented 2 years ago

The existing flag would be --scope not --context. Not sure if consistency would be prefered or avoiding confusion would be prefered. Personally i prefer consistency 🤷🏼‍♂️

o-l-a-v commented 2 years ago

I agree, --scope for consistency.

eabase commented 1 year ago

Also very useful if the scope is shown when listing.

I.e. provide the functionality for added column with scope.

# Adding scope column in output
winget list --scope

# only showing items with machine scope
winget list --scope machine
Trenly commented 1 year ago

[Policy] Command-Upgrade

eabase commented 1 year ago

@Trenly

Sorry, I don't understand your answer/comment.

Trenly commented 1 year ago

@Trenly

Sorry, I don't understand your answer/comment.

I was simply applying a label