Rasa_core.run.serve_application(agent ,channel='cmdline') to rest channel

rasa_core.run.serve_application(agent ,channel=‘cmdline’)

channel = BotServerInputChannel(agent)
agent.handle_channel(channel)

Could you please provide more information?