Skip to main content

AddCommand

Hierarchy

Index

Constructors

constructor

  • Returns default

Properties

cached

cached: boolean = ...

caret

caret: boolean = ...

cwd

cwd: undefined | string = ...

dev

dev: boolean = ...

exact

exact: boolean = ...

fixed

fixed: boolean = ...

interactive

interactive: undefined | boolean = ...

json

json: boolean = ...

mode

mode: undefined | InstallMode = ...

optional

optional: boolean = ...

packages

packages: string[] = ...

peer

peer: boolean = ...

preferDev

preferDev: boolean = ...

silent

silent: undefined | boolean = ...

tilde

tilde: boolean = ...

staticpaths

paths: string[][] = ...

staticusage

usage: Usage = ...

Methods

execute

  • execute(): Promise<0 | 1>
  • Returns Promise<0 | 1>

validateAndExecute

  • validateAndExecute(): Promise<number>
  • Returns Promise<number>