How to convert DAE file to GLB on the command line

First, install assimp:

install_assimp.sh
sudo apt-get install -y assimp-utils

Then, convert the file:

convert_dae_to_glb.sh
assimp export input.dae output.glb

or convert all files in the current folder:

convert_all_dae.sh
for i in *.dae ; do assimp export "$i" "${i%.dae}.glb" ; done

Check out similar posts by category: 3D