Add an "api" subcommand for making api requests.