Skip to content

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

@Wallby

Description

@Wallby

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Command-ShowIssue related to WinGet ShowIssue-DocsIt's a documentation issue that really should be on MicrosoftDocs

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions