yarn commands
Command | Description |
---|---|
yarn init | Initialize a new project, adds yarn to your project |
yarn install | Installs dependencies declared in package.json file to a project |
yarn add package | install, adds the package to dependency section of in package.json file |
yarn remove package | uninstall & Removes the package from dependency section of in package.json file |
yarn upgrade package | Update the package to latest version based on version syntax mention in package.json |
yarn global add package | install the package globally |
yarn run scripts | Run specified script located in scripts of package.json |