Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CacheCleanCommand

Hierarchy

Properties

Methods

Properties

all

all: boolean = Option.Boolean(`--all`, false, {description: `Remove both the global cache files and the local cache files of the current project`,})

cwd

cwd: undefined | string = Option.String(`--cwd`, {hidden: true})

mirror

mirror: boolean = Option.Boolean(`--mirror`, false, {description: `Remove the global cache files instead of the local cache files`,})

Static paths

paths: string[][] = [[`cache`, `clean`],[`cache`, `clear`],]

Static usage

usage: Usage = Command.Usage({description: `remove the shared cache files`,details: `This command will remove all the files from the cache.`,examples: [[`Remove all the local archives`,`$0 cache clean`,], [`Remove all the archives stored in the ~/.yarn directory`,`$0 cache clean --mirror`,]],})

Methods

execute

  • execute(): Promise<0 | 1>

Generated using TypeDoc