In the G'MIC plug-in for GIMP, set the 'Output messages' box (on the left pane) to 'Verbose (logfile)'. Each time you will run a filter, there will be the equivalent command line put in the log file, so you can reproduce it from the command line.
For instance, if I select this filter :

and click 'Apply', I'll get this in the logfile :
Quote:
[gmic_gimp]./preview/ -v -99 -gimp_blur_angular 2,0.5,0.5,0,0,0
[gmic_gimp]./apply/ -v -99 -gimp_blur_angular 2,0.5,0.5,0,0,0
The first line corresponds to the equivalent 'gmic' call for generating the preview image, while the second one is the application of the filter on the real image. So now, if you want to do the same with the command line tool 'gmic', just type on the terminal :
Quote:
gmic input.jpg -gimp_blur_angular 2,0.5,0.5,0,0,0 -o output.jpg
and you will get the same result as with the plug-in for GIMP. The logfile is located in '/tmp/gmic_log' on Linux, and '%TEMP/gmic_log' on Windows.
Concerning the commercial use of G'MIC : G'MIC is distributed under the CeCILL license, which is *compatible* with the GPL, so you can imagine that the restrictions are the same as with a GPL license.
This means that if you are using parts (modified or not) of the G'MIC source code in your own product, you need to open the code of your app too. On the contrary, if you are using G'MIC as it is, without integrating it in your own sources (for instance if you are using 'gmic' on a web server), then you can do what you want with it, the only restriction being you must tell somewhere you are using it and link to his webpage.
There are already some web services that do that (
http://superphotoapp.com/ for instance), and this is perfectly legal. Note that we morally appreciate small donations if you succeed in making money with it (though this is not mandatory of course).
Finally, if you need a specific license of use to be able to integrate the G'MIC source code (as a C++ library for instance) in your own (closed-source) product, this could be still possible. Contact me directly for such a request.
Cheers,
David.