Open thecodermehedi opened 3 months ago
Hi I'm an AI powered bot that finds similar issues based off the issue title.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
winget -> wg install -> i search -> s list -> l upgrade -> u uninstall -> rm
Some of these are already taken:
-a
,--architecture
- Select the architecture-e
,--exact
- Find package using exact match-h
,--silent
- Request silent installation-i
,--interactive
- Request interactive installation; user input may be needed-l
,--location
- Location to install to (if supported)-o
,--log
- Log location (if supported)-r
,--rename
- The value to rename the executable file (portable)-s
,--source
- Find package using the specified source-v
,--version
- Use the specified version; default is the latest versionuninstall -> rm
This one already exists. winget <command> --help
would show you all aliases available, but most of them aren't short like rm
The primary command "winget" isn't something we would likely shorten in the "CLI", but the PowerShell Module can have shorter aliases for cmdlets.
The auto-completion feature can also save typing in the CLI, and PowerShell already has a notion of this.
There do already exist short aliases for some of these, as @mdanish-kh mentioned. Specifically,
The one character aliases could be very confusing to new users - i
could be for import
or install
; s
could be for show
, search
, source
, or settings
Description of the new feature / enhancement
I propose adding short command aliases to winget-cli to enhance user experience and improve efficiency for frequent users. This feature would allow users to execute common winget commands using abbreviated versions of both the main command and its subcommands.
Currently, users need to type out full commands like:
With the proposed feature, users could instead use shorter aliases like:
This enhancement would:
Proposed alias examples:
winget
->wg
install
->i
search
->s
list
->l
upgrade
->u
uninstall
->rm
Proposed technical implementation details
winget-aliases.json
) where users can define custom aliases.winget alias
to manage custom aliases directly from the CLI.This feature would make winget more user-friendly while maintaining its current functionality and compatibility. It would be particularly beneficial for power users and those who frequently use winget in scripts or daily workflows.