
How to Publish a Nuget package in NuGet Gallery?
Step 1 – Create an account at NuGet.org
Head over to http://nuget.org/ and register for an account. Once you do that, click on “My Account” to see an API Key that was generated for you.
Step 2 – In a command console, run the command:
$ nuget setApiKey Your-API-Key
This will store your API key so that you never need to do this step again on this machine.
Push your package to NuGet Gallery using the command:
$ nuget push YourPackage.nupkg
Reference
https://docs.nuget.org/consume/command-line-reference
I’m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I am working at Cotocus. I blog tech insights at DevOps School, travel stories at Holiday Landmark, stock market tips at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at I reviewed , and SEO strategies at Wizbrand.
Please find my social handles as below;
Rajesh Kumar Personal Website
Rajesh Kumar at YOUTUBE
Rajesh Kumar at INSTAGRAM
Rajesh Kumar at X
Rajesh Kumar at FACEBOOK
Rajesh Kumar at LINKEDIN
Rajesh Kumar at PINTEREST
Rajesh Kumar at QUORA
Rajesh Kumar at WIZBRAND