chocolatey / chocolatey/choco

Command Aliases

Open
#2,826 1 comment 1 reaction 0 assignees View on GitHub
0 - Triaging Enhancement
Dominant language
C#
Stars
11.5k
Forks
960
PR merge metrics
No merged PRs in 30d

Description

I've seen other issues suggesting some command aliases and winget is also doing it. So I am gonna try to compile them all here and add a few short aliases from [npm](https://docs.npmjs.com/cli/v7/commands):

- [ ] - search - s/find (already added)
- [ ] - install - i/add
- [ ] - upgrade - up/update
- [ ] - uninstall - un/remove/rm
- [ ] - source remove - source rm
- [ ] - list - ls/li
- [ ] - config - c/settings
- [ ] - choco upgrade all - choco upgrade/update/up *

Notes: I am not sure update can be an alias for upgrade since it was deprecated. [ferventcoder](https://github.com/ferventcoder) was against ls for list so I've added li. Winget commands "show" and "source update" are not present in chocolatey.

## Is Your Feature Request Related To A Problem? Please describe.

N/A

## Describe The Solution. Why is it needed?

Adding aliases has two advantages:
1 - helping users who are used to commands from other package managers (like apt remove).
2 - making commands smaller (therefore faster to type).

## Additional Context.

Winget is adding a bunch of aliases for their next [version](https://github.com/microsoft/winget-cli/pull/2390)

## Related Issues

- Issue #1930
- Issue #1921
- Issue #1813

Contributor guide

Open the contributing guide

Research direction

Review related issues #1930, #1921, and #1813, then compare the proposed aliases with the linked npm and winget command conventions. Resolve the open question about using update for upgrade and determine which checklist entries remain applicable. Done means the agreed aliases are implemented for the selected Chocolatey commands and their behavior is verified.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.