When passed a search query like
*foo* it will look at all the modules in all repositories and see if the word
foo appears anywhere in the name, description, version, license or any other field in the module's descriptor and print their names.
When passed a partial module name like
com.acme.foo* it will look at all the modules in all the repositories and see if their names start with
com.acme.foo and print their names.
When passed a complete module name like
com.acme.foobar it will print the list of available versions for that module, with the module repository in which each version was found. Versions marked with
* are not currently available on the local file system but will be downloaded on-demand from remote servers.
When passed a complete module name and version like
com.acme.foobar/1.0 it will print information about the contents of a module archive, its description, its licence and its dependencies