Install the Apple Configurator command-line tool on Mac
If you want to write shell scripts and automate specific processes, you can download the Apple Configurator 2 command-line tool.
In Apple Configurator 2 on your Mac, choose Install Automation Tools in the Apple Configurator 2 menu, click Install, then enter your administrator password.
The command-line tool
cfgutil is added to Apple Configurator 2, and a symbolic link is placed in /usr/local/bin/. After you install the command-line tool, see the cfgutil man page.