> ## Documentation Index
> Fetch the complete documentation index at: https://mintlify.com/SynkraAI/aiox-core/llms.txt
> Use this file to discover all available pages before exploring further.

# aiox init

> Create a new AIOX project with specified configuration

The `aiox init` command creates a new AIOX project in a specified directory with full framework setup.

## Usage

```bash theme={null}
npx aiox-core init <project-name> [options]
```

## Arguments

<ParamField path="project-name" type="string" required>
  Name of the project directory to create. Use `.` to install in the current directory.

  ```bash theme={null}
  npx aiox-core init my-project
  npx aiox-core init .
  ```
</ParamField>

## Options

<ParamField path="--force" type="flag">
  Force creation in a non-empty directory. Without this flag, init will fail if the target directory exists and contains files.

  ```bash theme={null}
  npx aiox-core init my-project --force
  ```
</ParamField>

<ParamField path="--skip-install" type="flag">
  Skip npm dependency installation during project creation. Useful for faster setup or custom dependency management.

  ```bash theme={null}
  npx aiox-core init my-project --skip-install
  ```
</ParamField>

<ParamField path="--template" type="string" default="default">
  Specify which template to use for project initialization.

  Available templates:

  * `default` - Full installation with all agents, tasks, and workflows
  * `minimal` - Essential files only (dev agent + basic tasks)
  * `enterprise` - Everything + dashboards + team integrations

  ```bash theme={null}
  npx aiox-core init my-project --template minimal
  npx aiox-core init my-project -t enterprise
  ```
</ParamField>

<ParamField path="-t" type="string">
  Shorthand for `--template`.

  ```bash theme={null}
  npx aiox-core init my-project -t minimal
  ```
</ParamField>

<ParamField path="-h, --help" type="flag">
  Display help information for the init command.

  ```bash theme={null}
  npx aiox-core init --help
  ```
</ParamField>

## Examples

### Create a New Project

Create a new project with default settings:

```bash theme={null}
npx aiox-core init my-aiox-project
```

This will:

1. Create `my-aiox-project/` directory
2. Initialize git repository
3. Create `package.json`
4. Run the installation wizard
5. Install framework files
6. Configure IDE settings

### Minimal Project Setup

Create a lightweight project with essential components only:

```bash theme={null}
npx aiox-core init my-project --template minimal
```

The minimal template includes:

* Development agent only
* Core tasks
* Basic configuration
* No pre-installed squads

### Enterprise Project

Create a full-featured enterprise project:

```bash theme={null}
npx aiox-core init enterprise-app --template enterprise
```

The enterprise template includes:

* All agents and tasks
* Dashboard integrations
* Team collaboration tools
* Advanced workflows

### Install in Current Directory

Initialize AIOX in an existing project directory:

```bash theme={null}
cd existing-project
npx aiox-core init .
```

### Force Overwrite

Create a project even if the directory is not empty:

```bash theme={null}
npx aiox-core init my-project --force
```

<Warning>
  Using `--force` will overwrite existing files. Make sure you have backups or version control in place.
</Warning>

### Skip Dependency Installation

Create project structure without installing npm dependencies:

```bash theme={null}
npx aiox-core init my-project --skip-install
cd my-project
npm install  # Install dependencies later
```

## Interactive Wizard

After running `init`, you'll be guided through an interactive setup:

### 1. Installation Mode

Choose how you're using AIOX:

* **Using AIOX in a project** - Framework files added to `.gitignore`
* **Developing AIOX framework itself** - Framework files are source code

### 2. Project Management Tool

Select your PM integration:

* **None** (local YAML files only) - Recommended
* **ClickUp** - Requires API token
* **GitHub Projects** - Uses `gh` auth
* **Jira** - Requires API token

### 3. IDE Selection

Choose which IDEs to configure (multiple selection):

* Claude Code (v4) - Recommended
* Cursor (v4)
* Gemini CLI (v4)
* GitHub Copilot (v4)
* AntiGravity (v4)

The wizard will:

* Check if CLI tools are installed
* Offer to install missing tools
* Configure IDE-specific files
* Set up agent commands and rules

### 4. Squad Selection

Optionally install pre-built squads:

* squad-creator
* data-engineering
* testing-automation
* And more...

## What Gets Created

After running `init`, your project will contain:

```
my-project/
├── .aiox-core/              # Framework core files
│   ├── agents/
│   ├── tasks/
│   ├── templates/
│   └── workflows/
├── .claude/                 # Claude Code config (if selected)
│   ├── CLAUDE.md
│   └── commands/
├── .cursor/                 # Cursor config (if selected)
│   └── rules/
├── squads/                  # Squad definitions (if selected)
├── .aiox-installation-config.yaml
├── .gitignore
└── package.json
```

## Exit Codes

* **0** - Project created successfully
* **1** - Project creation failed (e.g., directory exists, invalid template)

## Troubleshooting

### Directory Already Exists

If you see:

```
❌ Directory already exists and is not empty: my-project
Use --force to overwrite.
```

Use `--force` to proceed:

```bash theme={null}
npx aiox-core init my-project --force
```

### Invalid Template

If you see:

```
❌ Unknown template: custom
Available templates: default, minimal, enterprise
```

Use one of the supported templates:

```bash theme={null}
npx aiox-core init my-project --template default
```

### Missing Project Name

If you see:

```
❌ Project name is required
```

Provide a project name:

```bash theme={null}
npx aiox-core init my-project
```

## Next Steps

After creating your project:

1. Navigate to the project directory:
   ```bash theme={null}
   cd my-project
   ```

2. Verify installation:
   ```bash theme={null}
   aiox validate
   ```

3. Run system diagnostics:
   ```bash theme={null}
   aiox doctor
   ```

4. Start using agents in your IDE based on your selection:
   * **Claude Code**: Use slash commands like `/dev`, `/architect`
   * **Cursor**: Use `@agent-name` in chat
   * **GitHub Copilot**: Select agent mode in Chat view

## Related Commands

* [install](/cli/install) - Install AIOX in existing project
* [validate](/cli/commands#validate) - Verify installation integrity
* [doctor](/cli/commands#doctor) - Run system diagnostics
