Created
March 18, 2022 15:19
-
-
Save pnsinha/cbca5b907cb600bb3dec47d2a3c02d66 to your computer and use it in GitHub Desktop.
Command list for chocolatey
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Chocolatey Command Reference](https://chocolatey.org/docs/commands-reference) for a complete list. | |
| ## Examples | |
| | Command | Description | | |
| | ---------------------------------------------- | ------------------------------------------------ | | |
| | **Find a package** | | | |
| | `choco list` | List all chocolatey packages | | |
| | `choco search zip` | Search packages mentionning "zip" | | |
| | `choco search --by-tag compression` | Search packages by their tags | | |
| | `choco search --by-id-only zip` | Search packages with "zip" in the package name | | |
| | `choco search --order-by-popularity zip` | Filter and sort by package results by popularity | | |
| | `choco search --approved-only zip` | Only return approved packages | | |
| | `choco info 7zip` | Get information about 7zip package | | |
| | | | | |
| | **Install** | | | |
| | `choco install 7zip` | Install | | |
| | `choco install 7zip --install-directory=P:\7z` | Install to a specific directory | | |
| | | | | |
| | **Maintenance** | | | |
| | `choco list --localonly` | List installed packages | | |
| | `choco outdated` | List upgradable packages | | |
| | `choco upgrade all -y` | Upgrade all packages | | |
| | | | | |
| | **Pinning** | | | |
| | `choco pin list` | List pinned packages | | |
| | `choco pin add --name 7zip` | Suppress upgrades for 7zip | | |
| | `choco pin remove --name 7zip` | Supress upgrades supression for 7zip ;) | | |
| Prefered search method: `choco search --by-id-only --order-by-popularity --approved-only` searchstring | |
| ### Other Command line switches | |
| | Switches | Description | | |
| | --------------------------- | ----------------------------------------------------- | | |
| | `--help` | Prints out the help menu. | | |
| | | | | |
| | `--install-directory=`VALUE | Install Directory Override | | |
| | | | | |
| | `-y`, `--yes` | Confirm all prompts. | | |
| | `-f`, `--force` | Force the behavior. | | |
| | `--what-if` | Don't actually do anything, simulate. | | |
| | | | | |
| | `--execution-timeout=`VALUE | The time to allow a command to finish. | | |
| | `--fail-on-standard-error` | Fail on standard error output (stderr). | | |
| | `--use-system-powershell` | Execute PowerShell using an external process. | | |
| | | | | |
| | `--debug` | Show debug messaging. | | |
| | `--verbose` | Show verbose messaging. | | |
| | `--trace` | Show trace messaging. | | |
| | `--log-file=`VALUE | Log File to output to in addition to regular loggers. | | |
| | | | | |
| | `--no-color` | Do not show colorization in output. | | |
| | `--limit-output` | Limit the output to essential information. | | |
| | `--no-progress` | Do not show download progress percentages. | | |
| | | | | |
| | `--allow-unofficial-build` | Allow the use of an unofficial build. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment