Skip to main content
Documentation
CLI Reference

Local Audit Commands

Read the repository-local alpha audit log. It is a diagnostic facility, not a complete or tamper-proof record.

CommandCurrent behaviorUsage
auditShow recent local events or filter by event typedits audit [--last <N>] [--event-type <TYPE>]
audit-statsSummarize outcomes in the local logdits audit-stats
audit-exportExport the local log as JSONdits audit-export [--output <PATH>]

dits audit

Shows the newest 20 events by default. Each printed row includes the timestamp, event type, outcome, and optional resource stored in the local record.

# Show the newest local records
dits audit

# Choose a count
dits audit --last 50

# Filter by a recognized event type
dits audit --event-type logout

Recognized filter names include login, logout, login_failed, password_changed, keystore_created, repo_init, commit_created, file_added, file_accessed, and encryption_enabled. A recognized name means the reader understands that event schema; it does not mean every corresponding command currently emits that event.

dits audit-stats

Counts total, successful, failed, and denied records and reports the oldest and newest timestamps present. The figures describe only the current local file.

dits audit-stats

dits audit-export

# Print one JSON document to standard output
dits audit-export

# Write the same export to a local file
dits audit-export --output audit-export.json

See security architecturefor the current trust boundary and the status and roadmap for planned multi-user controls.