This module implements the heart of the cpanq script, which is a simple interface to run API methods of WWW::CPAN via the command line. Currently, this is a work in progress and offered more like an example code for WWW::CPAN.

The expected arguments for the script are like:

command single-arg
command key1=val1 key2=val2

where the supported commands by now are search and meta. There is also the synonym commands: query which is the same as search and distmeta an alias of meta.