nx/docs/generated/cli/init.md
2023-04-13 09:57:05 -04:00

31 lines
679 B
Markdown

---
title: 'init - CLI command'
description: 'Adds Nx to any type of workspace. It installs nx, creates an nx.json configuration file and optionally sets up distributed caching. For more info, check https://nx.dev/recipes/adopting-nx.'
---
# init
Adds Nx to any type of workspace. It installs nx, creates an nx.json configuration file and optionally sets up distributed caching. For more info, check https://nx.dev/recipes/adopting-nx.
## Usage
```shell
nx init
```
Install `nx` globally to invoke the command directly using `nx`, or use `npx nx`, `yarn nx`, or `pnpm nx`.
## Options
### help
Type: `boolean`
Show help
### version
Type: `boolean`
Show version number