# Init Generator

#### @code-pushup/nx-plugin:init

## Usage

`nx generate @code-pushup/nx-plugin:init`

By default, the Nx plugin will update your `package.json` with needed dependencies and register the plugin in your `nx.json` configuration.

You can specify the collection explicitly as follows:

`nx g @code-pushup/nx-plugin:init`

```text
Root/
├── ...
├── nx.json 👈 updated
├── package.json 👈 updated
└── ...
```

Show what will be generated without writing to disk:

`nx g @code-pushup/nx-plugin:init --dry-run`

## Options

| Name                  | type                        | description                                 |
| --------------------- | --------------------------- | ------------------------------------------- |
| **--skipPackageJson** | `boolean` (DEFAULT `false`) | Skip adding `package.json` dependencies.    |
| **--skipNxJson**      | `boolean` (DEFAULT `false`) | Skip updating `nx.json` with configuration. |
