Quick start
Thirty seconds in a shell: a cube, a bevel on its edges, a hole drilled with a boolean, a glTF file, a check and a picture.
1. Install
cargo install meshforge-cli
or brew tap partiigames/tap && brew trust partiigames/tap && brew install meshforge, or a binary from GitHub releases. Check it with meshforge --version.
2. Run
This is a real session with meshforge 0.4.0, output pasted unchanged. Lines starting with [0], [1], wrote or a count are the log on stderr; each JSON object is the reply on stdout.
$ meshforge apply --session crate.mfs -e '{"op":"create_primitive","kind":"cube","name":"crate"}'
[0] create_primitive 'crate'; new: crate
{"ok":true,"result":{"op":"create_primitive","object":"crate","ok":true,"new":["crate"]},"objects":[{"name":"crate","tris":12,"shells":1,"boundary_loops":0,"bbox":[[-0.5,-0.5,-0.5],[0.5,0.5,0.5]]}]}
$ meshforge apply --session crate.mfs -e '{"op":"bevel","object":"crate","select":{"sharper_than_deg":30},"width":0.05,"segments":3}'
[0] bevel 'crate'; new tags: bevel
{"ok":true,"result":{"op":"bevel","object":"crate","ok":true,"new_tags":["bevel"],"selected":{"faces":92},"edges":12},"objects":[{"name":"crate","tris":188,"shells":1,"boundary_loops":0,"bbox":[[-0.5,-0.5,-0.5],[0.5,0.5,0.5]]}]}
$ meshforge apply --session crate.mfs -e '[{"op":"create_primitive","kind":"cylinder","name":"drill","radius":0.2,"height":2,"segments":32},{"op":"boolean","object":"crate","with":"drill","mode":"difference"},{"op":"delete_object","object":"drill"}]'
[1] boolean 'crate'; new tags: cut_wall; RENUMBERED: old ids are void, query again
3 commands applied; 2 lines that only echo the request left out (--full shows every line)
{"ok":true,"results":[{"op":"boolean","object":"crate","ok":true,"new_tags":["cut_wall"],"renumbered":true,"index":1}],"applied":3,"objects":[{"name":"drill","deleted":true},{"name":"crate","tris":448,"shells":1,"boundary_loops":0,"bbox":[[-0.5,-0.5,-0.5],[0.5,0.5,0.5]]}]}
$ meshforge apply --session crate.mfs -o crate.glb
wrote crate.glb (19484 bytes)
{"ok":true,"results":[],"glb_path":"crate.glb","glb_bytes":19484,"triangles":448,"vertices":497,"bbox":{"min":[-0.5,-0.5,-0.5],"max":[0.5,0.5,0.5],"center":[0.0,0.0,0.0],"size":[1.0,1.0,1.0]}}
$ meshforge validate crate.glb --text
crate.glb: valid (0 error(s), 0 warning(s))
$ meshforge preview crate.glb -o crate.png --style beauty
wrote crate.png (1024x1024, 4 views, 448 triangles, keep shading, 235 ms)
What happened:
--session crate.mfskeeps the scene between calls, so each command is small.- The bevel picked its edges by meaning (
sharper_than_deg), not by id. - The third call is a batch: make a cylinder, subtract it, delete it. The reply lists only news;
boundary_loops: 0says the crate is still closed, andrenumberedsays old face ids are void. -o crate.glbwrites glTF 2.0;validateexits 1 if the file has errors.
3. Look
crate.png from the last command:

Without --style beauty the preview is a checking view: inside-out faces are hatched magenta, and with --json the reply counts them (back_faces_visible).
4. Next
meshforge ops --text: every op, grouped.meshforge ops bevel boolean: the fields, types and defaults of the ops you name.- CLI guide (a worked chair), command reference, llms.txt for agents.