Skip to content
Apothem
CLI reference

uninstall

CLI reference for the apothem uninstall command.

Remove a harness adapter configuration.

Synopsis

apothem uninstall --harness NAME|all [--yes] [--project PATH]
                   [--quiet|-q] [--verbose|-v]
                   [--format plain|json] [--json] [--no-color]

Removes adapter-managed harness targets. Prompts for confirmation unless --yes is supplied. When no prompt is possible — --format json (prompt text would corrupt the single JSON document) or a non-interactive shell (no TTY) — the command refuses up front with a structured uninstall.confirmation_required error (exit 1) unless --yes is supplied. If a selected harness is not installed, the command succeeds (exit 0) with a "nothing to remove" notice.

A --harness all removal is deliberately exhaustive: it covers every registered harness, including any the profile's exclude_harnesses skips during install — cleanup reaches state a previously broader install may have left behind. Harnesses that were never installed report "nothing to remove".

The continuous-form alias apothem uninstalling resolves to the same handler.

Options

OptionDescription
--harness NAMEHarness adapter to remove, or all for the registry-wide set (required).
--yesSkip confirmation prompt.
--project PATHProject root for project-scope harnesses.
--quiet, -qSuppress informational output; only errors are emitted.
--verbose, -vEmit additional diagnostic output.
--format plain|jsonOutput format (default: plain).
--jsonShorthand for --format json.
--no-colorDisable ANSI color codes in output.
-h, --helpShow help and exit.

JSON output

When the adapter is installed and successfully removed:

{"action": "uninstalled", "harness": "claude-code", "output_path": "..."}

When the adapter was not installed:

{"status": "not_installed", "harness": "claude-code"}

Examples

apothem uninstall --harness claude-code
apothem uninstall --harness claude-code --yes
apothem uninstall --harness cursor --project . --yes
apothem uninstall --harness all --project . --yes
apothem Uninstalling --harness cursor --project . --yes   # continuous-form alias

Exit codes

CodeMeaning
0Adapter uninstalled, or was not installed
1Harness not found, confirmation declined or unavailable (non-interactive or JSON mode without --yes), or every removal failed
2Partial removal — at least one harness was removed before a failure

See also

  • apothem uninstalling — continuous-form alias for this command (documented here; the CLI accepts both forms)
  • apothem install — install a harness configuration
  • apothem verify — confirm installation status

On this page