Important: This documentation covers Yarn 2. For the 1.x doc, check
yarn addyarn binyarn cache cleanyarn config getyarn config setyarn configyarn constraints queryyarn constraints sourceyarn constraintsyarn dlxyarn inityarn installyarn linkyarn nodeyarn npm infoyarn npm loginyarn npm publishyarn npm whoamiyarn packyarn patch-commityarn patchyarn plugin importyarn plugin listyarn plugin runtimeyarn rebuildyarn removeyarn runyarn set resolutionyarn set version from sourcesyarn set versionyarn stageyarn unplugyarn upyarn upgrade-interactiveyarn version applyyarn version checkyarn versionyarn whyyarn workspaceyarn workspaces foreachyarn workspaces list

yarn bin

Get the path to a binary script.


$> yarn bin [-v,--verbose] [--json] [name]


List all the available binaries :

yarn bin

Print the path to a specific binary :

yarn bin eslint


When used without arguments, this command will print the list of all the binaries available in the current workspace. Adding the -v,--verbose flag will cause the output to contain both the binary name and the locator of the package that provides the binary.

When an argument is specified, this command will just print the path to the binary on the standard output and exit. Note that the reported path may be stored within a zip archive.

If the --json flag is set the output will follow a JSON-stream output also known as NDJSON (