Skip to main content

Reference for the writersproof-cli command-line tool: commands, flags, and exit codes.

CLI Reference

The command line tool is writersproof-cli. This page covers the commands you’ll use most; the complete, always-current reference is built into the binary:

$ writersproof-cli man

Installation

Install via Homebrew (macOS):

$ brew install writerslogic/tap/writersproof

The CLI is also bundled inside the macOS app at WritersProof.app/Contents/Resources/. The Windows package also includes writersproof-cli.exe. App and CLI share evidence when they run as the same user and select the same data directory.

Verify the install:

$ writersproof-cli --version

To select the CLI from your installed Windows package, run these commands in PowerShell, then use & $cli followed by the desired command:

$ $cli = Join-Path (Get-AppxPackage -Name "WritersProof.WLD").InstallLocation "writersproof-cli.exe"
& $cli --version

The standalone CLI defaults to ~/.writersproof (under %USERPROFILE% on Windows). The macOS desktop uses ~/Library/Application Support/WritersProof. To inspect the Mac app’s evidence from Terminal:

$ CPOE_DATA_DIR="$HOME/Library/Application Support/WritersProof" writersproof-cli status --json

Keep that directory selection for subsequent CLI commands. The macOS app replaces an inherited CPOE_DATA_DIR at startup, so use a separate user account for disposable desktop tests.

Global flags

FlagEffect
--jsonOutput results as JSON. Useful in scripts and CI pipelines.
--quiet, -qSuppress informational output; --json takes precedence when both are supplied.
--help, -hShow help for any command.
--versionPrint the installed CLI version.

status

Show Sentinel status, active sessions, and subsystem health.

$ writersproof-cli status
$ writersproof-cli status --json

Inspect the reported engine and data directory when the app and terminal disagree. start --json starts the engine or reuses its ready owner; stop --json requests that directory’s engine shutdown. Wait and retry during startup or shutdown, preserving the database, lock, PID, and endpoint files.

commit

Create a cryptographic checkpoint of a document. Omit the path to pick interactively.

$ writersproof-cli commit ~/Documents/novel.md --message 'Finished chapter 3'

Add --anchor to anchor the checkpoint in the public transparency log.

log

View checkpoint history for a document, or omit the path to list all tracked files.

$ writersproof-cli log ~/Documents/novel.md

export

Export an evidence packet for a document. Temporal beacons (drand + NIST) are included by default; pass --no-beacons to disable them.

$ writersproof-cli export ~/Documents/novel.md --tier enhanced --format c2pa -o novel.c2pa
FlagValuesDefault
--tier, -tbasic | standard | enhanced | maximumbasic
--format, -fcpoe | json | c2pa | c2pa-text | proof-block | openbadge | openbadge-jwt | openbadge-svg | card-svg | md | epubcpoe
--output, -o<path>stdout (json) / derived name
--notarize(flag) publish to WritersProof for public verificationdisabled
--no-beacons(flag) disable temporal beacons (caps security at T2)beacons on
$ writersproof-cli export-readiness ~/Documents/novel.md --json

Check readiness and unmet gaps before exporting. Desktop Core maps to the CLI’s basic tier. HTML uses writersproof-cli report <file> --format html; PDF rendering is available in the desktop app.

c2pa-text embeds an invisible, verifiable C2PA authorship manifest directly into the document text (a Unicode variation-selector carrier), so the proof travels with copied/pasted text.

verify

Verify an exported evidence file (.json, .cpoe, .cwar, .db, or a c2pa-text document). No WritersProof account or network connection required.

$ writersproof-cli verify novel.c2pa
$ writersproof-cli verify novel.c2pa --json

A sidecar alone leaves document binding unchecked; a publisher bundle carries the bound asset. Self-signed evidence establishes a key, not its owner. For evidence-packet authenticity, use --trusted-key with an author’s independently obtained public key. Read signature, binding, identity, and assessment scope separately.

badge

Render the authorship badge (SVG) for an Open Badge credential exported with --format openbadge.

$ writersproof-cli badge -c novel.openbadge.json -o novel-badge.svg

Link an export or derivative (PDF, EPUB, DOCX, …) back to its tracked source document, recording the relationship in the evidence chain.

$ writersproof-cli link ~/Documents/novel.md novel.pdf --message 'Final PDF for submission'

identity

Show or recover your signing identity.

$ writersproof-cli identity --did

--fingerprint shows your key fingerprint; --mnemonic prints your recovery phrase (keep it secret); --recover restores an identity from a mnemonic on stdin.

More commands

Run writersproof-cli <command> --help for full details on any command below.

CommandPurpose
trackStart, stop, or list activity tracking for a file or project.
reportGenerate a Written Authorship Report (WAR) as HTML or JSON.
forensicsDetailed forensic analysis of a document’s evidence.
fingerprintManage behavioral (typing-style) fingerprints.
presenceRun interactive presence challenges.
beaconInspect or fetch temporal beacon attestations.
snapshotManage point-in-time document snapshots.
credentialManage Verifiable Credentials.
configView or change CLI configuration.
manPrint the complete, auto-generated command manual.

Exit codes

CodeMeaning
0Success
1Command or verification failure; read the structured error/result for details.

Combine --quiet with --json for machine-readable output with no human-facing text — safe to use in CI pipelines and shell scripts.