Summary
Contains settings used by
NpmAddUser
.
- Namespace
- Cake
.Npm .AddUser - Base Types
-
- object
- NpmSettings
graph BT
Type-->Base0["NpmSettings"]
click Base0 "/Cake.Npm/api/Cake.Npm/NpmSettings"
Base0-->Base1["object"]
Type["NpmAddUserSettings"]
class Type type-node
Syntax
public class NpmAddUserSettings : NpmSettings
Constructors
Name | Summary |
---|---|
NpmAddUserSettings |
Initializes a new instance of the NpmAddUserSettings class.
|
Properties
Name | Value | Summary |
---|---|---|
AlwaysAuth | bool |
Gets a value indicating that all requests to the given registry should
include authorization information. Defaults to
false .
|
AuthType | AuthType |
Gets or sets the authentication stragety to use. Defaults to
AuthType.Legacy
|
Registry | Uri |
Gets or sets a value indicating which registry we should point to. Defaulted to the current NPM configuration.
|
Scope | string |
Gets or sets a value indicating the specificed scope for the user and login credentials provided. Defaults to
string.Empty .
|
Methods
Name | Value | Summary |
---|---|---|
EvaluateCore |
void |
Evaluates the settings and writes them to args.
|
Extension Methods
Name | Value | Summary |
---|---|---|
AlwaysAuthenticate |
NpmAddUserSettings |
Force npm to always require authentication when accessing the registry, even for GET requests.
|
ForRegistry |
NpmAddUserSettings |
Instructs npm to add user for the given registry.
|
ForScope |
NpmAddUserSettings |
Sets scope for credentials.
|
FromPath |
NpmSettings |
Sets the working directory which should be used to run the npm command.
|
Set |
NpmSettings |
Sets the StandardError-Action
|
Set |
NpmSettings |
Sets the StandardOutput-Action
|
UsingAuthentication |
NpmAddUserSettings |
Defines the authentication strategy to use.
|
WithLogLevel |
NpmSettings |
Sets the log level which should be used to run the npm command.
|