nx/docs/generated/cli/init.md
2023-04-12 15:17:04 +01:00

31 lines
419 B
Markdown

---
title: 'init - CLI command'
description: 'Adds nx.json file and installs nx if not installed already'
---
# init
Adds nx.json file and installs nx if not installed already
## 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