@stephendolan/helpscout-cli
v2.6.0
Published
A command-line interface for Help Scout
Downloads
1,450
Maintainers
Readme
Help Scout CLI
A CLI for Help Scout's Mailbox API 2.0. JSON output by default for LLM and automation workflows.
Installation
bun install -g @stephendolan/helpscout-cli
# Or run without installing
bunx @stephendolan/helpscout-cli conversations listLinux: Requires libsecret for keychain storage (apt install libsecret-1-dev), or use environment variables.
Authentication
Create an OAuth app at Help Scout > Your Profile > My Apps.
helpscout auth login --app-id YOUR_APP_ID --app-secret YOUR_APP_SECRET
helpscout auth status
helpscout auth logout
helpscout auth refresh # Refresh access tokenOr use environment variables: HELPSCOUT_APP_ID, HELPSCOUT_APP_SECRET, HELPSCOUT_MAILBOX_ID
Commands
Conversations
helpscout conversations list
helpscout conversations list --status active --mailbox 123 --tag urgent
helpscout conversations list -q 'status:open customer:[email protected]'
helpscout conversations list --summary
helpscout conversations view 456
helpscout conversations threads 456
helpscout conversations threads 456 --type customer # Filter by type
helpscout conversations threads 456 --html # HTML output
helpscout conversations threads 456 --include-notes
helpscout conversations reply 456 --text "Thanks for reaching out!"
helpscout conversations note 456 --text "Internal note"
helpscout conversations add-tag 456 urgent
helpscout conversations remove-tag 456 urgent
helpscout conversations delete 456Customers
helpscout customers list
helpscout customers list --first-name John
helpscout customers view 789
helpscout customers create --first-name John --last-name Doe --email [email protected]
helpscout customers update 789 --organization "Acme Corp"
helpscout customers delete 789Tags, Workflows, Mailboxes
helpscout tags list
helpscout tags view 123
helpscout workflows list
helpscout workflows list --type manual
helpscout workflows run 123 --conversations 456,789
helpscout workflows activate 123
helpscout workflows deactivate 123
helpscout mailboxes list
helpscout mailboxes view 123
helpscout mailboxes set-default 123
helpscout mailboxes get-default
helpscout mailboxes clear-defaultMCP Server
Run as an MCP server for AI agent integration:
helpscout mcpOptions
| Flag | Description |
|------|-------------|
| -c, --compact | Minified JSON output |
| -p, --plain | Strip HTML from body fields |
| -f, --fields <fields> | Include only specified fields |
| --include-metadata | Include _links and _embedded |
Examples
helpscout conversations list | jq '.conversations[].subject'
helpscout conversations list --fields id,subjectErrors: {"error": {"name": "...", "detail": "...", "statusCode": 400}}
References
License
MIT
