Skip to content

Comments CLI reference

The comments command lets you manage comments on faults.

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

Terminal window
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)
Terminal window
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)
Terminal window
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)
Terminal window
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)
Terminal window
hb comments delete --project-id 12345 --fault-id 67890 --id 11111

Required flags:

  • --project-id — Project ID
  • --fault-id — Fault ID
  • --id — Comment ID