feat(api): use q instead of cmd as parameter

Fixes #33