Open o-l-a-v opened 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 🤷🏼♂️
I agree, --scope
for consistency.
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
[Policy] Command-Upgrade
@Trenly
Sorry, I don't understand your answer/comment.
@Trenly
Sorry, I don't understand your answer/comment.
I was simply applying a label
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
winget upgrade --scope user
winget upgrade --scope machine
Upgrade app
Teams is installed with the system wide MSI installer, but user without admin permissions wants to upgrade Teams in user context.
winget upgrade --exact --id Microsoft.Teams --scope user
A user without admin permissions wants to upgrade all user context apps.
winget upgrade --all --scope user
Proposed technical implementation details
Detection rules should say something about scope/context. So should the manifest too.
Edit 221221
--context
to--scope
for consistency withwinget install
.