Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
o-l-a-v opened this issue May 7, 2022 · 6 comments
Open

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

o-l-a-v opened this issue May 7, 2022 · 6 comments
Labels
Command-Upgrade Issue related to WinGet Upgrade Issue-Feature This is a feature request for the Windows Package Manager client.

Comments

@o-l-a-v
Copy link

o-l-a-v commented May 7, 2022

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
  • A user without admin permissions wants to check what apps can be upgraded, thus listing system context apps makes no sense.
    • winget upgrade --scope user
  • Running winget in system context, thus upgrading user context apps makes no sense.
    • 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

  • Changed from --context to --scope for consistency with winget install.
@o-l-a-v o-l-a-v added the Issue-Feature This is a feature request for the Windows Package Manager client. label May 7, 2022
@ghost ghost added the Needs-Triage Issue need to be triaged label May 7, 2022
@denelon denelon removed the Needs-Triage Issue need to be triaged label May 9, 2022
@cjwijtmans
Copy link

cjwijtmans commented May 12, 2022

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
Copy link
Author

o-l-a-v commented May 12, 2022

I agree, --scope for consistency.

@o-l-a-v o-l-a-v changed the title Add ability to specify context to winget upgrade Add ability to specify --scope to winget upgrade Dec 21, 2022
@eabase
Copy link

eabase commented May 10, 2023

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
Copy link
Contributor

Trenly commented Jun 16, 2023

[Policy] Command-Upgrade

@microsoft-github-policy-service microsoft-github-policy-service bot added the Command-Upgrade Issue related to WinGet Upgrade label Jun 16, 2023
@eabase
Copy link

eabase commented Jun 19, 2023

@Trenly

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

@Trenly
Copy link
Contributor

Trenly commented Jun 19, 2023

@Trenly

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

I was simply applying a label

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Command-Upgrade Issue related to WinGet Upgrade Issue-Feature This is a feature request for the Windows Package Manager client.
Projects
None yet
Development

No branches or pull requests

5 participants