bloodhound-cli
v1.1.3
Published
CLI wrapper for @stores.com/bloodhound shipping carrier tracking APIs
Maintainers
Readme
bloodhound-cli
Agent-friendly CLI wrapper for @stores.com/bloodhound to guess carriers, track shipments, and manage provider credentials.
Install
npm install -g bloodhound-cliRun it with:
bloodhound --helpCommand Model
bloodhound <command> [subcommand] [args] [options]Core commands:
track <tracking-number>: track package and return normalized dataguess <tracking-number>: infer carrier from tracking numbercarriers list: show supported carriers/providersconfig requirements <provider>: show required credential fields for a providerconfig set/get/delete/list: CRUD provider credential settings
Shorthand aliases are also supported:
set/get/delete/list/requirementsmap directly toconfigsubcommands- Example:
bloodhound set upsreturns required fields when missing
Output and Error Modes
- Default output is JSON (
--output json) - Human-readable output is available with
--output text - Errors are always explicit and include:
- human-readable message
- stable error code
- optional stack trace with
--stack
Examples:
# Configure UPS credentials
bloodhound config set ups --client-id "$UPS_CLIENT_ID" --client-secret "$UPS_CLIENT_SECRET"
# Show required fields for a provider
bloodhound config requirements usps
# Configure USPS credentials
bloodhound config set usps --consumer-key "$USPS_CONSUMER_KEY" --consumer-secret "$USPS_CONSUMER_SECRET"
# Track with automatic carrier detection
bloodhound track 1Z999AA10123456784
# Track with explicit carrier and text output
bloodhound track 1Z999AA10123456784 --carrier UPS --output text
# Guess carrier
bloodhound guess 9400110200881234567890Configuration
Configuration is stored in:
- All platforms:
~/.config/bloodhound/bloodhound.json
Override path with:
export BLOODHOUND_CLI_CONFIG=/path/to/config.jsonDevelopment
npm testVersioning (Changesets)
This repo uses Changesets for release versioning.
# create a changeset for your commit
npm run changeset
# apply pending version bumps locally
npm run version-packagesA git pre-commit hook is installed automatically (npm install) and blocks commits unless a .changeset/*.md file is staged.
