lib3mf-cli
Command-line tool for analyzing, validating, and processing 3MF files.
When to Use This Crate
Use lib3mf-cli when you need:
- Quick inspection of 3MF files without writing code
- Validation and quality checks in CI/CD pipelines
- Batch processing and automation scripts
- Format conversion from command line
Installation
Quick Start
# Analyze a 3MF file
# Get JSON output
# Validate with paranoid checks
# Convert STL to 3MF
# List archive contents
Commands
| Command | Description |
|---|---|
stats |
Display model statistics (geometry, materials, metadata) |
validate |
Run validation checks (Minimal/Standard/Strict/Paranoid) |
list |
List files in 3MF archive |
extract |
Extract files from archive |
diff |
Compare two 3MF files |
copy |
Read and write 3MF (roundtrip test) |
convert |
Convert between 3MF, STL, and OBJ |
Features
- Full validation support (4 validation levels)
- Bambu Studio project file analysis
- Digital signature verification
- JSON output for scripting
- Format conversion (STL ↔ 3MF ↔ OBJ)
CI/CD Integration
Use in continuous integration to validate 3MF files:
- name: Validate 3MF
run: |
cargo install lib3mf-cli
lib3mf-cli validate model.3mf --level strict
Related
- lib3mf-core - Core parsing library
- Full Documentation
License
MIT OR Apache-2.0