Operation syntax and NDJSON input
The filemaker CLI parses newline-delimited JSON (NDJSON): each line represents one complete operation object. Pass operations via standard input or reference an operations file on disk.
Operation structure
Every operation contains an op key in the format <verb>:<catalog>, followed by operation-specific parameters:
{"op":"read:table"}
{"op":"read:table","name":"Contacts"}
{"op":"create:table","name":"Invoices"}
{"op":"create:field","table":"Invoices","name":"InvoiceID","type":"text"}
Lines must be discrete JSON objects rather than entries in a JSON array.
Pipe operations via standard input
If no operations file is specified, filemaker reads from standard input. Pipe single operations directly:
printf '%s\n' '{"op":"read:table"}' | \
filemaker --file="/absolute/path/Contacts.fmp12"
Use heredocs for multi-line batches:
filemaker --file="/absolute/path/Contacts.fmp12" --dry-run <<'NDJSON'
{"op":"create:table","name":"Invoices"}
{"op":"create:field","table":"Invoices","name":"InvoiceID","type":"text"}
NDJSON
Close standard input after the final line to prevent command timeouts.
Execute operations files
Save batches in an NDJSON file and pass the path as the final argument:
{"op":"create:table","name":"Invoices"}
{"op":"create:field","table":"Invoices","name":"InvoiceID","type":"text"}
filemaker --file="/absolute/path/Contacts.fmp12" \
--dry-run \
create-invoices.ndjson
Operations execute sequentially. See Dry runs and batch behavior.
Warning One-time batch execution: Operations files represent single execution attempts and should not be replayed against the same database file.
Inspect operation schemas
Query exact input schemas directly from the installed filemaker CLI:
filemaker help
filemaker help table
filemaker help table create
filemaker help field options autoEnter
-
filemaker help: Lists all available catalogs. -
filemaker help <catalog>: Lists supported verbs for a catalog. -
filemaker help <catalog> <verb>: Displays required keys, types, validation rules, examples, and error codes for an operation. -
Additional path segments (such as
options autoEnter) inspect nested parameter objects.
For automation scripts and tooling, emit the schema reference as JSON:
filemaker help --json table create
filemaker help --json --all
Because schema contracts update between releases, query the installed binary rather than relying on cached operation shapes.