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

# bronto widgets

> Manage widgets

Manage widgets

<Tip>
  * **Platform docs:** [docs.bronto.io/Search-and-Visualize/Log-Visualization](https://docs.bronto.io/Search-and-Visualize/Log-Visualization)
  * **API reference:** [docs.bronto.io/api-reference/widgets/retrieve-all-the-widgets](https://docs.bronto.io/api-reference/widgets/retrieve-all-the-widgets)
</Tip>

```sh theme={"dark"}
bronto widgets <command> [flags]
```

#### Subcommands

| Command | Description |
| - | - |
| [`bronto widgets attach-widgets`](/cli/reference/commands/widgets#bronto-widgets-attach-widgets) | Attach widgets to a widget |
| [`bronto widgets create`](/cli/reference/commands/widgets#bronto-widgets-create) | Create a widget |
| [`bronto widgets delete`](/cli/reference/commands/widgets#bronto-widgets-delete) | Delete a widget |
| [`bronto widgets get`](/cli/reference/commands/widgets#bronto-widgets-get) | Get a widget by ID |
| [`bronto widgets list`](/cli/reference/commands/widgets#bronto-widgets-list) | List widgets |
| [`bronto widgets remove-widget`](/cli/reference/commands/widgets#bronto-widgets-remove-widget) | Remove a widget from a widget |
| [`bronto widgets update`](/cli/reference/commands/widgets#bronto-widgets-update) | Update a widget |

Also accepts the [global flags](/cli/reference/commands/global-flags).

## bronto widgets attach-widgets

Attach widgets to a widget

```sh theme={"dark"}
bronto widgets attach-widgets <widget> --widget-ids <id,...> [flags]
```

#### Flags

| Flag | Short | Type | Default | Description |
| - | - | - | - | - |
| `--widget-ids` | | strings | | widget IDs to attach (comma-separated or repeated) |

Also accepts the [global flags](/cli/reference/commands/global-flags).

#### Examples

```sh theme={"dark"}
bronto widgets attach-widgets <widget> --widget-ids <id>,<id>
```

## bronto widgets create

Create a widget

```sh theme={"dark"}
bronto widgets create [flags]
```

#### Flags

| Flag | Short | Type | Default | Description |
| - | - | - | - | - |
| `--field` | `-f` | stringArray | | request body field as key=value; values parse as JSON when possible (repeatable) |
| `--input` | | string | | read the request body from a file, or - for stdin |

Also accepts the [global flags](/cli/reference/commands/global-flags).

#### Examples

```sh theme={"dark"}
bronto widgets create -f name=<name> -f type=<type>
bronto widgets create --input body.json
```

## bronto widgets delete

Delete a widget

```sh theme={"dark"}
bronto widgets delete <id> [flags]
```

#### Flags

| Flag | Short | Type | Default | Description |
| - | - | - | - | - |
| `--yes` | | bool | | skip the confirmation prompt |

Also accepts the [global flags](/cli/reference/commands/global-flags).

#### Examples

```sh theme={"dark"}
bronto widgets delete <id> --yes
```

## bronto widgets get

Get a widget by ID

```sh theme={"dark"}
bronto widgets get <id> [flags]
```

Also accepts the [global flags](/cli/reference/commands/global-flags).

#### Examples

```sh theme={"dark"}
bronto widgets get <id>
```

## bronto widgets list

List widgets

```sh theme={"dark"}
bronto widgets list [flags]
```

Also accepts the [global flags](/cli/reference/commands/global-flags).

#### Examples

```sh theme={"dark"}
bronto widgets list
```

## bronto widgets remove-widget

Remove a widget from a widget

```sh theme={"dark"}
bronto widgets remove-widget <widget> <widget-id> [flags]
```

Also accepts the [global flags](/cli/reference/commands/global-flags).

#### Examples

```sh theme={"dark"}
bronto widgets remove-widget <widget> <widget-id>
```

## bronto widgets update

Update a widget

```sh theme={"dark"}
bronto widgets update <id> [flags]
```

#### Flags

| Flag | Short | Type | Default | Description |
| - | - | - | - | - |
| `--field` | `-f` | stringArray | | request body field as key=value; values parse as JSON when possible (repeatable) |
| `--input` | | string | | read the request body from a file, or - for stdin |

Also accepts the [global flags](/cli/reference/commands/global-flags).

#### Examples

```sh theme={"dark"}
bronto widgets update <id> -f name=<name> -f type=<type>
bronto widgets update <id> --input body.json
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.