Paket


paket config

Allows to store global configuration values like NuGet credentials.

1: 
2: 
paket config [--help] [add-credentials <string>] [add-token <string> <string>] [--username <string>]
             [--password <string>]

OPTIONS:

 1: 
 2: 
 3: 
 4: 
 5: 
 6: 
 7: 
 8: 
 9: 
10: 
11: 
12: 
add-credentials <string>
                      Add credentials for the specified NuGet feed.
add-token <string> <string>
                      Add token for the specified source.
--username <string>   Provide a username (for scripting)
--password <string>   provide a password on the commandline (for scripting)
--verbose, -v         Enable verbose console output for the paket process.
--log-file <path>     Specify a log file for the paket process.
--silent, -s          Suppress console output for the paket process.
--version             Display the version.
--from-bootstrapper   Call coming from the '--run' feature of the bootstrapper.
--help                display this list of options.

If you add the -v flag, then Paket will run in verbose mode and show detailed information.

With --log-file [FileName] you can trace the logged information into a file.

Adding credentials

1: 
paket config add-credentials SOURCEURL

Paket will then ask you for the username and password that will be used for the specified SOURCEURL.

The credentials you enter here will then be used if no username and password for the source are configured in the paket.dependencies file.

1: 
paket config add-credentials TAG

Paket will then ask you for the username and password that will be used for the specified TAG.

The credentials you enter here will then be used to access any GitHub files specified in the paket.dependencies file with the specified TAG.

1: 
paket config add-token TAG TOKEN

The token you enter here will then be used to access any GitHub files specified in the paket.dependencies file with the specified TAG.

The configuration file can be found at:

1: 
2: 
3: 
let AppDataFolder = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)
let PaketConfigFolder = Path.Combine(AppDataFolder, "Paket")
let PaketConfigFile = Path.Combine(PaketConfigFolder, "paket.config")

Examples

Adding a NuGet API key

1: 
paket config add-token "https://www.nuget.org" 4003d786-cc37-4004-bfdf-c4f3e8ef9b3a
Fork me on GitHub