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

# Color palettes commands - Omni CLI

> Reference for the omni color-palettes command group: create and manage custom chart palettes.

Create and manage [custom chart palettes](/administration/chart-palettes/custom). These commands don't return or change Omni's [built-in palettes](/administration/chart-palettes/omni).

```bash wrap theme={null}
omni color-palettes <command>
```

| Command  | Description                   |
| -------- | ----------------------------- |
| `list`   | List custom color palettes    |
| `create` | Create a custom color palette |
| `get`    | Get a custom color palette    |
| `update` | Update a custom color palette |
| `delete` | Delete a custom color palette |

`create`, `update`, and `delete` require the Manage Config permission.

A `discrete` palette assigns its colors to categories in order. A `continuous` palette blends between its colors, in order, to build a gradient for numeric values. Names must be unique per type within the organization.

```bash wrap theme={null}
# Create a discrete palette for categorical charts
omni color-palettes create --body '{"name":"Brand colors","type":"discrete","colors":["#1f77b4","#ff7f0e","#2ca02c"]}'

# List custom palettes to find a palette's ID
omni color-palettes list

# Replace only the colors; omitted fields keep their values, and charts using the palette pick up the change
omni color-palettes update <id> --body '{"colors":["#0b3d91","#f2a900","#2ca02c"]}'

# View help for delete command, including arguments and flag details
omni color-palettes delete --help
```

When you delete a palette, charts that use it fall back to the organization's default palette. You can't delete the organization's current default palette or change its `type`. [Set a different default](/administration/chart-palettes/default) first.

<Note>
  Every command in this group also accepts the [global flags](/developers/cli/reference/global-flags), including `--token`, `--profile`, `--format`, and `--compact`.
</Note>
