Publishing packages

Once you have created a package with nuget pack, it's a simple process to make it available to other developers, either publicly or privately:

  • Public packages are made available to all developers globally through as described in this topic.
  • Private packages are available to only a team or organization, by hosting them either a file share, a private NuGet server, Visual Studio Team Services Package Management, or a third-party repository such as myget, ProGet, Nexus Repository, and Artifactory. For additional details, see Hosting Packages Overview.

This topic covers publishing to; for publishing to Visual Studio Team Services, see Package Management.

Publish to

For, you must first register for a free account or sign in if already registered:

NuGet registration and sign in location

Next, you can either upload the package through the web portal, push to from the command line, or publish as part of a CI/CD process through Visual Studio Team Services, as described in the following sections.

Web portal: use the Upload Package tab on

Upload a package with the NuGet Package Manager

Command line:


To push packages to you must use nuget.exe v4.1.0 or above, which implements the required NuGet protocols.

  1. Click on your user name to navigate to your account settings.
  2. Under API Key, click copy to clipboard to retrieve the access key you'll need in the CLI:

    Copying an API Key from account settings

  3. At a command prompt, run the following command:

    nuget setApiKey Your-API-Key

    This stores your API key on the machine so that you need not do this step again on the same machine.

  4. Push your package to NuGet Gallery using the command:

    nuget push YourPackage.nupkg -Source
  5. Before being made public, all packages uploaded to are scanned for viruses and rejected if any viruses are found. All packages listed on are also scanned periodically.

  6. In your account on, click Manage my packages to see the one that you just published; you'll also receive a confirmation email. Note that it might take a while for your package to be indexed and appear in search results where others can find it, during which time you'll see the following message on your package page:

    Message indicating a package is not yet indexed

Package Validation and Indexing

Packages pushed to undergo several validations. When the package has passed all validation checks, it might take a while for it to be indexed and appear in search results. Once indexing is complete, you'll receive an email confirming that the package was successfully published. If the package fails a validation check, the package details page will update to display the associated error and you'll also receive an email notifying you about it.

Package validation and indexing usually takes under 15 minutes. If the package publishing is taking longer than expected, visit to check if is experiencing any interruptions. If all systems are operational and the package hasn't been successfully published within an hour, please login to and contact us using the Contact Support link on the package page.

Visual Studio Team Services (CI/CD)

If you push packages to using Visual Studio Team Services as part of your Continuous Integration/Deployment process, you must use nuget.exe 4.1 or above in the NuGet tasks. Details can be found on Using the latest NuGet in your build (Microsoft DevOps blog).

Managing package owners on

Although each NuGet package's .nuspec file defines the package's authors, the gallery does not use that metadata to define ownership. Instead, assigns initial ownership to the person who publishes the package. This is either the logged-in user who uploaded the package through the UI, or the users whose API key was used with nuget SetApiKey or nuget push.

All package owners have full permissions for the package, including adding and removing other owners, and publishing updates.

To change ownership of a package, do the following:

  1. Sign in to with the account that is the current owner of the package.
  2. Click on your username, then on Manage my packages, then on the package you want to manage.
  3. Click the Manage owners link on the left side.

From here you have several options:

  1. To add an owner, enter their NuGet account name and click Add. This sends an email to that new co-owner with a confirmation link. Once confirmed, that person has full permissions to add and remove owners. (Until confirmed, the Manage owners page indicates "pending approval" for that person).
  2. To remove an owner, select their name on the Manage owners and click Remove.
  3. To transfer ownership (as when ownership changes or a package was published under the wrong account), simply add the new owner, and once they've confirmed ownership they can remove you from the list.

To assign ownership to a company or group, create a account using an email alias that is forwarded to the appropriate team members. For example, various Microsoft ASP.NET packages are co-owned by the microsoft and aspnet accounts, which simply such aliases.

Recovering package ownership

Occasionally, a package may not have an active owner. For example, the original owner may have left the company that produces the package, credentials are lost, or earlier bugs in the gallery left a package ownerless.

If you are the rightful owner of a package and need to regain ownership, use the contact form on to explain your situation to the NuGet team. We then follow a process to verify your ownership of the package, including trying to locate the existing owner through the package's Project URL, Twitter, email, or other means. But if all else fails, we can send you a new invite to become an owner.