If an API key is compromised, roll the key in the Dashboard to block it and generate a new one. Rolling an API key. When rolling an API key, you can choose to block the old key immediately or allow it to work for 12 hours, providing you with time to make the transitions. To get your AWS account ID, contact your administrator. In the navigation bar on the upper right, choose your user name, and then choose My Security Credentials. Expand the Access keys (access key ID and secret access key) section. Do any of the following: To create an access key, choose Create New Access Key.
-->Applies to: package consumption, publishing • Supported versions: all
Saves an API key for a given server URL into NuGet.Config
so that it doesn't need to be entered for subsequent commands.
Usage
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 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 acquire-an-api-key
Generate Sk Live Api Key
Options
-ConfigFile
The NuGet configuration file to apply. If not specified,
%AppData%NuGetNuGet.Config
(Windows), or~/.nuget/NuGet/NuGet.Config
or~/.config/NuGet/NuGet.Config
(Mac/Linux) is used.-ForceEnglishOutput
(3.5+) Forces nuget.exe to run using an invariant, English-based culture.
-?|-help
Displays help information for the command.
-NonInteractive
Suppresses prompts for user input or confirmations.
-src|-Source
Server URL where the API key is valid.
-Verbosity [normal|quiet|detailed]
Specifies the amount of detail displayed in the output:
normal
(the default),quiet
, ordetailed
.
Also see Environment variables