This will be successful when there's a new PuppetDB CLI subcommand that looks like:
pdb query '[...]'
See the CLI scope doc for more info. For right now we can wait on SSL support and the various output formats (JSON only is fine for now).