Skip to content

Comments

Add CLI commands for Data API endpoints#16

Merged
stympy merged 20 commits intomainfrom
add-more-endpoints
Jan 20, 2026
Merged

Add CLI commands for Data API endpoints#16
stympy merged 20 commits intomainfrom
add-more-endpoints

Conversation

@stympy
Copy link
Member

@stympy stympy commented Jan 6, 2026

Add CLI commands for the new Data API endpoints added in honeybadger-io/api-go#1

New Commands

Command Description
accounts Manage accounts, users, and invitations
teams Manage teams, members, and team invitations
uptime Manage uptime sites, outages, and checks
checkins Manage check-ins (cron job monitoring)
comments Manage fault comments
deployments View deployment history
environments Manage project environments
statuspages Manage status pages

Updated Help Output

Commands are now grouped by which API they use:

A command line interface for interacting with Honeybadger.

This tool provides access to two APIs:

  Reporting API - For sending data to Honeybadger (deployments, metrics)
                  Authenticate with --api-key or HONEYBADGER_API_KEY

  Data API      - For reading and managing your Honeybadger data
                  Authenticate with --auth-token or HONEYBADGER_AUTH_TOKEN

Usage:
  hb [command]

Reporting API Commands (use --api-key):
  agent        Start a metrics reporting agent
  deploy       Report a deployment to Honeybadger

Data API Commands (use --auth-token):
  accounts     Manage Honeybadger accounts
  checkins     Manage Honeybadger check-ins
  comments     Manage fault comments
  deployments  View and manage deployments
  environments Manage project environments
  faults       Manage Honeybadger faults
  insights     Query Honeybadger Insights data
  projects     Manage Honeybadger projects
  statuspages  Manage status pages
  teams        Manage Honeybadger teams
  uptime       Manage uptime monitoring

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds comprehensive CLI commands for Honeybadger's Data API endpoints, enabling management of accounts, teams, uptime monitoring, check-ins, comments, deployments, environments, and status pages through the command line interface.

Key Changes:

  • Introduces command grouping to distinguish between Reporting API and Data API commands
  • Adds 8 new command modules with full CRUD operations
  • Updates existing commands to use the new grouping system
  • Includes comprehensive test coverage for new commands

Reviewed changes

Copilot reviewed 20 out of 21 changed files in this pull request and generated no comments.

Show a summary per file
File Description
go.mod, go.sum Updates dependencies including shoenig/go-m1cpu and shoenig/test versions
cmd/root.go Adds command grouping infrastructure for Reporting API vs Data API
cmd/agent.go, cmd/deploy.go Assigns GroupReportingAPI to existing commands
cmd/projects.go, cmd/insights.go, cmd/faults.go Assigns GroupDataAPI to existing commands
cmd/accounts.go Implements account management with users and invitations subcommands
cmd/teams.go Implements team management with members and invitations subcommands
cmd/uptime.go Implements uptime monitoring sites, outages, and checks management
cmd/checkins.go Implements check-in (cron job monitoring) management
cmd/comments.go Implements fault comment management
cmd/deployments.go Implements deployment history viewing and management
cmd/environments.go Implements project environment management
cmd/statuspages.go Implements status page management
cmd/*_test.go Comprehensive unit tests for all new commands
cmd/dataapi_test.go Additional tests for Data API commands

The code is well-structured, follows consistent patterns, and includes appropriate error handling and test coverage. No critical issues were identified.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

@rabidpraxis rabidpraxis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than the test failures from the type mismatches, everything is looking good to me.

@joshuap
Copy link
Member

joshuap commented Jan 12, 2026

Don't forget to update the readme on this.

@stympy stympy merged commit 548e05a into main Jan 20, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants