A command line interface for the Chocolatey package manager.
::
:: choco
::
:: A command line interface for the Chocolatey package manager.
:: To Execute Chocolatey command:
choco <command>
:: To Call general help:
choco -?
:: To Call help on a specific command:
choco <command> -?
:: To Check the Chocolatey version:
choco --version
::
:: choco install
::
:: Install one or more packages with Chocolatey.
:: To Install one or more space-separated packages:
choco install <package(s)>
:: To Install packages from a custom configuration file:
choco install <path/to/packages.config>
:: To Install a specific "nuspec" or "nupkg" file:
choco install <path/to/file>
:: To Install a specific version of a package:
choco install <package> --version <version>
:: To Allow installing multiple versions of a package:
choco install <package> --allow-multiple
:: To Confirm all prompts automatically:
choco install <package> --yes
:: To Specify a custom source to receive packages from:
choco install <package> --source <source_url|alias>
:: To Provide a username and password for authentication:
choco install <package> --user <username> --password <password>
::
:: choco upgrade
::
:: Upgrade one or more packages with Chocolatey.
:: To Upgrade one or more space-separated packages:
choco upgrade <package(s)>
:: To Upgrade to a specific version of a package:
choco upgrade <package> --version <version>
:: To Upgrade all packages:
choco upgrade all
:: To Upgrade all except specified comma-separated packages:
choco upgrade all --except "<package(s)>"
:: To Confirm all prompts automatically:
choco upgrade <package> --yes
:: To Specify a custom source to receive packages from:
choco upgrade <package> --source <source_url|alias>
:: To Provide a username and password for authentication:
choco upgrade <package> --user <username> --password <password>
::
:: choco new
::
:: Generate new package specification files with Chocolatey.
:: To Create a new package skeleton:
choco new <package_name>
:: To Create a new package with a specific version:
choco new <package_name> --version <version>
:: To Create a new package with a specific maintainer name:
choco new <package_name> --maintainer <maintainer_name>
:: To Create a new package in a custom output directory:
choco new <package_name> --output-directory <path/to/directory>
:: To Create a new package with specific 32-bit and 64-bit installer urls:
choco new <package_name> url="<url>" url64="<url>"
::
:: choco pin
::
:: Pin a package at a specific version with Chocolatey.
:: Pinned packages are skipped automatically when upgrading.
:: To Display a list of pinned packages and their versions:
choco pin list
:: To Pin a package at its current version:
choco pin add --name <package>
:: To Pin a package at a specific version:
choco pin add --name <package> --version <version>
:: To Remove a pin for a specific package:
choco pin remove --name <package>
::
:: choco pack
::
:: Package a NuGet specification into a nupkg file.
:: To Package a NuGet specification to a nupkg file:
choco pack <path/to/specification>
:: To Package a NuGet specification specifying the version of the resulting file:
choco pack <path/to/specification> --version <version>
:: To Package a NuGet specification to a specific directory:
choco pack <path/to/specification> --output-directory <path/to/output_directory>
::
:: choco outdated
::
:: Check for outdated packages with Chocolatey.
:: To Display a list of outdated packages in table format:
choco outdated
:: To Ignore pinned packages in the output:
choco outdated --ignore-pinned
:: To Specify a custom source to check packages from:
choco outdated --source <source_url|alias>
:: To Provide a username and password for authentication:
choco outdated --user <username> --password <password>
::
:: choco list
::
:: Display a list of packages with Chocolatey.
:: To Display all available packages:
choco list
:: To Display all locally installed packages:
choco list --local-only
:: To Display a list including local programs:
choco list --include-programs
:: To Display only approved packages:
choco list --approved-only
:: To Specify a custom source to display packages from:
choco list --source <source_url|alias>
:: To Provide a username and password for authentication:
choco list --user <username> --password <password>
::
:: choco info
::
:: Display detailed information about a package with Chocolatey.
:: To Display information on a specific package:
choco info <package>
:: To Display information for a local package only:
choco info <package> --local-only
:: To Specify a custom source to receive packages information from:
choco info <package> --source <source_url|alias>
:: To Provide a username and password for authentication:
choco info <package> --user <username> --password <password>
::
:: choco feature
::
:: Interact with features with Chocolatey.
:: To Display a list of available features:
choco feature list
:: To Enable a feature:
choco feature enable --name <name>
:: To Disable a feature:
choco feature disable --name <name>