| Crates.io | microcad |
| lib.rs | microcad |
| version | 0.2.20 |
| created_at | 2025-09-18 10:39:06.775663+00 |
| updated_at | 2026-01-06 16:06:20.067231+00 |
| description | µcad Command Line Interface |
| homepage | https://microcad.xyz |
| repository | https://codeberg.org/microcad/microcad |
| max_upload_size | |
| id | 1844548 |
| size | 97,089 |
This crate provides the command line interpreter of µcad.
Note: This project is in an early stage of development and is not yet feature complete!
First, install CMake and Ninja which are needed to compile the manifold geometry library.
Use the following line to install Ninja and CMake:
sudo apt install ninja-build cmake
If you are on using MacOS, you have to install cmake and ninja using brew:
brew install cmake ninja
To install the latest release of µcad via cargo, type:
cargo install microcad
After installing, you can run a basic example by typing:
microcad eval ./examples/bricks/brick
This will evaluate the input file and will output the model tree. The evaluate command will not export the output geometry.
To generate an STL model file use the export command with an additional output file name:
microcad export ./examples/bricks/brick
Start the microcad CLI by typing microcad into your console.
microcad
This will give you an overview of the available functionality:
µcad Command Line Interface
Usage: microcad [OPTIONS] <COMMAND>
Commands:
parse Parse a µcad file
resolve Parse and resolve a µcad file
eval Parse and evaluate a µcad file
export Parse and evaluate and export a µcad file
create Create a new source file with µcad extension
watch Watch a µcad file
install Install µcad standard library
help Print this message or the help of the given subcommand(s)
Options:
-T, --time Display processing time
-C, --config <CONFIG> Load config from file
-v... Verbosity level (use -v, -vv, or -vvv)
-h, --help Print help
-V, --version Print version
In most cases you might want to use the µcad standard library (std).
This must be installed once by running the following command:
microcad install std
You're now ready to use µcad!
Tutorials:
Language documentation: