new query CLI sub-command