Docs/Reference/CLI

Yarn CLI reference

List of all the commands available in the Yarn CLI.

Npm-related commands

Project management

Dependency management

Scripting commands

  • yarn bin — Print the path of an accessible binary
  • yarn create — Create a new package from a starter kit
  • yarn dedupe — Deduplicate dependencies with overlapping ranges
  • yarn dlx — Install a temporary package and run it
  • yarn exec — Run a shell command in the package environment
  • yarn node — Run a Node.js process within the project's environment
  • yarn python — Run a Python process within the project's environment
  • yarn run — Run a dependency binary or local script

Cache management

Configuration commands

Debug commands

Daemon management

  • yarn daemon — Open the Yarn daemon through Yarn Switch

Release commands

  • yarn pack — Pack the project into a distributable archive

Task management commands

Workspace commands