Skip to content

Commit

Permalink
Merge pull request NuGet#1927 from NuGet/cmanu1793
Browse files Browse the repository at this point in the history
Fixes 1793 (ApiKey is only used for pushing packages)
karann-msft authored Feb 28, 2020
2 parents dff82b6 + 133844d commit 502f1a8
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions docs/nuget-org/Publish-a-package.md
Original file line number Diff line number Diff line change
@@ -61,6 +61,10 @@ To push packages to nuget.org you must use [nuget.exe v4.1.0 or above](https://w
This command stores your API key in your NuGet configuration so that you don't need to repeat this step again on the same computer.
> [!NOTE]
> API key is not used for authenticating with the private feed. Refer to [`nuget sources` command](../reference/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 manange APIKeys for nuget.org refer to [publish-api-key](../quickstart/includes/publish-api-key.md)
1. Push your package to NuGet Gallery using the following command:
```cli
3 changes: 2 additions & 1 deletion docs/reference/cli-reference/cli-ref-setapikey.md
Original file line number Diff line number Diff line change
@@ -19,10 +19,11 @@ Saves an API key for a given server URL into `NuGet.Config` so that it doesn't n
nuget setapikey <key> -Source <url> [options]
```

where `<source>` identifies the server and `<key>` is the key or password to save. If `<source>` is omitted, nuget.org is assumed.
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 [publish-api-key](../../quickstart/includes/publish-api-key.md)
## Options

0 comments on commit 502f1a8

Please sign in to comment.