31 lines
419 B
Markdown
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
|