Skip to content

Commit

Permalink
Update cli-ref-setapikey.md (#3266)
Browse files Browse the repository at this point in the history
  • Loading branch information
zivkan authored Mar 20, 2024
1 parent 085a724 commit e705182
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docs/reference/cli-reference/cli-ref-setapikey.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ ms.topic: reference

# setapikey command (NuGet CLI)

**Applies to:** package consumption, publishing • **Supported versions:** all
**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 commands.
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

Expand All @@ -22,8 +22,10 @@ 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](../cli-reference/cli-ref-sources.md) 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](../../nuget-org/scoped-api-keys.md#acquire-an-api-key)
> API key is not used for authenticating with the private feed.
> Refer to [`nuget sources` command](../cli-reference/cli-ref-sources.md) 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](../../nuget-org/scoped-api-keys.md#acquire-an-api-key).
## Options

Expand Down

0 comments on commit e705182

Please sign in to comment.