# inboxjot topics

Manage subscription topics.

## topics list

List topics.

```sh
inboxjot topics list [options]
```

| Option                | Description                                 |
| --------------------- | ------------------------------------------- |
| `-n, --limit <LIMIT>` | Show at most this many rows. Default: `50`. |
| `--all`               | Show every row, one page after another.     |
| `--after <CURSOR>`    | Show the rows after this cursor.            |
| `--before <CURSOR>`   | Show the rows before this cursor.           |

```sh
inboxjot topics list
```

## topics inspect

Show a topic.

```sh
inboxjot topics inspect <TOPIC>
```

| Argument | Description                 |
| -------- | --------------------------- |
| `TOPIC`  | Topic name or ID. Required. |

```sh
inboxjot topics inspect top_123
```

## topics create

Create a topic.

```sh
inboxjot topics create [options]
```

| Option                          | Description                                                                |
| ------------------------------- | -------------------------------------------------------------------------- |
| `--name <NAME>`                 | Topic name, such as "Product updates".                                     |
| `--brand <BRAND>`               | Brand name or ID that owns the topic. Defaults to the default brand.       |
| `--description <DESCRIPTION>`   | Description shown on the preference page.                                  |
| `--default-subscribed <BOOL>`   | Subscribe new contacts until they choose. One of `true`, `false`.          |
| `--visibility <VISIBILITY>`     | Show or hide the topic on the preference page. One of `public`, `private`. |
| `--double-opt-in <BOOL>`        | Ask form sign-ups to confirm by email. One of `true`, `false`.             |
| `--form-enabled <BOOL>`         | Turn the hosted sign-up form on or off. One of `true`, `false`.            |
| `--sender-name <SENDER_NAME>`   | From name for confirmation emails.                                         |
| `--sender-email <SENDER_EMAIL>` | From address for confirmation emails.                                      |
| `--redirect-url <URL>`          | Page to show after someone signs up.                                       |

```sh
inboxjot topics create --name "Product updates" --double-opt-in true
inboxjot topics create --name "Labs news" --brand "Acme Labs"
```

## topics update

Change a topic.

```sh
inboxjot topics update <TOPIC> [options]
```

| Argument | Description                 |
| -------- | --------------------------- |
| `TOPIC`  | Topic name or ID. Required. |

| Option                          | Description                                                                         |
| ------------------------------- | ----------------------------------------------------------------------------------- |
| `--name <NAME>`                 | New topic name.                                                                     |
| `--description <DESCRIPTION>`   | Description shown on the preference page.                                           |
| `--default-subscribed <BOOL>`   | Subscribe new contacts until they choose. One of `true`, `false`.                   |
| `--visibility <VISIBILITY>`     | Show or hide the topic on the preference page. One of `public`, `private`.          |
| `--double-opt-in <BOOL>`        | Ask form sign-ups to confirm by email. One of `true`, `false`.                      |
| `--form-enabled <BOOL>`         | Turn the hosted sign-up form on or off. One of `true`, `false`.                     |
| `--sender-name <SENDER_NAME>`   | From name for confirmation emails.                                                  |
| `--sender-email <SENDER_EMAIL>` | From address for confirmation emails.                                               |
| `--redirect-url <URL>`          | Page to show after someone signs up.                                                |
| `--clear <FIELD>`               | Clear a field. One of `description`, `sender-name`, `sender-email`, `redirect-url`. |

```sh
inboxjot topics update top_123 --visibility private
```

## topics delete

Delete a topic.

```sh
inboxjot topics delete <TOPIC>
```

| Argument | Description                 |
| -------- | --------------------------- |
| `TOPIC`  | Topic name or ID. Required. |

```sh
inboxjot topics delete top_123
```
