// Reading the shelf: Redline Fieldbook Atrium v1.1.2 · 2026-04
Documentation / Fieldbook · CLI /CLI Reference · v1.1.2

The 27-command CLI.

Everything the desktop and macOS apps do, the CLI does too — and a few things they do not. Plumbing-first: every command pipes cleanly into the next, every output is machine-parseable, every operation is exit-coded.

TypeReference
Reading14 min
Revisedv1.1.2 · 2026-04
Applies tofieldbook 1.1.x

/ 01Install

Three options:

# From the Rust workspace
cargo install --path fieldbook-cli-rs

# From Homebrew
brew install parelion/tap/fieldbook

# Direct binary
curl -L https://download.parelion.com/fieldbook/1.1.2/fieldbook-$(uname -s)-$(uname -m) \
  -o /usr/local/bin/fieldbook && chmod +x /usr/local/bin/fieldbook

# Verify
fieldbook --version

/ 02CRUD commands

CLIfieldbook create PATH [--name] [--encrypt] [--password]Create a new fieldbook.
CLIfieldbook query PATH TABLE [--filter WHERE] [--format json|csv|table]Query rows. WHERE supports the same operators as the RLS predicate language.
CLIfieldbook insert PATH TABLE --data '{json}'Insert a row.
CLIfieldbook update PATH TABLE RECORD_ID --set '{json}'Update one or more cells.
CLIfieldbook delete PATH TABLE RECORD_IDDelete a row.
CLIfieldbook merge BASE INCOMING [--output PATH]Three-way merge of two fieldbooks via oplog delta.
CLIfieldbook repl PATHInteractive REPL with FQL + SQL.
CLIfieldbook rekey PATH --password OLD --new-password NEWChange encryption password.

/ 03Import / export

CLIfieldbook export PATH [--format json|csv|xlsx] [--table TABLE]Export to CSV, JSON, or XLSX.
CLIfieldbook import PATH TABLE --from FILE [--format csv|json]Import into an existing table. Schema is inferred when omitted.

/ 04Inspection

CLIfieldbook validate PATH [--strict] [--fix] [--json]Verify integrity hashes and audit chain.
CLIfieldbook info PATH [--json]Print manifest metadata.
CLIfieldbook schema PATHPrint table and field definitions.
CLIfieldbook oplog PATH [--last 20]Show recent oplog entries.
CLIfieldbook audit PATH [--last 20]Show recent audit entries.
CLIfieldbook documents list PATHList embedded documents.
CLIfieldbook documents verify PATHVerify every document's SHA-256.

/ 05Snapshots

CLIfieldbook snapshot create PATH [--name]Take a snapshot with optional human-readable name.
CLIfieldbook snapshot list PATHList snapshots with reason, age, legal-hold flag.
CLIfieldbook snapshot restore PATH NAMERevert to a named snapshot.

/ 06Compliance

CLIfieldbook migrate PATH [--schema PATH]Apply schema migrations.
CLIfieldbook gdpr-erase PATH --record-id ID [--table] [--fields]GDPR right-to-erasure with chain rehashing.
CLIfieldbook legal-hold set PATH --matter ID --initiated-by USERPlace a legal hold.
CLIfieldbook legal-hold release PATHRelease the legal hold.
CLIfieldbook legal-hold status PATHCheck hold status.
CLIfieldbook retention PATHReview retention policies and expiring records.

/ 07Output formats

Every command that produces structured output supports --format:

  • table — human-readable; default when stdout is a TTY
  • json — line-delimited JSON; default when stdout is a pipe
  • csv — comma-separated; useful for piping to spreadsheets

The --quiet flag suppresses progress and human-friendly output.

/ 08Exit codes

CodeMeaning
0Success
1Generic error
2Validation failure
3Not found (file, table, record)
4Authentication / authorisation failure
5File locked by another process

Read carefully. Then begin.

Request access Back to documentation