---
title: Integrations CLI reference
description: Manage a Honeybadger project's notification integrations from the command line.
url: https://docs.honeybadger.io/tools/cli/integrations/
---

The `integrations` command lets you manage a project’s notification integrations, such as Slack, webhooks, email, and PagerDuty.

The commands use the [v3 Data API](https://docs.honeybadger.io/api/v3/integrations/list-integrations/). `--cli-input-json` and `--output json` use the v3 JSON documented there. For example, an integration’s settings are in `config`.

All `integrations` commands need a project ID. Pass `--project-id`, or set a default with `HONEYBADGER_PROJECT_ID` or `project_id` in the configuration file.

## List integrations

```shell
hb integrations list --project-id Xk9mZp
```

**Required flags:**

* `--project-id` — Project ID. Required unless you set a default with `HONEYBADGER_PROJECT_ID` or `project_id` in the configuration file.

**Optional flags:**

* `-o, --output` — Output format: `table` or `json` (default: `table`)

## Get integration details

```shell
hb integrations get --project-id Xk9mZp --id Ch9wLp
```

**Required flags:**

* `--project-id` — Project ID. Required unless you set a default with `HONEYBADGER_PROJECT_ID` or `project_id` in the configuration file.
* `--id` — Integration ID

**Optional flags:**

* `-o, --output` — Output format: `text` or `json` (default: `text`)

## Create an integration

```shell
hb integrations create --project-id Xk9mZp --cli-input-json '{
  "type": "WebHook",
  "config": {
    "url": "https://example.com/hook",
    "payload_version": "v3"
  },
  "events": ["occurred", "resolved"]
}'


# Or from a file
hb integrations create --project-id Xk9mZp --cli-input-json file://integration.json
```

`type` picks the integration, and `config` holds its settings. Each type has its own `config` fields, listed in [Integration types](https://docs.honeybadger.io/api/v3/integrations/types/).

OAuth integrations, such as Slack and GitHub, are created unconnected. Connect one in the web UI at the URL the command prints.

**Required flags:**

* `--project-id` — Project ID. Required unless you set a default with `HONEYBADGER_PROJECT_ID` or `project_id` in the configuration file.
* `--cli-input-json` — JSON payload (inline string or `file://path`)

**JSON fields:**

* `type` — Integration type, such as `WebHook`, `Slack`, or `Email` (required)
* `config` — The type’s settings
* `events` — Events to notify on, such as `occurred` and `resolved` (defaults to the type’s default events)
* `active` — Whether the integration sends notifications (default: `true`)

See the [API reference](https://docs.honeybadger.io/api/v3/integrations/create-integration/) for every field.

**Optional flags:**

* `-o, --output` — Output format: `text` or `json` (default: `text`)

## Update an integration

```shell
hb integrations update --project-id Xk9mZp --id Ch9wLp --cli-input-json '{"active": false}'
```

Only the fields you send change. Sending `null` clears a field or resets it to its default, but only on fields the API reference marks as nullable. `config` is merged into the stored settings, so send only the settings you’re changing. You can’t change an integration’s `type`. A successful update also clears `error`, so an active integration that stopped after a failed delivery starts delivering again.

**Required flags:**

* `--project-id` — Project ID. Required unless you set a default with `HONEYBADGER_PROJECT_ID` or `project_id` in the configuration file.
* `--id` — Integration ID
* `--cli-input-json` — JSON payload with fields to update

## Delete an integration

```shell
hb integrations delete --project-id Xk9mZp --id Ch9wLp
```

**Required flags:**

* `--project-id` — Project ID. Required unless you set a default with `HONEYBADGER_PROJECT_ID` or `project_id` in the configuration file.
* `--id` — Integration ID

---

## Try Honeybadger for FREE

Intelligent logging, error tracking, and Just Enough APM™ in one dev-friendly platform. Find and fix problems before users notice.

[Start free trial](https://app.honeybadger.io/users/sign_up)

[See plans and pricing](https://www.honeybadger.io/plans/)
