> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nanoforge.eu/llms.txt
> Use this file to discover all available pages before exploring further.

# Schematics

> Overview of the @nanoforge-dev/schematics package

## What are schematics?

NanoForge schematics are code generators built on [Angular DevKit](https://github.com/angular/angular-cli/tree/main/packages/angular_devkit/schematics). They produce the boilerplate files that every NanoForge project needs — from the initial application scaffold down to individual ECS components and systems.

The NanoForge CLI (`nf`) calls these schematics internally whenever you run commands like `nf new` or `nf create`. You can also invoke them directly via the `schematics` CLI for advanced use cases.

## Installation

```bash theme={null}
npm install -g @nanoforge-dev/cli
```

The schematics package is a dependency of the CLI and does not need to be installed separately. If you want to run schematics without the CLI:

```bash theme={null}
npm install -g @angular-devkit/schematics-cli
npm install @nanoforge-dev/schematics
```

Then invoke directly:

```bash theme={null}
schematics @nanoforge-dev/schematics:<schematic-name> [options]
```

## Available schematics

> [card] [workspace](https://docs.nanoforge.eu/docs/cli/schematics/workspace.md)
>
> Scaffold the root of a NanoForge monorepo: `nanoforge.config.ts`, `package.json`, TypeScript or
> JavaScript config, and linting.

> [card] [project](https://docs.nanoforge.eu/docs/cli/schematics/project.md)
>
> Generate a client or server project under `apps/<part>` inside a workspace, including its
> `main.ts` entry point, example component/system, and optional Dockerfile.

> [card] [component](https://docs.nanoforge.eu/docs/cli/schematics/component.md)
>
> Scaffold an ECS component class with an editor manifest for use in the NanoForge editor.

> [card] [system](https://docs.nanoforge.eu/docs/cli/schematics/system.md)
>
> Scaffold an ECS system function with an editor manifest for use in the NanoForge editor.

see the [changelog](https://github.com/NanoForge-dev/schematics/blob/main/CHANGELOG.md) for the full release history.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.