Skip to content

cliformsoffice v0.2.0 — 40 commands for AI agents

Choose a tag to compare

@allthingssecurity allthingssecurity released this 02 Apr 12:20
· 3 commits to main since this release

cliformsoffice v0.2.0 — 18 new agent-centric commands (40 total)

15MB single Rust binary. Reads, writes, and manipulates .docx, .xlsx, .pptx, .pdf from the CLI.

New in v0.2.0

Command What it does
summary One-call document digest (title, outline, table/image/link counts)
diff Compare two documents structurally
extract Pattern-based data extraction: --pattern "Invoice: {id}" → JSON
replace Find/replace preserving formatting
pipe Process files from stdin: find . -name "*.pdf" | cliformsoffice pipe info
batch Process files by glob: --glob "contracts/*.docx"
cells Read/write spreadsheet cells: --range A1:D10 --set B2=Total
schema Infer column types, nulls, min/max (like pandas describe)
query SQL on spreadsheets: "SELECT name FROM Sheet1 WHERE age > 30"
fill-template Replace {{placeholders}} with JSON data
add-section Insert markdown-formatted content into documents
redact Auto-detect PII (email, phone, SSN, credit card)
validate Check required fields, page limits, empty cells
formulas Extract spreadsheet formulas with locations
stats Reading level, word frequency, sentence analysis
watermark Add text/image watermark (planned)
headers-footers Read document headers and footers
remove Delete pages, comments, images from documents

Install

curl -L https://github.com/allthingssecurity/clibrowser/releases/download/cliformsoffice-v0.2.0/cliformsoffice-darwin-arm64 -o cliformsoffice
chmod +x cliformsoffice
mv cliformsoffice ~/.local/bin/

Examples

# Understand a document in one call
cliformsoffice summary report.pdf --json

# SQL on spreadsheets
cliformsoffice query budget.xlsx "SELECT dept, SUM(cost) FROM Sheet1 GROUP BY dept" --json

# Extract structured data from invoices
cliformsoffice extract invoice.pdf -p "Invoice #: {id}" -p "Total: \${amount}" --json

# Batch process a folder
cliformsoffice batch search --glob "contracts/*.docx" "liability" --json

# Fill templates from JSON
cliformsoffice fill-template template.docx --data '{"name":"Alice"}' -o filled.docx

# Detect PII
cliformsoffice redact document.docx --email --phone --ssn --dry-run --json