Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NpmTagAddCommand

Hierarchy

Properties

Methods

Properties

cwd

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

package

package: string = Option.String()

tag

tag: string = Option.String()

Static paths

paths: string[][] = [[`npm`, `tag`, `add`],]

Static usage

usage: Usage = Command.Usage({category: `Npm-related commands`,description: `add a tag for a specific version of a package`,details: `This command will add a tag to the npm registry for a specific version of a package. If the tag already exists, it will be overwritten.`,examples: [[`Add a \`beta\` tag for version \`2.3.4-beta.4\` of package \`my-pkg\``,`yarn npm tag add my-pkg@2.3.4-beta.4 beta`,]],})

Methods

execute

  • execute(): Promise<0 | 1>

Generated using TypeDoc