Winget-cli: Shorthand Versions of Commands

Created on 19 May 2020  路  7Comments  路  Source: microsoft/winget-cli

Description of the new feature/enhancement

Currently to install a package, you would type winget install <package>

I think it's always good for package managers to help users save on as much typing as possible, thus I would like to propose 'shorthand' versions of the winget commands, so for example for install we would have: winget in <package>

I believe this is a very handy feature from package managers such as dnf and zypper.

Proposed technical implementation details (optional)

I need to familiarize myself with the code more, but I would presume this is an easy fix and am happy to look into it as time allows.

Issue-Feature

Most helpful comment

We're already working on Autocomplete [tab] in PowerShell. Would that help?

All 7 comments

Pacman-style shortcut commands would also be great.

In case you're unfamiliar with Arch's Pacman, syncing the repos, upgrading all installed packages and installing can be done in a simple and concise pacman -Syu <pkgname>. (All in one operation)

See https://www.archlinux.org/pacman/pacman.8.html#_sync_options_apply_to_em_s_em_a_id_so_a

I find pacman's syntax to be very unclear and confusing. One letter shortcuts like winget i for winget install seem to be much clearer. Also, does winget even have a "sync" step?

We're already working on Autocomplete [tab] in PowerShell. Would that help?

146

It would help, yes, and I guess users could always just make their own aliases (e.g. wgi for winget install)

We're already working on Autocomplete [tab] in PowerShell. Would that help?

Yes that seems like a good way to go about it, thanks!

Duplicate of #146

Was this page helpful?
0 / 5 - 0 ratings