Reference

Export and data: export, generate-claude-md, pages, delete, augment

Export the documentation or a Structurizr architecture model, regenerate CLAUDE.md, read retired pages, delete a repo's stored index, and see what the augment hook does.

Commands that move the index's data out of .repowise/ or remove it: exports, the managed CLAUDE.md block, retired page records and deleting a repository's stored data. augment is listed here because agents call it, not people.

repowise export

Export the documentation, or the architecture model, to files.

bash
repowise export [PATH] [OPTIONS]
ParameterTypeDefaultDescription
--formatstringmarkdownOutput format: markdown, html, json, structurizr. structurizr writes one Structurizr DSL file describing the architecture in place of a directory of documentation pages.
--output / -ostring.repowise/exportOutput directory. For --format structurizr, a path ending in .dsl names the file itself.
--fullbooleanfalseInclude decisions, dead code, git metadata, and provenance in the JSON export.
--standalonebooleanfalsestructurizr only: emit a complete workspace with default views instead of a model fragment to include from your own workspace.dsl.
--componentsbooleanfalsestructurizr only: include the component level (one box per directory).
--no-externalsbooleanfalsestructurizr only: leave third-party dependencies out of the model.
--forcebooleanfalsestructurizr only: overwrite the output file even if repowise did not write it. --standalone targets workspace.dsl, which may be your own.
bash
repowise export
repowise export --format html -o ./docs/wiki
repowise export --format json --full -o /tmp/backup
repowise export --format structurizr -o architecture.dsl
repowise export --format structurizr --standalone --components -o workspace.dsl

repowise generate-claude-md

Regenerate CLAUDE.md from the index. Your own content outside the repowise markers is never modified; the managed block between them is rewritten. The block is lean by default, and editor_files.sections in config.yaml adds or drops sections; see The editor_files: block.

bash
repowise generate-claude-md [PATH] [OPTIONS]
ParameterTypeDefaultDescription
--outputstring—Write to a custom path. Default: .claude/CLAUDE.md
--stdoutbooleanfalsePrint to stdout instead of writing a file.
--workspace / -wbooleanauto-detectForce workspace mode: a workspace-level CLAUDE.md at the workspace root with cross-repo contracts, co-changes and per-repo summaries.
--no-workspacebooleanfalseForce single-repo mode from a workspace root.
--verbose / -vbooleanfalseShow debug logs from the pipeline.
bash
repowise generate-claude-md
repowise generate-claude-md --workspace
repowise generate-claude-md --stdout > preview.md

repowise pages retired

List the documentation pages a rebuild retired, or read one without restoring it to live retrieval. Retired pages keep their body and history.

bash
repowise pages retired [--path DIR] [--page-id ID] [--archive-id ID] [--limit N] [--offset N] [--json]
ParameterTypeDefaultDescription
--pathstring—Repository directory. Defaults to the current directory.
--page-idstring—Read this old page's complete body and history.
--archive-idstring—Select an exact retirement of --page-id.
--limitnumber100Rows to list, 1 to 5000.
--offsetnumber0Rows to skip.
--jsonbooleanfalseEmit machine-readable records.

repowise delete

Delete a repository's stored index and generated data (not the source files). Interactive picker when REPO_ID is omitted.

bash
repowise delete [REPO_ID] [OPTIONS]
ParameterTypeDefaultDescription
--path / -pstring—Path to the repository directory.
--force / -fbooleanfalseSkip the confirmation prompt.
bash
repowise delete                     # pick from a list
repowise delete abc123def456        # delete by repo id
repowise delete --path ../backend --force
Note

This only removes what's in .repowise/wiki.db (pages, FTS index) for the chosen repo. For a full cleanup of everything repowise has written for a repo, including agent wiring and machine-wide state, see repowise uninstall.

repowise augment

The agent hook entry point. It runs as a Claude Code PreToolUse / PostToolUse hook (and as the Codex and Cursor hooks) to enrich Grep and Glob calls with related files, top symbols, importers and dependencies, and to note when a commit left the documentation stale.

bash
repowise augment [--client codex|cursor] [--coverage-only] [-v]
FlagWhat it does
--client codex|cursorHook client marker; the Codex and Cursor hooks pass it
--coverage-onlyRun only the coverage re-ingest for shell tools (the repo-local hook entry)
-v, --verboseShow debug logs from the hook pipeline
Warning

Do not run augment by hand. repowise init and repowise agents refresh wire it into each agent's hook config.

Next

Hosted

Indexed on every push, with nothing to install.

Start free
Was this page helpful?
Report a problem with this pageUpdated