A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.microsoft.com/en-us/nuget/reference/cli-reference/cli-ref-setapikey below:

NuGet CLI setapikey command | Microsoft Learn

setapikey command (NuGet CLI)

In this article

Applies to: publishing • Supported versions: all

Saves an API key for a given server URL into NuGet.Config so that it doesn't need to be entered for subsequent push commands.

Usage
nuget setapikey <key> -Source <url> [options]

where <source> identifies the server and <key> is the key to save. If <source> is omitted, nuget.org is assumed.

Note

API key is not used for authenticating with the private feed. Refer to nuget sources command to manage credentials for authenticating with the source. API keys can be obtained from the individual NuGet servers. To create and manage APIKeys for nuget.org refer to acquire-an-api-key.

Options

Also see Environment variables

Examples
nuget setapikey 4003d786-cc37-4004-bfdf-c4f3e8ef9b3a

nuget setapikey 4003d786-cc37-4004-bfdf-c4f3e8ef9b3a -source https://example.com/nugetfeed

Additional resources

In this article

Was this page helpful?


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4