Go CLI tool (cupi) for Cisco Unity Connection (CUC). Wraps:
- CUPI — REST/JSON provisioning (
/vmrest/) — users, distlists, handlers, COS, templates, schedules - PAWS — Platform admin SOAP (
/platform-services/services/) — cluster status, DRS backup - AST — System health XML (
/ast/Astisapi.dll) — disk, heartbeat, alerts, perfmon - DIME — Log collection (
/logcollectionservice/services/DimeGetFileService) — log file downloads
- Config:
~/.cupi/config.json(servers map, notclusters) - Keyring service:
cupi - Module:
github.com/Cloverhound/cupi - Binary:
cupi - Env vars:
CUPI_DEBUG,CUPI_DRY_RUN
cupi— CUPI REST (default, analogous toaxlin cucm-cli)application— Application-level APIsplatform— OS admin for PAWS
go build -o cupi . # Build (Version reports "dev")
./cupi --help # Verify
./cupi version # Print version
./cupi upgrade --check # Check for newer release on GitHub
bash install-local.sh # Install binary (embeds git tag as version) + skill
go run ./tools/scraper/ # Run API doc scraper
go test ./tests/ -run TestCLI # Run CLI validation tests (no live server needed)
# Build with explicit version:
go build -ldflags "-X github.com/Cloverhound/cupi-cli/cmd.Version=v1.2.3" -o cupi .internal/appconfig/—ServerConfig(notClusterConfig),defaultServer,serversinternal/auth/—CredTypeCUPI="cupi", keyring service"cupi"internal/client/rest.go— JSON REST:Request/Get/Post/Put/Deleteinternal/client/ast.go— VOS-common AST only (disk, tftp, heartbeat, alerts, perfmon)internal/client/paws.go— PAWS SOAP (identical to cucm-cli, CUPI_DEBUG)internal/client/dime.go— DIME log download (identical to cucm-cli, CUPI_DEBUG)tools/scraper/— Phase 1 HTML scraper for CUPI API docs