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

# storage:create

> Generate a new storage class.

Scaffolds a storage class and its test file in a module. It writes the class under the module's `src/storage` directory, generates a matching test spec, and installs the `@ooneex/storage` package if it is missing.

## Usage

```bash theme={null}
ooneex storage:create [options]
```

## Examples

```bash theme={null}
ooneex storage:create
```

```bash theme={null}
ooneex storage:create --name=UserAvatar
```

```bash theme={null}
ooneex storage:create --name=UserAvatar --module=media --override
```

## Options

| Option       | Description                                                         | Default             |
| ------------ | ------------------------------------------------------------------- | ------------------- |
| `--name`     | Storage class name. The `Storage` suffix is appended automatically. | Prompted if omitted |
| `--module`   | Target module the class is generated into.                          | `shared`            |
| `--override` | Overwrite an existing class without prompting.                      | `false`             |

## AI Skill

This command ships a matching `storage:create` skill. It generates the storage class and its test file, then guides your AI agent through completing an S3-compatible storage adapter that extends `Storage` from `@ooneex/storage`.

<Tabs>
  <Tab title="Claude">
    ```bash theme={null}
    ooneex claude:init
    ```
  </Tab>

  <Tab title="Codex">
    ```bash theme={null}
    ooneex codex:init
    ```
  </Tab>
</Tabs>
