Using the setApiKey Command

This command saves an API key for a given server URL:

nuget setapikey <API key> [options]

When no URL is provided, the API key for the official NuGet gallery is saved. API keys are stored in %AppData%\NuGet\NuGet.config.

Available options are shown in Table B-8.

images

Get Pro NuGet now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.