How to convert DAE file to GLB on the command line

First, install assimp:

sudo apt-get install -y assimp-utils

Then, convert the file:

assimp export input.dae output.glb

or convert all files in the current folder:

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