wrap
Use capa wrap when you want capa’s install output in a shadow workspace under ~/.capa/workspaces instead of writing provider files into the project tree.
Synopsis
Section titled “Synopsis”capa wrap [provider] [args...] [--project <dir>] [--print-dir] [--prune]If you omit provider, capa prompts (TTY) for a wrappable provider. Extra [args...] are forwarded to the provider binary.
| Flag | Description |
|---|---|
--project <dir> | Source project directory (default: current working directory) |
--print-dir | Print the workspace path before launching |
--prune | Remove wrap workspaces under ~/.capa/workspaces and exit |
Behavior
Section titled “Behavior”- Resolves the provider (prompt if omitted).
- Fails fast if the provider launch binary is missing from
PATH. - Prepares a shadow workspace and installs capa-managed artifacts there.
- Launches the provider against that workspace.
capa stop also stops active wrap sessions. See Server lifecycle.
Examples
Section titled “Examples”capa wrapcapa wrap cursorcapa wrap claude-code --print-dircapa wrap cursor --project ../other-appcapa wrap --prune