Yarn Commands

Add Package

yarn add <package-name>

Installs a specific package and adds it to dependencies

Check Yarn Version

yarn --version

Displays the currently installed version of Yarn

Install Dependencies

yarn

Installs all dependencies listed in package.json using Yarn

Remove Package

yarn remove <package-name>

Removes a specified package and updates dependencies

Start Project

yarn start

Runs the start script defined in package.json

Start Project with Cache Reset

yarn start --reset-cache

Starts the project and resets the bundler cache, useful in React Native