/deployhq:deployhqfrom 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.
Ships in deployhq. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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 deploys the person's code to places they care about, so the person makes the decisions and the agent does the legwork. In practice that looks like this:
dhq auth login, dhq signup, a password-only server) is done by the person in their own terminal or in the DeployHQ web app.completed.Check first: dhq auth status --json. If it reports a signed-in account, setup can continue.
If not, the first question is "Do you already have a DeployHQ account?"
dhq auth login in a separate terminal window of their own (not through the agent, and not with its ! shortcut, which gives dhq no terminal to prompt in). It prompts for the account name, the login email and an API key, and hides the key as it is typed. When they say they are done, the agent runs dhq auth status --json to confirm.dhq signup in their own terminal (it prompts for the email and password, hiding the password, asks them to accept the Terms of Service, and saves the new credentials). DeployHQ then sends a verification email; the person verifies before anything else will work. Signing up on the website does not sign in the CLI, so after verifying, that person also runs dhq auth login in their own terminal. The agent runs dhq auth status --json afterwards.dhq auth login and dhq signup cannot prompt inside an agent (non-interactive mode), so run there they would need the key or password on the command line. That is why the person runs them.
Other ways credentials are picked up (checked in this order):
DEPLOYHQ_ACCOUNT + DEPLOYHQ_EMAIL + DEPLOYHQ_API_KEY~/.deployhq/config.toml or .deployhq.toml in project directorydhq auth login / dhq signupdhq auth status --json checks the credentials with DeployHQ. Its status
must be authenticated before you continue; email_verification_required means the
person has to open the verification link DeployHQ emailed them (every API
request is refused until then). The API key is under Settings → Security → API
Credentials in DeployHQ. See auth-setup.md.
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 commandsstatus == "completed" via dhq deployments show <id> --json=statusUse --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.
dhq hello, dhq init and dhq configure are interactive wizards: inside an agent they refuse to run. The agent uses the individual commands instead (dhq projects create, dhq repos create, dhq servers create, dhq config set). dhq auth login and dhq signup only work non-interactively when the secret is passed as a flag, so the person runs them in their own terminal (see Authentication).
| Group | Description | Reference |
|---|---|---|
| launch | All-in-one setup for DeployHQ Static Hosting or a Managed VPS (an option when the person picks DeployHQ hosting) | launch.md |
| 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 |
Small steps, each one something the person can approve on its own:
dhq auth status --json. If not signed in, follow Authentication above (ask whether they have an account; they sign in or sign up in their own terminal).dhq projects list --json, and check for a .deployhq.toml in the folder. If a matching project exists, ask whether to reuse it rather than creating a second one.dhq projects create --name "<name>" --json, then dhq config set project <permalink> so later sessions find it.dhq repos create -p <project> --scm-type git --url <repo-url> --json. See repos.md for the access key a private repository needs.dhq projects show <project> --json=public_key). Installing that key on the server changes who can log in to it, so the agent shows the key and asks before adding it, or the person adds it themselves. Then dhq servers create ... (see servers.md). If the server only accepts a password, the person adds it in the DeployHQ web app so the password never passes through the chat.dhq beta enroll --protocol static_hosting (needs an account admin) and dhq servers create -p <project> --protocol-type static_hosting --subdomain <name> ..., or a managed_vps server. Check with the person before each.git fetch, then git ls-tree -r --name-only origin/<branch>), and exclude what must not be published, such as deploy scripts or local config: dhq excluded-files create -p <project> --path <path> (all servers unless --server).dhq deploy -p <project> -s <server> --wait --json, which waits for the deployment to finish (a new one may start as queued)."status": "completed". A non-zero exit means the command failed: if a deployment was created, its status says how it ended; otherwise read the error. (dhq deployments watch <id> -p <project> is a live view for a person following along in their own terminal, not a step for the agent.)dhq launch does steps 4 to 9 for DeployHQ hosting in a single command. It is an option when the person has chosen DeployHQ hosting and wants it done in one go, not the default; see launch.md. It deploys straight away, so files that must not be published are excluded first: create the project (dhq projects create), add the exclusions, then run dhq launch --project <permalink>.
dhq projects list --json — find project permalinkdhq servers list -p <project> --json — find server identifierdhq deploy -p <project> -s <server> --wait --json — create the deployment (check with the person first) and wait for its final status"status": "completed" (a non-zero exit means the command failed: if a deployment was created, its status says how it ended; otherwise read the error)dhq 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 runningSame steps as "Set up DeployHQ for this project" above, checking with the person before each one:
dhq projects create --name "My App" --json — create project (refuses if one with that name exists; saves it to .deployhq.toml here, only inside a git repository)dhq repos create -p <project> --scm-type git --url <repo-url> --json — connect repo
(SSH URL such as [email protected]:...: add the project's public_key to the repo as a deploy key FIRST, or the connect is rejected — see references/repos.md)dhq projects apply-suggestions -p <project> --json — add DeployHQ's suggested build commands and exclusionsdhq servers create -p <project> --name Production --protocol-type ssh --hostname <host> --username <user> --use-ssh-keys --json — add server with SSH key authentication (a password-only server is something the person adds themselves). DeployHQ's public key must be on the server; --install-key installs it using the SSH access of the machine dhq runs on (the person's), so ask the person firstdhq deploy -p <project> --wait --json — first deployment, after the person says go; report success only when the JSON shows "status": "completed"dhq 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> --path "node_modules" — add exclusion (all servers unless --server)dhq build-commands create -p <project> --description "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 (or url instead of cmd for a step done in the browser, such as adding a payment method); 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, requires_confirmation (ask the person before running), safe_for_automation (deterministic in non-interactive mode and fine to run without a person watching; false for commands that print secrets), 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 commit--wait, dhq deploy returns as soon as the deployment is queued — that is not success. Use --wait (blocks in every output mode; exits non-zero on failure or --timeout) and confirm the final status is completed before reporting the deploy as done (see deployments.md)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)dhq servers create / dhq servers update configure deployment behaviour with --branch (preferred branch), --auto-deploy (DeployHQ's native auto-deployment), --atomic, --atomic-strategy and --atomic-retention. On update, only flags you explicitly pass are sent — omitted flags never disturb existing settings--atomic must be set before the server's first deployment. The backend refuses to change it once any deployment exists ("cannot be changed after a deployment has been made to this server") and there is no override — the only remedy is a new server. Set it at create time; check dhq deployments list -p <project> --json before ever putting --atomic on an update--atomic fails silently on accounts without atomic deployments enabled: the fields are stripped server-side and the request still returns 2xx with atomic off. A zero exit code does not prove it applied — read it back with dhq servers show <id> -p <project> --json=atomic,atomic_strategy,atomic_retentiondhq launch and let the person choose (see launch.md)references/auth-setup.md (opens in a new tab)references/configuration.md (opens in a new tab)references/deployments.md (opens in a new tab)references/global-resources.md (opens in a new tab)references/launch.md (opens in a new tab)references/operations.md (opens in a new tab)references/projects.md (opens in a new tab)references/repos.md (opens in a new tab)references/servers.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: skills.0: Invalid string: must start with "./"
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.