# `> npx add-nx-to-monorepo`

<p align="center"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx.png" width="600"></p>

<div align="center">

[![License](https://img.shields.io/npm/l/@nrwl/workspace.svg?style=flat-square)]()
[![NPM Version](https://badge.fury.io/js/%40nrwl%2Fworkspace.svg)](https://www.npmjs.com/@nrwl/workspace)
[![Join the chat at https://gitter.im/nrwl-nx/community](https://badges.gitter.im/nrwl-nx/community.svg)](https://gitter.im/nrwl-nx/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Join us @nrwl/community on slack](https://img.shields.io/badge/slack-%40nrwl%2Fcommunity-brightgreen)](https://join.slack.com/t/nrwlcommunity/shared_invite/enQtNzU5MTE4OTQwOTk0LTgxY2E0ZWYzMWE0YzA5ZDA2MWM1NDVhNmI2ZWMyYmZhNWJiODk3MjkxZjY3MzU5ZjRmM2NmNWU1OTgyZmE4Mzc)

</div>

An easy way to add Nx computation caching to any monorepo (Yarn Workspaces, PNPM, Lerna, etc).

Simply run: `npx add-nx-to-monorepo` in your monorepo.

## Learn More

- [Guide: Add Nx to Lerna / Yarn / PNPM / NPM Workspaces](/recipes/adopting-nx/adding-to-monorepo#adding-nx-to-lernayarnpnpmnpm-workspace)
- [Video: https://youtu.be/Dq2ftPf3sn4]
- See [https://github.com/nrwl/nx](https://github.com/nrwl/nx) to learn more about Nx.
