Command-line interface for Huntress cybersecurity platform API. Built with TypeScript and Commander.js, providing a simple and powerful way to interact with Huntress from the terminal.
- JSON output by default with optional table formatting
- Full support for Huntress API resources
- Environment variable configuration
- Type-safe with TypeScript
- Pagination support
- Filtering and sorting capabilities
- Comprehensive incident and escalation management
- User membership management
- Billing and reporting access
npm install -g @wyre-technology/huntress-cligit clone https://github.com/wyre-technology/huntress-cli.git
cd huntress-cli
npm install
npm run build
npm linkThe CLI requires authentication via environment variables:
| Variable | Description | Required |
|---|---|---|
HUNTRESS_API_KEY |
Your Huntress API key | Yes |
HUNTRESS_API_SECRET |
Your Huntress API secret | Yes |
export HUNTRESS_API_KEY="your-api-key-here"
export HUNTRESS_API_SECRET="your-api-secret-here"For persistent configuration, add these to your shell profile (~/.bashrc, ~/.zshrc, etc.).
huntress <resource> <action> [options]All commands support two output formats:
--format json(default): Machine-readable JSON output--format table: Human-readable table format
Get account information:
# Get account details
huntress accounts get
huntress accounts get --format table
# Get current actor information
huntress accounts actorManage endpoint agents:
# List all agents
huntress agents list
huntress agents list --format table
# Filter agents
huntress agents list --organization-id 100
huntress agents list --platform windows
huntress agents list --limit 50
# Get specific agent
huntress agent get 12345Manage organizations:
# List organizations
huntress organizations list
huntress org list --format table
huntress org list --limit 100
# Get specific organization
huntress org get 100
# Create organization
huntress org create --name "Acme Corp" --key "acme-corp"
# Update organization
huntress org update 100 --name "Acme Corporation"
huntress org update 100 --report-recipients "admin@acme.com,security@acme.com"
# Delete organization
huntress org delete 100Manage incident reports and escalations:
# List incident reports
huntress incidents list
huntress incidents list --format table
huntress incidents list --status open --severity high
huntress incidents list --organization-id 100
huntress incidents list --platform windows
# Get incident report
huntress incident get 54321
# Resolve incident
huntress incident resolve 54321
# List remediations for an incident
huntress incident remediations 54321
huntress incident remediations 54321 --format table
# Get specific remediation
huntress incident remediation-get 54321 98765
# Bulk approve all remediations
huntress incident bulk-approve 54321
# Bulk reject all remediations
huntress incident bulk-reject 54321 --comment "False positive" --useful false
# List escalations
huntress incidents escalations
huntress incidents escalations --format table
# Get escalation
huntress incident escalation-get 11111
# Resolve escalation
huntress incident escalation-resolve 11111 --determination expected --scope organizationAccess billing and summary reports:
# List billing reports
huntress billing reports
huntress billing reports --format table
huntress billing reports --status paid
# Get billing report
huntress billing report-get 12345
# List summary reports
huntress billing summaries
huntress billing summaries --organization-id 100
huntress billing summaries --period-min "2026-01-01" --period-max "2026-12-31"
# Get summary report
huntress billing summary-get 67890Manage security signals:
# List signals
huntress signals list
huntress signals list --format table
huntress signals list --organization-id 100
huntress signals list --types "malware,ransomware"
huntress signals list --statuses "open,investigating"
# Get signal
huntress signal get 99999Manage user memberships:
# List users
huntress users list
huntress users list --format table
huntress users list --organization-id 100
# Get user
huntress user get 12345
# Create user (invite)
huntress user create \
--email "john@example.com" \
--first-name "John" \
--last-name "Doe" \
--permissions "Security Engineer"
# Create user for specific organization
huntress user create \
--email "jane@example.com" \
--first-name "Jane" \
--last-name "Doe" \
--permissions "Admin" \
--organization-id 100
# Update user permissions
huntress user update 12345 --permissions "Read-only"
# Delete user
huntress user delete 12345Available permission levels:
- Admin
- Security Engineer
- User
- Read-only
- Finance
- Marketing
# List all open incidents
huntress incidents list --status open --organization-id 100 --format table
# Get details of a specific incident
huntress incident get 54321
# Review remediations
huntress incident remediations 54321 --format table
# Approve all remediations
huntress incident bulk-approve 54321# List all Windows agents for an organization
huntress agents list --organization-id 100 --platform windows --format table
# Get detailed information about a specific agent
huntress agent get 12345# Export all organizations
huntress org list > organizations.json
# Export all agents for an organization
huntress agents list --organization-id 100 > agents.json
# Export incident reports
huntress incidents list --status open > open-incidents.json# List recent billing reports
huntress billing reports --status paid --format table
# Get detailed billing report
huntress billing report-get 12345 > billing-details.json
# List summary reports for a specific organization
huntress billing summaries --organization-id 100 --format table- Node.js >= 20.0.0
- npm or yarn
git clone https://github.com/wyre-technology/huntress-cli.git
cd huntress-cli
npm installnpm run buildnpm run typechecknpm run lintnpm test
npm run test:watchSee CONTRIBUTING.md for guidelines.
See CHANGELOG.md for release history.
MIT - See LICENSE for details.
- @wyre-technology/node-huntress - Node.js client library (used by this CLI)
- huntress-mcp - Huntress MCP server for Claude
For issues and questions:
- GitHub Issues: https://github.com/wyre-technology/huntress-cli/issues
- Documentation: https://github.com/wyre-technology/huntress-cli
For security issues, please contact security@wyretech.com.