The CLI view
Every command form in the app's CLI view, with its fields, run statuses and exit codes.
The Wizard takes you through the usual steps in order: inventory, export, verify and package. The CLI view puts every command in front of you, with each of its options. Use it to re-run one step, compare versions, rebuild a search index, prune old versions, or reconcile against a platform’s own export.
Opening the view
In the sidebar, under Run, choose CLI.
The commands are listed on the left. A command marked writes changes files on your computer. Choose a command to see its form:
- Each field is labelled with the option it sets, such as
--configor<archiveRoot>, and has a short hint underneath. - Required fields are marked with
*. - Checkboxes turn options on or off.
- Extra flags lets you type the same options as text, for example
--limit 20. A value you set in the form takes priority over one typed here, and options the form doesn’t have are ignored.
Choose Run to start the command. Relative paths are read from your Cartulary folder. For example, --config defaults to cartulary.yaml there, and each connection’s config is kept under .cartulary/connections/.
When a command needs an API token, the app uses the one stored for that connection in Settings → Connections. You never type it into a form.
While a command runs
The run panel shows:
- The command line it ran, starting with
$. - Progress for long commands: the current phase, a count, and a sentence saying what is happening, for example while waiting out a rate limit.
- Controls. An export, or a resumed export, can be paused. Pausing lets requests that are already under way finish first (shown as Pausing), then waits until you choose Resume. Any running command can be cancelled.
- Result, once the command finishes. Some commands have a formatted view, with a Raw JSON tab that shows the command’s output as printed: Version, Doctor, Search, Diff, Export and Resume. Every other command shows its output directly.
- Log, every line the command wrote as it ran.
Only one long-running command can run at a time. Short commands, such as Search or Version, can run alongside it.
Before a command marked writes starts, the app asks you to confirm. The confirmation reminds you that it writes only to the local archive, and that nothing is ever changed in ClickUp or Jira.
When you aren’t looking at a run, the Runs list shows recent runs with their status. Choose one to open it.
Run statuses and exit codes
| Status | Meaning |
|---|---|
| Awaiting confirmation | The command writes, and is waiting for you to confirm. |
| Denied | You declined the confirmation, so the command did not run. |
| Running | In progress. |
| Pausing | A pause was requested, and the export is finishing the requests already under way. |
| Paused | The export has stopped and is waiting for you to resume it. |
| Completed | Finished successfully, with or without warnings. |
| Complete — PARTIAL | The export was written and verified, but some content is known to be missing. The completeness reasons and permission-gaps.json say what is missing. The run itself succeeded. |
| Failed | The command stopped with an error. The panel shows Exited with code N, and the log says why. |
| Cancelled | You cancelled it. |
The code in Exited with code N is one of these:
| Code | Meaning | Typical cause |
|---|---|---|
| 1 | Invalid command or config | A missing or invalid field, a config that fails validation, nothing to resume, no search index, or a Reconcile that found differences. |
| 2 | Auth failure | No token for the connection, a token the platform rejects, or a token that cannot read something in scope. |
| 3 | Source or network failure | Connection failures, timeouts, or retries exhausted. Exports can be resumed. |
| 4 | Partial, with known missing content | Shown as Complete — PARTIAL, a warning. |
| 5 | Verification failure | A hash mismatch, a schema violation, a broken reference or a missing file. |
| 6 | Disk or local I/O failure | The output folder is not writable, the disk is full, or the local database engine failed to load. |
| 7 | Security-policy violation | A token-like setting was found in a config file. Tokens belong only in the keyring. |
| 8 | License required | No license, or one that does not cover this command, site, adapter or version. |
See Troubleshooting for what to do about each.
The commands
Wherever a form asks for <archiveRoot>, give the path to a cartulary, which uses its latest version, or to a single archive folder.
Doctor
Checks this machine without contacting the platform: the runtime, where the connection’s token would come from (never showing it), whether the OS keyring is available, the config, the request pace, whether the output folder is writable, and the local database engine.
| Field | What to enter |
|---|---|
--config |
The config to check. |
--output-dir |
A folder to test for writing. |
Inventory
A dry run. It lists what an export would read, with item counts, and writes nothing to any archive. It reads from the platform, so it needs the connection’s token.
| Field | What to enter |
|---|---|
--config * |
The connection’s config. |
--output |
Also save the report as a JSON file here. |
--all |
Show every container that holds items, including those the config doesn’t select. |
Export (writes)
Exports the connection’s site into a cartulary, writing a new sealed version, and then verifies it. After the first version, an export reads only what changed. Run it again on the same archive to continue an interrupted export. It can be paused.
| Field | What to enter |
|---|---|
<archiveRoot> * |
Where the cartulary is, or should be created. |
--config * |
The connection’s config. |
--concurrency |
Override the config’s number of requests in flight, for this run. |
--allow-partial |
Finish as Completed even if the archive is PARTIAL or FAILED. Without it, those finish as Complete — PARTIAL (exit code 4). |
--set-aside-old |
If the folder holds an archive from an older Cartulary format, rename it to <folder> (format N) and start fresh. Nothing is deleted. |
--retry-gaps |
Fetch only what the latest version could not read, into a new version. |
--full |
Read everything again, including what hasn’t changed since the last version. |
Resume (writes)
Continues an export that has stopped, from its last checkpoint. It fails with code 1 if there is no earlier run to continue. It can be paused.
| Field | What to enter |
|---|---|
<archiveRoot> * |
The archive the earlier export was writing. |
--config * |
The connection’s config. |
--concurrency |
As for Export. |
--allow-partial |
As for Export. |
Verify
Checks an archive against its seal, offline: record schemas, references between records, every file’s SHA-256 hash, and manifest consistency. Writes reports/verification.json. Fails with code 5 on any error-level finding. See Verification.
| Field | What to enter |
|---|---|
<archiveRoot> * |
The archive to verify. |
--online-sample |
Not implemented yet. It is ignored, and the normal offline verification runs. |
Report (writes)
Regenerates manifest.json, the CSV inventories, reports/archive-report.md and the search index from an archive’s records, without contacting the platform. A published version of a cartulary is refused, because its reports were written when it was made. Use Verify to check it instead.
| Field | What to enter |
|---|---|
<archiveRoot> * |
The archive. |
Search
Full-text search of an archive’s search index. Fails with code 1 if the archive has no index. Run Catalog Rebuild first.
| Field | What to enter |
|---|---|
<archiveRoot> * |
The archive. |
<query> * |
What to search for. Put an exact phrase in double quotes. |
--limit |
Maximum number of results. Default: 50. |
The Cartularies view also has search, with filters and highlighted matches.
Diff
Compares two archives, or two versions of one cartulary, and lists each record as added, changed, deleted, restored or removed.
| Field | What to enter |
|---|---|
<beforeRoot> * |
The earlier archive, or a cartulary. |
[afterRoot] |
The later archive. Leave it empty to compare versions of the same cartulary. |
--from |
The earlier version. Default: the one before the latest. |
--to |
The later version. Default: the latest. |
Package (writes)
Writes one version as a single uncompressed, deterministic POSIX tar file. The same contents produce the same bytes on any machine, and the tar file verifies without the rest of the cartulary.
| Field | What to enter |
|---|---|
<archiveRoot> * |
The cartulary or archive. |
<outputPath> * |
Where to write the .tar file. |
--version-id |
Which version to package. Default: the latest. |
--allow-partial |
Package an archive classified PARTIAL or FAILED. Refused without it. |
Prune (writes)
Removes the versions that a retention rule does not keep. The latest version is always kept. Without --apply, it only lists what it would remove. Run it once that way to check, then again with --apply.
| Field | What to enter |
|---|---|
<cartulary> * |
The cartulary. |
--config |
Use this config’s versions.keep setting. |
--keep-last |
Keep the last n versions. |
--keep-daily |
Keep the newest version from each of the last n days that have one. |
--keep-weekly |
The same, by week. |
--keep-monthly |
The same, by month. |
--apply |
Remove them. |
A connection’s Versions panel in Settings → Connections sets the same retention.
Version
Shows the Cartulary version, the build’s git commit, and the runtime and SQLite versions. Include these when you report a problem.
Catalog Rebuild (writes)
Rebuilds an archive’s search index from its records. The index can be deleted and rebuilt at any time.
| Field | What to enter |
|---|---|
<archiveRoot> * |
The archive. |
Reconcile (writes)
Compares an archive’s tasks or issues with the platform’s own CSV export, and reports IDs missing from either side, grouped by likely reason. For a cartulary, it writes its report beside the version and never changes the version itself. Finishes as Completed on a perfect match. Any difference ends as Failed with code 1. The report it writes lists the differences, and so does the Audit page.
| Field | What to enter |
|---|---|
<archiveRoot> * |
The cartulary or archive. |
<nativeCsvPath> * |
The CSV exported from ClickUp or Jira. |
The Audit page has a Run reconciliation button that does the same.
Linear CSV
Writes an archive’s tasks or issues as a CSV for Linear’s importer, plus an ID mapping file. The archive is only read. See Moving to Linear.
| Field | What to enter |
|---|---|
<archiveRoot> * |
The cartulary or archive. |
--out * |
Where to write the CSV. Must be outside the archive. |
--in |
Only items in these containers (comma-separated IDs). |
--include-archived |
Include items archived at the source. |
Plans
Some commands need a license that includes them. Without one, the command fails with code 8.
| Command | Plans |
|---|---|
| Export, Diff, Package, Linear CSV | Solo, Team, Compliance |
| Reconcile | Team, Compliance |
The other commands work without a license.
Tasks on other screens
Some tasks have their own place in the app, outside the CLI view:
| Task | Where |
|---|---|
| Create a connection and its config | Settings → Connections. Add a connection and paste a link from your site. |
| Store or remove an API token | Settings → Connections, on the connection. See Security & privacy. |
| Enter or remove a license, or free a site | Settings → License, or Enter License… in the app menu. |
| Scheduled backups (Compliance plan) | Back up automatically… on a connection. See Scheduled backups. |
| Pause and resume an export | The Pause and Resume buttons on the running export, in the CLI view or the Wizard. |