Chocolatey

Summary

Contains functionality for working with Chocolatey.

In order to use the commands for this alias, Chocolatey will require to be installed on the machine where the build script is being run. See this page for details on how Chocolatey can be installed.

AddSource

ChocolateyAddSource(ICakeContext, string, string) Adds Chocolatey package source using the specified name &source to global user config
ChocolateyAddSource(ICakeContext, string, string, ChocolateySourcesSettings) Adds Chocolatey package source using the specified name, source & settings to global user config

ApiKey

ChocolateyApiKey(ICakeContext, string, string, ChocolateyApiKeySettings) Sets the Api Key for a Chocolatey Source using the specified settings.

Config

ChocolateyConfig(ICakeContext, string, string, ChocolateyConfigSettings) Sets the config parameter using the specified settings.

DisableFeature

ChocolateyDisableFeature(ICakeContext, string) Disables a Chocolatey Feature using the specified name
ChocolateyDisableFeature(ICakeContext, string, ChocolateyFeatureSettings) Disables a Chocolatey Feature using the specified name and settings

DisableSource

ChocolateyDisableSource(ICakeContext, string) Disables a Chocolatey Source using the specified name
ChocolateyDisableSource(ICakeContext, string, ChocolateySourcesSettings) Disables a Chocolatey Source using the specified name and settings

EnableFeature

ChocolateyEnableFeature(ICakeContext, string) Enables a Chocolatey Feature using the specified name
ChocolateyEnableFeature(ICakeContext, string, ChocolateyFeatureSettings) Enables a Chocolatey Feature using the specified name and settings

EnableSource

ChocolateyEnableSource(ICakeContext, string) Enables a Chocolatey Source using the specified name
ChocolateyEnableSource(ICakeContext, string, ChocolateySourcesSettings) Enables a Chocolatey Source using the specified name and settings

Install

ChocolateyInstall(ICakeContext, string) Installs a Chocolatey package.
ChocolateyInstall(ICakeContext, string, ChocolateyInstallSettings) Installs a Chocolatey package using the specified settings.
ChocolateyInstallFromConfig(ICakeContext, FilePath) Installs Chocolatey packages using the specified package configuration.
ChocolateyInstallFromConfig(ICakeContext, FilePath, ChocolateyInstallSettings) Installs Chocolatey packages using the specified package configuration and settings.

Pack

ChocolateyPack(ICakeContext, ChocolateyPackSettings) Creates a Chocolatey package using the specified settings.
ChocolateyPack(ICakeContext, FilePath, ChocolateyPackSettings) Creates a Chocolatey package using the specified Nuspec file.

Pin

ChocolateyPin(ICakeContext, string, ChocolateyPinSettings) Pins a Chocolatey package using the specified settings.

Push

ChocolateyPush(ICakeContext, FilePath, ChocolateyPushSettings) Pushes a Chocolatey package to a Chocolatey server and publishes it.

RemoveSource

ChocolateyRemoveSource(ICakeContext, string) Removes Chocolatey package source using the specified name & source from global user config
ChocolateyRemoveSource(ICakeContext, string, ChocolateySourcesSettings) Removes Chocolatey package source using the specified name, source & settings from global user config

Upgrade

ChocolateyUpgrade(ICakeContext, string) Upgrades Chocolatey package.
ChocolateyUpgrade(ICakeContext, string, ChocolateyUpgradeSettings) Upgrades Chocolatey package using the specified settings.