Connect the Chocolatey Client to Artifactory

JFrog Artifactory Documentation

Products
JFrog Artifactory
Content Type
User Guide

You can configure the Chocolatey client to work with Artifactory in the following ways:

Note

Chocolatey registry only supports NuGet API V2

  • Choco - NuGet API V2 - (recommended)

  • Choco - NuGet API V3

Choco - NuGet API V2

Add Artifactory to your choco client sources by running the following command:

choco source add -n artifactory -s="https://company.jfrog.io/artifactory/api/nuget/john-nuget-local" --priority 1 --bypass-proxy --allow-self-service

Then, to authenticate against Artifactory with the NuGet API key, run the following command:

choco apikey -s "https://company.jfrog.io/artifactory/api/nuget/john-nuget-local" -k john:cmVmdGtuOjAxOjE3OTE4ODI0OTQ6d0lrRU9OUGVqU2dQaFNlNElCNmt4QWo4UDVj

Choco - NuGet API V3

Add Artifactory to your choco client sources by running the following command:

Note: …nuget/v3/…/index.json is explicitly set in the Artifactory URL

choco source add -n artifactory -s="https://company.jfrog.io/artifactory/api/nuget/v3/john-nuget-local/index.json" --priority 1 --bypass-proxy --allow-self-service

Then, to authenticate against Artifactory with the NuGet API key, run the following command:

choco apikey -s "https://company.jfrog.io/artifactory/api/nuget/v3/john-nuget-local/index.json" -k john:cmVmdGtuOjAxOjE3OTE4ODI0OTQ6d0lrRU9OUGVqU2dQaFNlNElCNmt4QWo4UDVj