Reference

CLI reference

dex [--version] [--install-completion] [--show-completion] COMMAND [ARGS]...
CommandPurposeNeeds a checkout?
sourcesmapped sources and evaluated candidatesno
learnfetch sources, admit items, rewrite the troveyes
validateCI gate: manifests, licences, hashes, catalog, noticesno (notices check only in a checkout)
listlist itemsno
searchsearch items, and filter by typed facetsno
showone item’s provenance, licence and filesno
installinstall into Claude Code, Copilot or a directoryno
facets list / showthe taxonomy, value counts, one item’s facets and evidenceno
facets build / docrebuild facets.json / regenerate the taxonomy referenceyes
licenseclassify a licence file or directoryno
noticesregenerate THIRD_PARTY_NOTICES.mdyes
catalogrebuild catalog.json from dex.json filesyes
ananke syncregister items into an Ananke registryno
docs exportwrite Astro content for the siteyes

“Needs a checkout” means the command must run inside a Dex-Trove repository (a directory with sources.yaml and src/dex_trove/). Read-only commands work from the installed wheel.

REF arguments accept namespace/name, a unique bare name, or kind:namespace/name.


dex sources

dex sources [--json]

Prints the sources in sources.yaml (id, adapter, repo or local path, enabled, first-party) and the evaluated candidates. --json dumps both lists.

dex learn

dex learn [SOURCE_IDS]... [--dry-run] [--prefer-local] [--no-refresh]

Fetches each source and runs the learn pipeline. With no arguments, all enabled sources are learned; named sources are learned even if disabled.

OptionEffect
--dry-runreport counts and exclusion reasons; write nothing
--prefer-localuse a source’s local: path when present instead of cloning repo:
--no-refreshreuse cached clones without git fetch

Per source it prints <id> @ <commit>: N admitted, M excluded {reason: count}, K removed. It then rewrites trove/catalog.json, trove/EXCLUDED.json, trove/trove.lock.json and THIRD_PARTY_NOTICES.md. A source that fails to fetch is reported (skip <id>: …) and its existing items are left untouched.

Exit codes: 0 success, 2 unknown source id or not in a checkout.

dex validate

dex validate [--since GIT_REF]

Checks the trove in use (the checkout’s trove/, or the installed package):

  • catalog.json lists exactly the items on disk
  • every item name is valid and its licence verdict is allow
  • every listed file exists, and the recomputed content hash matches content_hash (no drift)
  • ananke.yaml exists and agrees with dex.json (kind, version)
  • if ananke-plexus is importable, every manifest validates against Ananke’s strict ArtifactManifest model
  • in a checkout, THIRD_PARTY_NOTICES.md is current
  • the release ledger is consistent: every item’s current digest is its latest release, versions are unique and in order, fork parents and replacements exist
  • relations.json matches a rebuild, and curated relations point at real items with evidence (no requires cycles)
  • with --since REF: no release in the ledger at REF was edited or deleted (CI uses --since HEAD~1)

Prints ✓ N items valid, or one ✗ line per problem and exits 1.

dex list

dex list [--kind/-k KIND] [--source/-s NAMESPACE] [--json]

Lists items as a table (kind, id, licence, description) or JSON (kind, id, version, title).

dex search [QUERY...] [--kind/-k KIND] [--source/-s NAMESPACE] [--limit/-n 25] [--rank words|semantic] [--json]
           [--task/-t T] [--methodology/-m M] [--phase/-p P] [--role/-r R] [--domain D] [--language L]
           [--framework F] [--platform P] [--needs N] [--maturity M] [--not FACET=VALUE] [--strict] [--explain] [--cursor N]

Words only: every word must match the name, title, tags or description. Results are ranked with weights name 5, title 3, tags 2, description 1. Output and --json are unchanged from earlier releases. --rank semantic instead ranks partial matches with BM25 plus taxonomy expansion, for natural questions (see Finding capabilities).

With facet options (each repeatable): any value within a facet matches, and all facets must match. --strict requires every value within a facet, and --not excludes. Items without a facet never match it. Values accept aliases; an unknown value exits 2 and lists the valid ones. Results are ranked by how fully they match (see Finding capabilities). --explain adds why each matched, and --cursor continues from the next page offset. --json returns query, total, next_cursor, results (each with facets, score and, with --explain, why), facet_counts and, for an empty result, relaxations.

dex show

dex show REF [--json]

Title, kind, id and version, description, source with pinned upstream URL, licence with evidence, inspirations, plugin members, files and the local path. --json prints the full dex.json. Exit 2 if the ref is unknown or ambiguous.

dex install

dex install REF... [--target/-t claude|copilot|dir] [--scope user|project] [--path DIR] [--allow-exec] [--force]
dex install --locked [--lock-file dex.lock.json] [--target …] [--scope …] [--path …] [--allow-exec] [--force]
OptionDefaultMeaning
--targetclaudeclaude (Claude Code), copilot (.github/), dir (full item copy)
--scopeuserfor claude: user → ~/.claude, project → ./.claude
--path—base directory override; required for --target dir
--allow-execoffallow installing hooks (they run code automatically)
--forceoffreplace a destination Dex didn’t install, or that was edited since (a symlink is replaced, never followed)
--lockedoffinstall exactly the versions in the lock; a pin that isn’t current is fetched from its upstream commit and its digest checked
--lock-filedex.lock.jsonthe lock to read with --locked

Prints ✓ kind:id → destination for each installed item, with adapted: … lines for agents translated for Claude Code, and – kind:id: reason for skipped ones: an unsupported kind for the target, a hook without --allow-exec, or an existing destination Dex won’t replace. Plugins expand to their members. See Installing items. Exit 1 if nothing was installed, 2 on an unknown ref or target.

dex lock

dex lock REF[@VERSION|@sha256:DIGEST]... [--lock-file dex.lock.json]

Pins each item to an exact version and digest, adding to or updating the lock. Without a version, the newest stable, non-yanked release. A plugin pins each member. Exit 2 on an unknown ref or version.

dex verify-lock

dex verify-lock [--lock-file dex.lock.json] [--fetch]

Checks every pin against the release ledger: the version exists with the same digest. Yanked or deprecated pins print a warning. --fetch also fetches each pin that isn’t the current release from Git and verifies its bytes. Exit 1 on any error, 2 if the lock can’t be read.

dex release

dex release list REF [--json]
dex release yank REF@VERSION --reason TEXT
dex release unyank REF@VERSION
dex release deprecate REF[@VERSION] --reason TEXT [--replaced-by REF]
dex release lineage REF [--json]
dex release record

The release ledger: history, yank and deprecation markers, and fork lineage. yank, unyank, deprecate and record change trove/releases.json, so they need a Dex-Trove checkout. record appends releases for changed items and rebuilds relations.json (dex learn does this itself).

dex related REF [--type TYPE] [--json]

Typed relations: requires, complements, alternatives, plugin membership, forks and replacements, each with its origin and evidence.

dex candidate

dex candidate from-template TEMPLATE --name NAME --description TEXT [--version X.Y.Z] [--license SPDX]
                             [--source-url URL] [--out DIR] [--json]
dex candidate check PATH [--visibility public|internal] [--json]
dex candidate review PATH --approve|--reject --reviewer NAME --reason TEXT
dex candidate publish PATH --to SOURCE_ID [--visibility public|internal]

The reviewed candidate gate. check exits 1 when a gate fails. publish exits 1 and lists every failed gate. On success it copies the skill into the source’s local folder; run dex learn SOURCE_ID to release it.

from-template wraps a reviewed project template as a candidate: the files go under template/, SKILL.md says how to use it (placeholders and checks found in it), and provenance.json records the version, licence and each file’s sha256 with a tree digest that has no timestamps. It refuses a template with no allowed licence or with secret-shaped text, before writing anything, and skips version-control, build and environment folders. Its evaluation.json lists the template’s own checks with passed: null, so the candidate fails check until they’re run and recorded. Exit 2 with what to fix.

dex check-installs

dex check-installs [--json]

Installs every item into each tool layout it supports, in a scratch folder, and checks the tool can load it:

  • skill names and description length;
  • agent descriptions, Claude tool names and models;
  • applyTo on instructions;
  • workflow triggers;
  • hook events.

Writes trove/install-checks.json, which item pages show as Checked by Dex. dex learn runs it too. Needs a checkout.

dex overlap

dex overlap [--threshold 0.45] [--kind KIND] [--limit/-n 20] [--json]

Groups items of the same kind, task and context whose titles and descriptions overlap. Each member is scored on signals Dex can verify (install checks, reviewed facets, runs code, description, licence evidence). A ★ marks a strictly better score. The result is a list of candidates to curate as alternative-to relations.

dex ananke handoff

dex ananke handoff [--lock-file dex.lock.json]

Prints a [tool.ananke] block that pins the lock’s skills and agents to their exact versions. Resolve-only: nothing is installed, activated or run. Exit 1 if the lock doesn’t match the release ledger.

dex capabilities

dex capabilities [CAPABILITY] [--status available|partial|missing] [--json]

What the trove offers for each planned capability, with licences read from the catalog, and what’s still missing. The same data as the capability matrix.

dex docs reuse

dex docs reuse

Regenerates docs/reference/reuse-matrix.md from the trove. Needs a checkout; a test fails when the page is stale.

dex facets

dex facets list [FACET] [--json]     # every facet and value: definition, aliases, item count
dex facets show REF [--json]         # one item's facets, each value's source and evidence, review status
dex facets build                     # rebuild trove/facets.json (checkout only, no network); dex learn does this too
dex facets doc                       # regenerate docs/reference/taxonomy.md (checkout only)

The taxonomy is versioned data in src/dex_trove/taxonomy/ (ontology.yaml, plus reviewed curation.yaml). See Finding capabilities and the taxonomy reference.

dex mcp

Local MCP servers (see the guide).

CommandWhat it does
dex mcp list [--json]The servers, their tools, which tools act on external systems, and the tracker tasks they cover
dex mcp serve NAME [--root DIR] [--allow-actions] [--evidence DIR]Runs a server on stdin/stdout for an MCP client
dex mcp call NAME TOOL [--args JSON] [--root DIR] [--allow-actions]Calls one tool once and prints its JSON result; exit 2 with the message on a refusal
dex mcp config NAME [--client claude-code|vscode|codex|json]Prints how to register the server, pinned to this version; changes nothing

dex license

dex license PATH

Classifies a licence file, or every licence file directly in a directory: PATH: SPDX → verdict (evidence). Exit 1 if no licence files are found.

dex notices

dex notices

Regenerates THIRD_PARTY_NOTICES.md from the trove. dex learn does this automatically.

dex catalog

dex catalog

Rebuilds catalog.json from the dex.json files on disk and refreshes EXCLUDED.json and the lock without learning. Use it after resolving a merge conflict in trove/.

dex ananke sync

dex ananke sync [--project DIR] [--kind/-k KIND]... [--source/-s NS]... [--name/-n NAME]...
                [--dry-run] [--include-flagged] [--ananke-bin PATH]

Runs ananke registry learn over the selected items. Filters are repeatable and combined with AND across option types. --name accepts name or ns/name.

OptionMeaning
--projectAnanke project directory (default .); it must have run ananke registry init
--dry-runpasses --dry-run to Ananke
--include-flaggedalso offer items with secret_flags (Ananke’s [secrets] policy then decides)
--ananke-binpath to the ananke executable if it isn’t on PATH

Prints Ananke’s output, then ✓ N trove items offered to Ananke. Exit 2 if ananke isn’t found or nothing matches; otherwise Ananke’s exit code.

dex docs export

dex docs export [--out website/src]

Writes content/items/*.md and data/search.json + data/trove.json under --out. See Docs site.

Exit codes

CodeMeaning
0success
1validation problems / no licence files found
2usage error: unknown ref, source or target; not in a checkout; ananke not found
otherpassed through from ananke (dex ananke sync)

Edit this page on GitHub ↗