JSPM

@gltf-transform/cli

3.0.0-alpha.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 20325
  • Score
    100M100P100Q148731F
  • License MIT

CLI interface to glTF Transform

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

Latest NPM release License

Part of the glTF-Transform project.

Quickstart

Install the CLI, supported in Node.js v14+.

npm install --global @gltf-transform/cli

List available CLI commands:

gltf-transform --help

Compress mesh geometry with Draco:

gltf-transform draco input.glb output.glb --method edgebreaker

Resize 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.