---
title: Comments CLI reference
description: Manage comments on Honeybadger faults from the command line.
url: https://docs.honeybadger.io/tools/cli/comments/
---

The `comments` command lets you manage comments on faults.

All comments commands require both `--project-id` and `--fault-id`.

## List comments

```shell
hb comments list --project-id 12345 --fault-id 67890
```

**Required flags:**

* `--project-id` — Project ID
* `--fault-id` — Fault ID

**Optional flags:**

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

## Get a comment

```shell
hb comments get --project-id 12345 --fault-id 67890 --id 11111
```

**Required flags:**

* `--project-id` — Project ID
* `--fault-id` — Fault ID
* `--id` — Comment ID

**Optional flags:**

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

## Create a comment

```shell
hb comments create --project-id 12345 --fault-id 67890 --body "This is a comment"
```

**Required flags:**

* `--project-id` — Project ID
* `--fault-id` — Fault ID
* `--body` — Comment text

**Optional flags:**

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

## Update a comment

```shell
hb comments update --project-id 12345 --fault-id 67890 --id 11111 --body "Updated comment"
```

**Required flags:**

* `--project-id` — Project ID
* `--fault-id` — Fault ID
* `--id` — Comment ID
* `--body` — New comment text

**Optional flags:**

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

## Delete a comment

```shell
hb comments delete --project-id 12345 --fault-id 67890 --id 11111
```

**Required flags:**

* `--project-id` — Project ID
* `--fault-id` — Fault ID
* `--id` — Comment 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/)
