> ## 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.

# Campaigns

> Create, list, and update draft campaigns.

<Warning>
  Content API endpoints are currently in an open alpha and are subject to
  change.
</Warning>

The `campaigns` command lets you manage [campaigns](/api-reference/create-campaign) in your Loops account.

## `create`

Create a new draft campaign. This also creates an empty email message — use [`email-messages update`](/cli/email-messages#update) to set its subject, sender, preview text, and LMX content.

```bash theme={"dark"}
loops campaigns create --name "March product update"
```

### Flags

| Flag     | Short | Description                                                 |
| -------- | ----- | ----------------------------------------------------------- |
| `--name` | `-n`  | Campaign name <Badge color="red" size="sm">Required</Badge> |

## `get`

Get a campaign by ID.

```bash theme={"dark"}
loops campaigns get clx1234abc
```

## `list`

List campaigns.

```bash theme={"dark"}
loops campaigns list
```

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

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

### Flags

| Flag         | Description                                                                                                      |
| ------------ | ---------------------------------------------------------------------------------------------------------------- |
| `--pick`     | Interactively pick a campaign 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 draft campaign.

```bash theme={"dark"}
loops campaigns update clx1234abc --name "April product update"
```

### Flags

| Flag     | Short | Description                                                 |
| -------- | ----- | ----------------------------------------------------------- |
| `--name` | `-n`  | Campaign name <Badge color="red" size="sm">Required</Badge> |
