Add 'api' command