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

# Campaign groups

> Create, list, and update campaign groups.

The `campaign-groups` command manages campaign groups, which are used to organize [campaigns](/docs/cli/campaigns).

## `create`

Create a new campaign group.

```bash theme={"dark"}
loops campaign-groups create --name "Product updates"
```

### Flags

| Flag            | Short | Description                                                                                                |
| --------------- | ----- | ---------------------------------------------------------------------------------------------------------- |
| `--name`        | `-n`  | Campaign group name. Cannot be the reserved name "Unsorted". <Badge color="red" size="sm">Required</Badge> |
| `--description` | `-d`  | Campaign group description                                                                                 |

## `get`

Get a campaign group by ID.

```bash theme={"dark"}
loops campaign-groups get cln0y4p6r003yl70i1j2k3l4m
```

## `list`

List campaign groups.

```bash theme={"dark"}
loops campaign-groups list
```

Pass `--pick` to filter the list interactively with [fzf](https://github.com/junegunn/fzf) and copy the selected campaign group ID to your clipboard. Requires `fzf` to be installed and on your `PATH`.

```bash theme={"dark"}
loops campaign-groups list --pick
```

### Flags

| Flag         | Description                                                                                                            |
| ------------ | ---------------------------------------------------------------------------------------------------------------------- |
| `--pick`     | Interactively pick a campaign group and copy its ID to the clipboard. Requires [fzf](https://github.com/junegunn/fzf). |
| `--per-page` | Results per page (10–50, default 20)                                                                                   |
| `--cursor`   | Pagination cursor for a specific page                                                                                  |

## `update`

Update a campaign group.

```bash theme={"dark"}
loops campaign-groups update cln0y4p6r003yl70i1j2k3l4m --name "Weekly digest"
```

### Flags

| Flag            | Short | Description                                       |
| --------------- | ----- | ------------------------------------------------- |
| `--name`        | `-n`  | New name. Cannot be the reserved name "Unsorted". |
| `--description` | `-d`  | New description                                   |


## Related topics

- [API Introduction](/docs/api-reference/intro.md)
- [Update a campaign group](/docs/api-reference/update-campaign-group.md)
- [Get a campaign group](/docs/api-reference/get-campaign-group.md)
- [Create a campaign group](/docs/api-reference/create-campaign-group.md)
- [List campaign groups](/docs/api-reference/list-campaign-groups.md)
