Add a query command to the cli