CLI Introduction

CLI Introduction

Yarn provides a rich set of command-line commands to help you with various aspects of your Yarn package, including installation, administration, publishing, etc.

While all of the available commands are provided here, in alphabetical order, some of the more popular commands are:

  • yarn add: adds a package to use in your current package.
  • yarn init: initializes the development of a package.
  • yarn install: installs all the dependencies defined in a package.json file.
  • yarn publish: publishes a package to a package manager.
  • yarn remove: removes an unused package from your current package.

登录查看完整内容