Add component


nx generate component ...
nx g c ... # same

By default, Nx will search for component in the default collection provisioned in nx.json.

You can specify the collection explicitly as follows:

nx g @nxext/svelte:component ...

Show what will be generated without writing to disk:

nx g component ... --dry-run


name (required)

Type: string

project (required)

Alias(es): p

Type: string

Project where the component is generated


Default: jest

Type: string

Possible values: jest, none

Test runner to use for unit tests.