interacting with api-cli