bim-excel
install bim-cli · windows · per-user · no admin
powershell.exe -NoProfile -ExecutionPolicy Bypass -Command 'iwr -useb https://bimcli.com/install.ps1?src=site -OutFile $env:TEMP\bim-install.ps1; powershell -NoProfile -ExecutionPolicy Bypass -File $env:TEMP\bim-install.ps1'
Read and write Excel files from the command line. The connective layer between Revit schedules, site data outputs, and any spreadsheet-based workflow — no Excel open, no copy-paste, no formula errors. Accepts piped input from any other bim driver; output can be piped forward.
Read and write Excel files from the command line. No Excel required to run it.
Verbs
| Verb | What it does |
|---|---|
bim excel write OUTPUT
| Write JSON to an XLSX file. Data is supplied via the `data` param as inline JSON (NDJSON, JSON array of objects, or single JSON object) or a file path string. Columns are inferred from key union across all rows; first-seen order preserved. RFC3339/ISO-8601 date strings are stored as Excel date cells. Piped bim output is unwrapped so it works without jq: the {"ok":...,"result":...} envelope (ok:false fails with the upstream error), and a table object's rows array (rows/items/data/elements/results, e.g. `bim revit schedule-read --name "Door Schedule" | bim excel write doors.xlsx`). |
bim excel read FILE
| Stream rows of an XLSX sheet as NDJSON (one JSON object per line). Date cells are emitted as RFC3339 strings in UTC unless BIM_EXCEL_TZ is set. |
bim excel sheets FILE | List sheets in an XLSX file (NDJSON, one object per sheet). |
bim excel info FILE | Inspect an XLSX file's schema without reading all data. Returns all sheets with column names, inferred types, and a sample value. |
bim excel doctor | Check environment readiness. Returns JSON with ok field and per-check results. |
bim excel version | Print driver version as JSON. |
Write
bim excel write <output.xlsx> [--sheet Name] [--pivot Col] [--dry-run] [--yes]
Reads stdin: NDJSON (one JSON object per line), JSON array of objects, or a bim {ok,result} envelope (unwrapped automatically — pipe any bim command directly without jq).
- Columns are inferred from the key union across all rows. First-seen order preserved.
- RFC3339/ISO-8601 date strings are stored as Excel date cells and round-trip cleanly via
read. --pivot Coladds a real Excel PivotTable on a second sheet namedPivot.--dry-runvalidates without writing; returns the same result shape withapplied:false.--yesskips overwrite confirmation when the file already exists.- Bare output names (no path separator) go to
%TEMP%\bim-cli\out\<name>.xlsx. Cleaned after 24h. Write./name.xlsxor a full path to keep the file in your own folder; the examples below do.
Read
bim excel read <file.xlsx> [--sheet Name] [--header-row N] [--map Key=A,...] [--limit N]
Streams rows as NDJSON to stdout. Header row supplies keys.
--header-row N— 1-based row index of the header row (default: 1).--map Mark=A,param=B,value=C— explicit column-letter-to-key mapping (overrides header row).--limit N— stop after N data rows (useful for sampling large files).- Date cells are emitted as RFC3339 strings (UTC). Large integers (>2⁵³) are kept as strings.
Pipe compositions
# Revit schedule → Excel (write takes the schedule's rows from the pipe)
bim revit schedule-read --name "Door Schedule" | bim excel write ./doors.xlsx
# Revit elements → Excel → back into Revit parameters (rows keep the element id; dry run first)
bim revit element-list --category OST_Doors --properties Mark,Comments | bim excel write ./doors.xlsx
bim excel read doors.xlsx | bim revit param set --only Comments --dry-run
bim excel read doors.xlsx | bim revit param set --only Comments
# PDF takeoff → Excel pivot
bim pdf marked drawings.pdf | bim excel write ./takeoff.xlsx --pivot page
# Revit warnings → audit spreadsheet
bim revit warnings-export | bim excel write ./audit.xlsx
# Site flood data → Excel report
bim site flood lookup --lat <f> --lon <f> | bim excel write ./flood-report.xlsx
Gotchas
- Column order matches the first object's key order in NDJSON input.
- Duplicate column names in an existing file are handled by appending a numeric suffix.
readwith no--sheetuses the first sheet in the workbook.- Files in
%TEMP%\bim-cli\out\are cleaned after 24h. Use a full path for durable output.
For agent use: /excel/llms.txt
install bim-cli · windows · per-user · no admin
powershell.exe -NoProfile -ExecutionPolicy Bypass -Command 'iwr -useb https://bimcli.com/install.ps1?src=site -OutFile $env:TEMP\bim-install.ps1; powershell -NoProfile -ExecutionPolicy Bypass -File $env:TEMP\bim-install.ps1'
Then ask your assistant to run bim describe --json. See what the installer does.