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

# Images

> Manage compute images.

Images are the base templates used when creating compute instances. You can use public images or create custom ones.

**Aliases:** `images`, `img`

## Subcommands

* [list](#list) — List images
* [create](#create) — Create a new image
* [delete](#delete) — Delete an image

***

## list

List available images, optionally filtered by organization and region.

```bash theme={null}
nscale images list [flags]
```

### Flags

<table>
  <thead><tr><th>Flag</th><th>Description</th></tr></thead>

  <tbody>
    <tr><td><code>--org string</code></td><td>Organization ID</td></tr>
    <tr><td><code>--region string</code></td><td>Region ID</td></tr>

    <tr>
      <td><code>--json</code></td>
      <td>Emit the full JSON payload (mutually exclusive with <code>-q</code>)</td>
    </tr>

    <tr>
      <td><code>-q, --query stringArray</code></td>
      <td>jq filter for value extraction (see <a href="/docs/cli/query-output">Query output with <code>-q</code></a>)</td>
    </tr>
  </tbody>
</table>

### Example

```bash theme={null}
nscale images list --org <org-id> --region <region-id>
```

***

## create

Create a new custom image. Accepts input from a JSON file or stdin.

```bash theme={null}
nscale images create [flags]
```

### Flags

<table>
  <thead><tr><th>Flag</th><th>Description</th></tr></thead>

  <tbody>
    <tr><td><code>--org string</code></td><td>Organization ID</td></tr>
    <tr><td><code>--region string</code></td><td>Region ID</td></tr>
    <tr><td><code>-f, --file string</code></td><td>Path to a JSON file</td></tr>
    <tr><td><code>--stdin</code></td><td>Read JSON from standard input</td></tr>
    <tr><td><code>--dry-run</code></td><td>Preview the request payload without persisting</td></tr>
    <tr><td><code>-y, --yes</code></td><td>Automatically confirm creation</td></tr>

    <tr>
      <td><code>--json</code></td>
      <td>Emit the full JSON payload (mutually exclusive with <code>-q</code>)</td>
    </tr>

    <tr>
      <td><code>-q, --query stringArray</code></td>
      <td>jq filter for value extraction (see <a href="/docs/cli/query-output">Query output with <code>-q</code></a>)</td>
    </tr>
  </tbody>
</table>

### Examples

```bash theme={null}
nscale images create --file image.json
nscale images create --stdin < image.json
cat image.json | nscale images create --stdin
```

***

## delete

Delete an existing image.

```bash theme={null}
nscale images delete --id <image-id> [flags]
```

### Flags

| Flag              | Description                                    |
| ----------------- | ---------------------------------------------- |
| `--id string`     | Image ID                                       |
| `--org string`    | Organization ID                                |
| `--region string` | Region ID                                      |
| `--dry-run`       | Preview the request payload without persisting |
| `-y, --yes`       | Automatically confirm deletion                 |

### Example

```bash theme={null}
nscale images delete --id <image-id> --org <org-id> --yes
```

***

## Related

<CardGroup cols={2}>
  <Card title="Custom Images (Console)" icon="browser" href="/docs/storage/custom-images">
    Upload and use custom OS images via the Console UI.
  </Card>
</CardGroup>
