Apple Configurator 2 has a great built-in command-line tool: cfgutil
Path to cfgutil
/Applications/Apple\ Configurator\ 2.app/Contents/MacOS/cfgutil
Help Page:
/Applications/Apple\ Configurator\ 2.app/Contents/MacOS/cfgutil help
Check out a great Apple Configurator and Automator site:
https://configautomation.com