You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Package names are being truncated when searching with empty string #2603
The output is truncated to fit the terminal width in the CLI. We've got PowerShell modules and cmdlets coming out in the next release which don't truncate the output.
Reacted by Fernando, Onyx, pedronovaes, BUGP Association and Filip Mösner
I didn't search for empty characters or app names with spaces, the command I used was winget list (and viewed at full screen size).
In the displayed list of downloaded and installed application results, some application names or IDs are truncated and cannot be viewed completely
The output is truncated to fit the terminal width in the CLI. We've got PowerShell modules and cmdlets coming out in the next release which don't truncate the output.
is there a plan when this will be released? I joined the Windows Package Manager Insiders Program but It didnt change. Or wasnt it changed yet? Thanks alot.
Once the module is available, you can just run Find-WinGetPackage and pull the output you need. The default display in the terminal will still show truncated values, but the object contains the names.
A workaround could be to output the results to file, and then review the file:
The default is truncated:
PS> winget list Microsoft.VisualStudio.2019
Name Id Version Available Source
---------------------------------------------------------------------------------------------------
Visual Studio Build Tools 2019 Microsoft.VisualStudio.2019.BuildToo… 16.11.28 16.11.29 winget
I use:
PS> winget list Microsoft.VisualStudio.2019 > foo.txt
PS> cat .\foo.txt
Name Id Version Available Source
------------------------------------------------------------------------------------------------------
Visual Studio Build Tools 2019 Microsoft.VisualStudio.2019.BuildTools 16.11.28 16.11.29 winget
Activity
denelon commentedon Dec 1, 2022
The output is truncated to fit the terminal width in the CLI. We've got PowerShell modules and cmdlets coming out in the next release which don't truncate the output.
dong-lufei commentedon Jan 13, 2023
#2842
I didn't search for empty characters or app names with spaces, the command I used was winget list (and viewed at full screen size).
In the displayed list of downloaded and installed application results, some application names or IDs are truncated and cannot be viewed completely
Frxhb commentedon Jan 17, 2023
is there a plan when this will be released? I joined the Windows Package Manager Insiders Program but It didnt change. Or wasnt it changed yet? Thanks alot.
denelon commentedon Jan 17, 2023
A preview version of the PowerShell cmdlets is available via the GitHub release.
Frxhb commentedon Jan 17, 2023
Thanks, I have installed it. Can you tell me how to format the output of
winget search """"now better?denelon commentedon Jan 17, 2023
Once the module is available, you can just run
Find-WinGetPackageand pull the output you need. The default display in the terminal will still show truncated values, but the object contains the names.Trenly commentedon Jun 16, 2023
[Policy] Area-Output
RockstarSven commentedon Aug 9, 2023
A workaround could be to output the results to file, and then review the file:
The default is truncated:
I use:
schittli commentedon Jul 27, 2024
denelon commentedon Aug 2, 2024
You can use the Microsoft.WinGet.Client PowerShell module and
Find-WinGetPackage ""using PowerShell.