The following flags are available for the gltf-pipeline command-line tool.
| Flag | Description |
| ------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `--help`, `-h` | Display help |
| `--input`, `-i` | Path to the glTF or glb file. |
| `--output`, `-o` | Output path of the glTF or glb file. |
| `--binary`, `-b` | Convert the input glTF to glb. |
| `--allowAbsolute`, `-a` | Allow glTF files to refer to file URLs outside of their source path |
| `--json`, `-j` | Convert the input glb to glTF. |
| `--separate`, `-s` | Write separate buffers, shaders, and textures instead of embedding them in the glTF. |
| `--separateTextures`, `-t` | Write out separate textures only. |
| `--stats` | Print statistics to console for output glTF file. |
| `--keepUnusedElements` | Keep unused materials, nodes and meshes. |
| `--keepLegacyExtensions` | When false, materials with `KHR_techniques_webgl`, `KHR_blend`, or `KHR_materials_common` will be converted to PBR. |
| `--draco.compressMeshes`, `-d` | Compress the meshes using Draco. Adds the `KHR_draco_mesh_compression` extension. |
| `--draco.compressionLevel` | Draco compression level [0-10], most is 10, least is 0. A value of 0 will apply sequential encoding and preserve face order. |
| `--draco.quantizePositionBits` | Quantization bits for position attribute when using Draco compression. |
| `--draco.quantizeNormalBits` | Quantization bits for normal attribute when using Draco compression. |
| `--draco.quantizeTexcoordBits` | Quantization bits for texture coordinate attribute when using Draco compression. |
| `--draco.quantizeColorBits` | Quantization bits for color attribute when using Draco compression. |
| `--draco.quantizeGenericBits` | Quantization bits for skinning attribute (joint indices and joint weights) and custom attributes when using Draco compression. |
| `--draco.unifiedQuantization` | Quantize positions of all primitives using the same quantization grid. If not set, quantization is applied separately. |
| `--draco.uncompressedFallback` | Adds uncompressed fallback versions of the compressed meshes. |
| `--baseColorTextureNames` | Names of uniforms that should be considered to refer to base color textures <br /> when updating from the `KHR_techniques_webgl` extension to PBR materials. |
| `--baseColorFactorNames` | Names of uniforms that should be considered to refer to base color factors <br /> when updating from the `KHR_techniques_webgl` extension to PBR materials. |