Skip to content

JSON Mode

Every Bowerbird command supports JSON mode for scripting and AI integration.

Add --output json to any command:

Terminal window
bwrb list task --output json
bwrb audit --output json
bwrb search "My Note" --output json

Provide field values without interactive prompts:

Terminal window
bwrb new task --json '{"name": "Fix login", "priority": "high"}'
bwrb edit "My Task" --json '{"status": "done"}'
bwrb bulk set --json '{"status": "archived"}' --type task
#!/bin/bash
bwrb new task --json "{
\"name\": \"$TASK_NAME\",
\"priority\": \"$PRIORITY\"
}"
Terminal window
bwrb audit --output json | jq '.violations[] | .file'
Terminal window
bwrb list task --output json | \
jq -r '.[] | select(.status == "done") | .path' | \
xargs -I {} bwrb delete {} --execute

JSON mode makes Bowerbird scriptable by AI assistants:

Terminal window
# AI can read vault state
bwrb list --output json
# AI can create notes
bwrb new idea --json '{"name": "AI suggestion", "status": "raw"}'