Building a CLI for Humans and AI Agents
go
dev.to
Most CLIs are built for humans. Some are built for scripts. We built one for both — and for AI agents too. DeployHQ CLI (dhq) is a Go command-line tool for the DeployHQ deployment platform. It manages projects, servers, deployments, and releases. But what makes it different is that it was designed from day one to work equally well when a human is typing, when a shell script is piping, or when an AI agent is orchestrating. Here's what that looks like in practice. The Output Contract