A great new feature of Apple Configurator 2 is the command line interface for Apple Configurator: cfgutil. Go ahead and click on the Apple Configurator 2 menu and select Install Automation Tools from the menu.
When prompted,
Once installed, you’ll find cfgutil at /usr/local/bin/cfgutil.