From deployhq
Deploy code, manage servers, and automate infrastructure via the DeployHQ CLI (dhq). Use when the user wants to deploy, check deployment status, manage projects/servers, or interact with the DeployHQ platform.
How this skill is triggered — by the user, by Claude, or both
Slash command
/deployhq:deployhqThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
DeployHQ is a deployment automation platform. The `dhq` CLI (binary name: `deployhq`) manages projects, servers, deployments, and infrastructure via the DeployHQ REST API. Designed for both humans and AI agents.
DeployHQ is a deployment automation platform. The dhq CLI (binary name: deployhq) manages projects, servers, deployments, and infrastructure via the DeployHQ REST API. Designed for both humans and AI agents.
Three methods (checked in order):
DEPLOYHQ_ACCOUNT + DEPLOYHQ_EMAIL + DEPLOYHQ_API_KEY~/.deployhq/config.toml or .deployhq.toml in project directorydhq auth loginVerify with: dhq auth status
Critical rule: stdout is ALWAYS data (table or JSON). stderr is ALWAYS human messages.
--json: Force JSON output. Optionally select fields: --json name,status,identifierbreadcrumbs array with suggested next commandsUse --non-interactive to guarantee the CLI never prompts. This mode is auto-enabled when an agent is detected or output is piped.
In non-interactive mode, any ambiguity (e.g. multiple servers, missing required values) fails with a structured error listing available options instead of prompting.
The only commands that cannot run non-interactively are: dhq init, dhq hello, dhq configure (use their flag-based alternatives instead).
| Group | Description | Reference |
|---|---|---|
| projects | Create, list, update, delete projects | projects.md |
| servers | Manage deployment targets (SSH, FTP, S3, etc.) | servers.md |
| deployments | Create, monitor, rollback deployments | deployments.md |
| repos | Repository configuration, branches, commits | repos.md |
| configuration | Env vars, config files, build commands, exclusions, deployment checks, cache files, build languages, known hosts | configuration.md |
| global resources | Global servers, env vars, config files, SSH keys, templates | global-resources.md |
| operations | Activity, status, test-access, doctor | operations.md |
| auth & setup | Authentication, CLI config, agent setup | auth-setup.md |
dhq projects list --json — find project permalinkdhq servers list -p <project> --json — find server identifierdhq deploy -p <project> -s <server> --json — create deploymentdhq deployments watch <id> -p <project> — monitor progressdhq deployments list -p <project> --json — recent deploymentsdhq deployments show <id> -p <project> --json — details + stepsdhq deployments logs <id> -p <project> — read step logsdhq rollback <id> -p <project> --json — rollback if neededdhq deployments abort <id> -p <project> — abort if runningdhq projects create --name "My App" --json — create projectdhq repos create -p <project> --scm-type git --url <repo-url> --json — connect repodhq servers create -p <project> --name Production --protocol-type ssh --hostname <host> --username <user> --json — add serverdhq deploy -p <project> --json — first deploymentdhq env-vars create -p <project> --name KEY --value val — add env vardhq config-files create -p <project> --path .env --body "..." --json — add config filedhq excluded-files create -p <project> --pattern "node_modules" --json — add exclusiondhq build-commands create -p <project> --name "Install" --command "npm install" --json — add build stepdhq deployment-checks create -p <project> --name "Health" --stage post_deploy --check-type http --http-url https://app.example.com/health --http-expected-status 200 --json — gate the deploydhq api GET /projects
dhq api GET /projects/<permalink>/deployments
dhq api POST /projects/<permalink>/deployments --body '{"deployment":{...}}'
--json for machine-readable output when scripting or in agent context--non-interactive to guarantee no prompts (auto-enabled for agents and piped output)breadcrumbs with action and cmd fields; deploy commands also include resource and idretryable, exit_code, and recovery actions when applicabledata array (not an error)dhq commands --json includes per-command agent metadata: interactive, destructive, idempotent, safe_for_automation, resource_typesdhq api covers all 144+ API endpoints not in the command tree-p/--project) accepts permalink or identifier-s/--server) uses fuzzy matching: exact > normalized > substring.deployhq.toml > ~/.deployhq/config.tomlFlexString)dhq deploy auto-fetches latest revision if --revision is omitteddhq deploy is incremental by default — it picks up from the server's last successful deploy. Use --full for a full-branch deploy or --start-revision <sha> to pin a specific start commitdhq deploy --wait blocks until deployment completes (use --timeout to cap)watch uses TUI in TTY mode, append-only in pipesdhq env-vars create prompts for value if --value is omitted (not agent-friendly — always pass --value)Provides behavioral guidelines to reduce common LLM coding mistakes, focusing on simplicity, surgical changes, assumption surfacing, and verifiable success criteria.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
npx claudepluginhub deployhq/deployhq-cli