@ifc-lite/cli 0.17.0 → 0.17.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +55 -0
  2. package/package.json +15 -15
package/README.md ADDED
@@ -0,0 +1,55 @@
1
+ # @ifc-lite/cli
2
+
3
+ BIM toolkit for the terminal. The `ifc-lite` command reads, queries, validates, exports, creates, merges, converts, and diffs IFC files, and can script them with the `bim.*` SDK. Output is pipe-friendly and every command supports `--json` for machine-readable results, which makes it a good fit for both humans and LLM terminals.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install -g @ifc-lite/cli
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```bash
14
+ ifc-lite info model.ifc
15
+ ifc-lite query model.ifc --type IfcWall --json
16
+ ifc-lite props model.ifc --id 42
17
+ ifc-lite export model.ifc --format csv --type IfcWall --columns Name,Type,GlobalId
18
+ ifc-lite create wall --height 3 --thickness 0.2 --start 0,0,0 --end 5,0,0 --out wall.ifc
19
+ ifc-lite eval model.ifc "bim.query().byType('IfcWall').count()"
20
+ ifc-lite view model.ifc
21
+ ```
22
+
23
+ ## Commands
24
+
25
+ - `info` - model summary: schema, entities, storeys
26
+ - `query` - query entities by type, properties, quantities; supports `--sum`, `--group-by`, `--spatial`
27
+ - `props` - all properties for a single entity (`--id N`)
28
+ - `export` - export to `csv`, `json`, `ifc`, or `hbjson`
29
+ - `ids` - validate against buildingSMART IDS rules
30
+ - `validate` - structural validation checks
31
+ - `stats` - auto-calculated model KPIs and health check
32
+ - `clash` - geometric clash detection, `--matrix`, `--bcf` output
33
+ - `bcf` - create and inspect BCF collaboration files
34
+ - `create` - create IFC elements from scratch (walls, slabs, stairs, 30+ types)
35
+ - `mutate` - modify properties or attributes and save
36
+ - `merge` - merge multiple IFC files into one federated file
37
+ - `convert` - convert between IFC schema versions (`--schema IFC4`)
38
+ - `diff` - compare two IFC files
39
+ - `eval` / `run` - run SDK expressions or scripts against a model
40
+ - `ask` - natural language BIM queries
41
+ - `view` - interactive 3D viewer in the browser, controllable via REST (`/api/command`)
42
+ - `analyze` - query plus colorize/isolate/heatmap results in the running viewer
43
+ - `mcp` - start an MCP server bound to one or more IFC files (stdio or http)
44
+ - `schema`, `bsdd`, `diagnose-geometry`, `extract-entities`, `generate-spaces`, `lod`, `ext` - see `ifc-lite --help`
45
+
46
+ Global flags: `--json`, `--out <file>`, `--verbose`, `--quiet`, `--debug`, `--log-level <level>`.
47
+
48
+ ## Links
49
+
50
+ - Docs: https://ltplus-ag.github.io/ifc-lite/
51
+ - Source: https://github.com/LTplus-AG/ifc-lite
52
+
53
+ ## License
54
+
55
+ MPL-2.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ifc-lite/cli",
3
- "version": "0.17.0",
3
+ "version": "0.17.1",
4
4
  "description": "CLI toolkit for IFC files — query, validate, export, create, and script BIM data",
5
5
  "type": "module",
6
6
  "bin": {
@@ -20,22 +20,22 @@
20
20
  "README.md"
21
21
  ],
22
22
  "dependencies": {
23
- "@ifc-lite/bcf": "^1.16.0",
24
- "@ifc-lite/clash": "^1.6.0",
25
- "@ifc-lite/create": "^1.16.2",
26
- "@ifc-lite/export": "^2.5.0",
27
- "@ifc-lite/data": "^2.5.0",
28
- "@ifc-lite/extensions": "^0.3.3",
23
+ "@ifc-lite/bcf": "^1.16.1",
24
+ "@ifc-lite/clash": "^1.6.1",
25
+ "@ifc-lite/create": "^1.16.3",
26
+ "@ifc-lite/data": "^2.5.1",
27
+ "@ifc-lite/export": "^2.5.1",
28
+ "@ifc-lite/extensions": "^0.3.4",
29
29
  "@ifc-lite/geometry": "^3.1.3",
30
- "@ifc-lite/ids": "^1.15.25",
31
- "@ifc-lite/mcp": "^0.7.0",
30
+ "@ifc-lite/ids": "^1.15.26",
31
+ "@ifc-lite/mcp": "^0.7.1",
32
32
  "@ifc-lite/mutations": "^1.18.0",
33
- "@ifc-lite/parser": "^3.8.0",
34
- "@ifc-lite/query": "^1.14.11",
35
- "@ifc-lite/sandbox": "^1.16.1",
36
- "@ifc-lite/sdk": "^1.21.0",
37
- "@ifc-lite/viewer-core": "^0.2.7",
38
- "@ifc-lite/wasm": "^3.0.12"
33
+ "@ifc-lite/parser": "^3.8.1",
34
+ "@ifc-lite/query": "^1.14.12",
35
+ "@ifc-lite/sandbox": "^1.16.2",
36
+ "@ifc-lite/sdk": "^1.21.1",
37
+ "@ifc-lite/viewer-core": "^0.2.8",
38
+ "@ifc-lite/wasm": "^3.0.13"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@types/node": "^26.1.0",