Forrest logo
back to context overview

yarn

List of commands for yarn:

  • yarn:cache:clear Clear Yarn cache
    $ yarn cache clean
    try on your machine
  • yarn:command:run-in-dir Run a Yarn command in a different directory
    $ yarn --cwd ${path} ${command}
    try on your machine
  • yarn:package:install:from-git-repository Install package in Yarn from a Git repository
    $ yarn add ${git_remote_url}#${branch}
    try on your machine
  • yarn:package:install:with-reproducible-dependencies Yarn install with reproducible dependencies
    $ yarn install --frozen-lockfile
    try on your machine
  • yarn:package:reinstall Force Yarn to reinstall package
    $ yarn upgrade ${package_name}
    try on your machine
  • yarn:package:update-all Update each Yarn dependency to the latest version
    $ yarn upgrade-interactive --latest
    try on your machine
  • yarn:tldr:04b2c yarn: Install a module globally.
    $ yarn global add ${module_name}
    try on your machine
    explain this command
  • yarn:tldr:1d30c yarn: Identify whether a module is a dependency and list other modules that depend upon it.
    $ yarn why ${module_name}
    try on your machine
    explain this command
  • yarn:tldr:5e3ce yarn: Show why a Yarn package is installed.
    $ yarn-why ${package_name}
    try on your machine
    explain this command
  • yarn:tldr:75c7a yarn: Uninstall a module and remove it from the `package.json` file.
    $ yarn remove ${module_name}
    try on your machine
    explain this command
  • yarn:tldr:8a084 yarn: Install a module and save it as a dependency to the `package.json` file (add `--dev` to save as a dev dependency).
    $ yarn add ${module_name}@${version}
    try on your machine
    explain this command
  • yarn:tldr:93bd5 yarn: Interactively create a `package.json` file.
    $ yarn init
    try on your machine
    explain this command
  • yarn:tldr:df5ec yarn: Install all dependencies referenced in the `package.json` file (the `install` is optional).
    $ yarn install
    try on your machine
    explain this command
  • yarn:upgrade:latest Upgrade Yarn to latest version
    $ npm install --global yarn
    $ npm upgrade --global yarn
    try on your machine
back to context overview