How to run commands in CLI with Railway.app

I have Django project deployed to Railway.app. I've installed Railway CLI, but can't understand how to run python manage.py makemigrations and so on in its CLI to make Django runnig.

My laptop is running Windows 10 Home.

Ho do I?

You can follow the steps indicated in the documentation: https://docs.railway.app/develop/cli

Run the commands from the location of your project : railway login -- railway link yourprojectId -- railway run python manage.py makemigrations

you can do that by using railway run (command to be executed)

for example to create a superuser, use railway run python manage.py createsuperuser

Check out this article

PS: Ensure you are in the same directory as that of the production because it will run both on local and production environment.

So should run IN YOUR PROJECT REPOSITORY :

  • runway link -> Then select your project
  • runway run <your command>
Back to Top