api server in the CLI