# What Python file does 'rasa shell' call?

**URL:** <https://forum.rasa.com/t/what-python-file-does-rasa-shell-call/19628>\
**Category:** Rasa Open Source\
**Created:** [October 11, 2019, 9:10am UTC](https://forum.rasa.com/t/what-python-file-does-rasa-shell-call/19628 "2019-10-11T09:10:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sanjay1983](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@sanjay1983](https://forum.rasa.com/u/sanjay1983)\
**Post date:** [October 11, 2019, 9:10am UTC](https://forum.rasa.com/t/what-python-file-does-rasa-shell-call/19628/1 "2019-10-11T09:10:08Z")

</div>

I would like to run the command ‘python filename.py’, and that should accomplish the same thing ‘rasa shell’ does, i.e, start the chatbot.

Where will I be able to find this Python file? In other words, what file is called when I type ‘rasa shell’?

---

<div class="post-metadata">

**Author:** ![btotharye](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/btotharye/32/5321_2.png) [@btotharye](https://forum.rasa.com/u/btotharye)\
**Post date:** [October 11, 2019, 12:12pm UTC](https://forum.rasa.com/t/what-python-file-does-rasa-shell-call/19628/2 "2019-10-11T12:12:51Z")

</div>

Hello @sanjay1983,

First welcome to the community, glad to have you here!

Could you elaborate a bit on what need you have for this over using the built in CLI already in the application?

Most of this is in the [rasa/rasa/cli at master · RasaHQ/rasa · GitHub](https://github.com/RasaHQ/rasa/tree/master/rasa/cli) though like you are asking about.

---

<div class="post-metadata">

**Author:** ![sanjay1983](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@sanjay1983](https://forum.rasa.com/u/sanjay1983)\
**Post date:** [October 12, 2019, 7:01am UTC](https://forum.rasa.com/t/what-python-file-does-rasa-shell-call/19628/3 "2019-10-12T07:01:57Z")

</div>

Thanks, glad to join as well!

I’m basically looking to build a chatbot for a client, and I thought I’d develop over the existing Rasa framework. The end need is to launch the trained chatbot by running a python file, instead of the existing ‘rasa shell’ command.

So how do I go about this?

---

<div class="post-metadata">

**Author:** ![sanjay1983](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@sanjay1983](https://forum.rasa.com/u/sanjay1983)\
**Post date:** [October 12, 2019, 7:06am UTC](https://forum.rasa.com/t/what-python-file-does-rasa-shell-call/19628/4 "2019-10-12T07:06:13Z")

</div>

So in rasa/rasa/cli, I see a shell.py But that simply contains functions. It doens’t give an output. Which python file would launch the chatbot?

---

<div class="post-metadata">

**Author:** ![btotharye](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/btotharye/32/5321_2.png) [@btotharye](https://forum.rasa.com/u/btotharye)\
**Post date:** [October 15, 2019, 7:38am UTC](https://forum.rasa.com/t/what-python-file-does-rasa-shell-call/19628/5 "2019-10-15T07:38:28Z")

</div>

Well you would have to basically create your own python file similar to the source code I referenced before. I believe you will find it much easier to just use the new shell commands that were recently added, it was meant to help with this and make it easier for bot spinup and use.

---

<div class="post-metadata">

**Author:** ![Panka\_Patidar](https://avatars.discourse-cdn.com/v4/letter/p/278dde/32.png) [@Panka\_Patidar](https://forum.rasa.com/u/Panka_Patidar)\
**Post date:** [September 3, 2020, 8:39am UTC](https://forum.rasa.com/t/what-python-file-does-rasa-shell-call/19628/6 "2020-09-03T08:39:29Z")

</div>

Hello @sanjay1983 did you get something for "rasa shell " cli cmd through the python script Thank you
