Overview
/
Developer Tools
/
CLI
/
export

zoo kcl export

Export a kcl file as any other supported CAD file format.

Options

input
The path to the input kcl file to export. This can also be the path to a directory containing a main.kcl file. If you pass - as the path, the file will be read from stdin
output-dir
The path to a directory to output the files
-t/--output-format
A valid output file format
Possible values: fbx | glb | gltf | obj | ply | step | stl
-f/--format
Command output format
Possible values: json | yaml | table
--show-trace
If true, print a link to this request's tracing data
Default value: false
--deterministic
If true, the output file should be deterministic, meaning any date or time information will be replaced with a fixed value. This is useful for when pushing to version control
Default value: false
--allow-errors
When there are KCL problems that are are errors, continue anyway. Problems (AKA compilation issues) may be detected in KCL parsing or execution and can have varying severity. Some errors are fatal and are not affected by this option. Which errors are considered fatal may change without notice
Default value: false
-d/--debug
Print debug info
Default value: false
--host
Zoo API host to use for all commands (e.g., "api.zoo.dev" or "http://localhost:8888"). Overrides the configured default host
-h/--help
Print help (see a summary with '-h')

About

convert kcl to obj

$ zoo kcl export --output-format=obj my-file.kcl output_dir

convert kcl to step

$ zoo kcl export --output-format=step my-obj.kcl .

pass a file to convert from stdin

$ cat my-obj.kcl | zoo kcl export --output-format=step - output_dir

By default, this will search the input path for a project.toml file to determine any specific execution settings.

See also