# Yarn CLI

**Canonical:** https://apis.io/apis/yarn-pkg/yarn-cli/  
**Provider:** Yarn — https://apis.io/providers/yarn-pkg/  
**Documentation:** https://yarnpkg.com/cli

Yarn CLI is one of 10 APIs that [Yarn](https://apis.io/providers/yarn-pkg/) publishes on the [APIs.io](https://apis.io/) network. Tagged areas include CLI, Package Manager, JavaScript, Node.js, and Workspaces. The published artifact set on APIs.io includes API documentation, a getting-started guide, and a JSON-LD context.

The Yarn command-line interface — `yarn` — provides install, add, remove, up, run, exec, dlx, info, why, pack, rebuild, dedupe, node, bin, search, upgrade-interactive, and stage commands for managing JavaScript project dependencies and executing project scripts. Built on top of @yarnpkg/cli and the Clipanion command framework.

## Machine-readable artifacts (7)

- **Documentation** — https://yarnpkg.com/cli
- **GettingStarted** — https://yarnpkg.com/getting-started/install
- **SourceCode** — https://github.com/yarnpkg/berry/tree/master/packages/yarnpkg-cli
- **SourceCode** — https://github.com/yarnpkg/berry
- **Vocabulary** — https://raw.githubusercontent.com/api-evangelist/yarn-pkg/refs/heads/main/vocabulary/yarn-pkg-vocabulary.yml
- **JSONLD** — https://raw.githubusercontent.com/api-evangelist/yarn-pkg/refs/heads/main/json-ld/yarn-pkg-context.jsonld
- **APIsJSON** — https://raw.githubusercontent.com/api-evangelist/yarn-pkg/refs/heads/main/apis.yml

## Other Yarn APIs (9)

- [Yarn Workspaces](https://apis.io/apis/yarn-pkg/yarn-workspaces/)
- [Yarn Plug'n'Play](https://apis.io/apis/yarn-pkg/yarn-plug-n-play/)
- [Yarn Zero-Installs](https://apis.io/apis/yarn-pkg/yarn-zero-installs/)
- [Yarn Constraints](https://apis.io/apis/yarn-pkg/yarn-constraints/)
- [Yarn Protocols](https://apis.io/apis/yarn-pkg/yarn-protocols/)
- [Yarn Plugin API](https://apis.io/apis/yarn-pkg/yarn-plugin-api/)
- [Yarn Version (Release Workflow)](https://apis.io/apis/yarn-pkg/yarn-version/)
- [Yarn Patch](https://apis.io/apis/yarn-pkg/yarn-patch/)
- [Yarn DLX](https://apis.io/apis/yarn-pkg/yarn-dlx/)

## Tags

CLI, Package Manager, JavaScript, Node.js, Workspaces

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/yarn-pkg/yarn-cli/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/yarn-pkg/.
