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

# specpilot init

> Create a new project folder with .specs/ and your AI IDE's files.

```bash theme={null}
specpilot init <name> [options]
```

Alias: `specpilot i`.

## Options

| Option | What it does | Default |
| - | - | - |
| `-l, --lang <language>` | `typescript`, `javascript`, `python`, `kotlin` or `swift` | `typescript` |
| `-f, --framework <framework>` | The framework | Asked |
| `-d, --dir <directory>` | Where the project folder goes | `.` |
| `--specs-name <name>` | The specs folder's name | `.specs` |
| `--no-prompts` | Asks nothing | Off |
| `--dry-run` | Lists the files without writing them | Off |
| `--ide <name>` | `claude-code`, `cursor`, `vscode`, `windsurf`, `antigravity` or `codex`. Skips the IDE question | Asked |

The name can be up to 214 characters. It starts with a letter or number, followed by letters, numbers, dots, hyphens and underscores.

## The questions

1. Greenfield or brownfield.
2. The framework, for TypeScript (react, express, next, nest, vue, angular), Python (fastapi, django, flask, streamlit), Kotlin (android, spring, ktor, compose) or Swift (ios, swiftui, vapor).
3. The API paradigm: REST, CLI, GraphQL or None. None writes no `api.yaml`.
4. Your short handle, used in IDs such as `CD-alex-004`. The default is your OS user name.
5. Your AI IDE.
6. What the project does (required), then target users, expected scale and constraints (Enter skips each).

With `--no-prompts`: greenfield, no framework unless you pass `-f`, no API answer, your OS user name as the handle, and GitHub Copilot unless you pass `--ide`.

## What it writes

A new folder, `<dir>/<name>/`, with:

* The 13 [spec files](https://docs.specpilot.dev/reference/spec-files/readme.md).
* Your AI IDE's instruction file and commands. See [Supported AI tools](https://docs.specpilot.dev/ai-tools/claude-code.md).
* Lines added to `.gitattributes`.

It stops if that folder already has `.specs/`. A file outside `.specs/` that already exists is kept as it is.

It then prints the onboarding prompt to paste into your agent. The prompt is also saved to [`development/onboarding.md`](https://docs.specpilot.dev/reference/spec-files/onboarding).

For Codex, copy the commands to `~/.codex/prompts/`, as it prints.

## Examples

```bash theme={null}
specpilot init my-app
specpilot init my-app --lang python -f fastapi --ide claude-code
specpilot init my-app --dry-run
```

Checked against SpecPilot 2.22.0.


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