I have gone through this
So, what I understand about python based CLI is:
there is an xml file which will produce GUI for application and the same xml is used by the .py file to parse elements.
the execute function is in the xml file that will be run by slicer and the name of the script .py file is within this function.
how to run and test the python based cli module?