Separates Cli and Api.