---
title: "HCP CLI"
description: "Bootstrap pack. The CLI is itself a pack: doctor, install, exec, init, search."
canonical: https://harnesscontextprotocol.io/packs/hcp-cli
---

# HCP CLI

> Bootstrap pack. The CLI is itself a pack: doctor, install, exec, init, search.

Class `control` · adapter `composite` · MIT

```bash
hcpx doctor --json
```

## Commands

| Command | Does | Effect |
| --- | --- | --- |
| `hcp.doctor` | Doctor the local HCP home and bootstrap. | Reads |
| `hcp.availability` | Report pack availability (installed/activated/connected/executable). | Reads |
| `hcp.list` | List installed packs. | Reads |
| `hcp.search` | Search the community pack catalog. | Reads |
| `hcp.catalog` | Show catalog entries, or one pack_id. | Reads |
| `hcp.init` | Scaffold a pack directory from a class or gold template. | Writes |
| `hcp.install` | Install a pack directory into $HCP_HOME/packs. | Writes |
| `hcp.uninstall` | Uninstall a pack from the local store. | Writes |
| `hcp.activate` | Activate installed pack(s) on the harness session. | Writes |
| `hcp.deactivate` | Deactivate pack(s) from the harness session. | Writes |
| `hcp.connect` | Connect Binding for an activated pack. | Writes |
| `hcp.exec` | Execute a Verb on an activated pack. | Writes |
| `hcp.lint` | Lint a pack directory before install. | Reads |
| `hcp.generate` | Generate native harness surfaces (OpenCode / Cursor / AI-SDK). | Reads |
| `hcp.adopt` | Adopt HCP into a host as one Skill + one bash wrap (agent\|cursor\|opencode\|mcp\|grok). | Writes |
| `hcp.skill` | Print the Skill (HARNESS.md) for an installed pack. | Reads |
| `hcp.share` | Print a community catalog row for a pack directory or GitHub ref. | Reads |
| `hcp.mcp` | Stdio MCP export: one tool named hcp wrapping bash hcp. | Reads |

JSON: https://harnesscontextprotocol.io/api/v1/packs/hcp-cli

## Sitemap

- [Documentation](https://harnesscontextprotocol.io/docs)
- [Packs](https://harnesscontextprotocol.io/packs)
- [Glossary](https://harnesscontextprotocol.io/docs/reference/glossary)
- [llms.txt](https://harnesscontextprotocol.io/llms.txt)
- [llms-full.txt](https://harnesscontextprotocol.io/llms-full.txt)
- [OpenAPI](https://harnesscontextprotocol.io/openapi.json)
- [MCP](https://harnesscontextprotocol.io/mcp)
