microsoft / microsoft/winget-cli

winget show displays only one scope (user) if multiple options are available

Open
#6,133 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Command-Show Issue-Docs
Dominant language
C++
Stars
26.4k
Forks
1.8k
Avg merge
1d 11h
Merged PRs (30d)
15

Description

Relevant area(s)

WinGet CLI

Relevant command(s)

winget show

Brief description of your issue

I didn't know that a package supported the --scope option. Only by going to the .installer.yaml file in the winget-pkgs repository did I see that it does. Why does winget show only list one installer with the url of the user installer?

Why not instead make winget show without any options list all available installers, or just instead of a specific installer URL list options that are available: user, system. And you could pass --scope to winget show to get the information about a specific installer.

Steps to reproduce

Run winget show on any package with both a user and system installer.

Expected behavior

It doesn't confuse.

Actual behavior

The end of the output is:

Installer:
  Installer Type: some_type
  Installer Locale: some-locale
  Installer Url: some_url
  Installer SHA256: some_hash
  Release Date: some_date
  Offline Distribution Supported: true
Environment
Winget version v1.28.220

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing winget show on a package with both user and system installers, then inspect the WinGet CLI implementation of that command and compare its output with the package's .installer.yaml entries. Done means the command no longer hides the available scope choices and provides a clear way to inspect a specific scope, with behavior confirmed for packages offering multiple installers.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.