Package Exports
- @gltf-transform/cli
- @gltf-transform/cli/dist/cli.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@gltf-transform/cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@gltf-transform/cli
Part of the glTF-Transform project.
- GitHub: https://github.com/donmccurdy/glTF-Transform
- Project Documentation: https://gltf-transform.donmccurdy.com/
- CLI Documentation: https://gltf-transform.donmccurdy.com/cli.html
Quickstart
Install the CLI, supported in Node.js v14+.
npm install --global @gltf-transform/cliList available CLI commands:
gltf-transform --helpCompress mesh geometry with Draco:
gltf-transform draco input.glb output.glb --method edgebreakerResize and compress textures with Sharp:
gltf-transform resize input.glb output.glb --width 1024 --height 1024
gltf-transform webp input.glb output.glb --slots "baseColor"... and much more.
Credits
See Credits.
License
Copyright 2023, MIT License.