So I need a way to create a NuGet ApiKey from the console/command. Basically the idea is to automate a project's nuget package deploy. Ideal steps:
- User passes username/password to Jenkins(or sth else, Jenkins is what we use)
- Jenkins makes a connection to nuget gallery
- Jenkins creates a nuget package with your user
- Jenkins creates an ApiKey for the new package
- Jenkins saves the ApiKey for future pushes
- From now on, every time we need a nuget to be published it's a click of a button with no data needed.
- No Username/Passwords are stored.
Everything from that list seems easy except for how to create that ApiKey, all I'm finding is creating it through the UI at https://www.nuget.org/account/apikeys