Your project
Terminal
Run commands inside your running project, or open a SQL prompt on your database.
The Terminal tab opens a console in your browser.
Apps#
You get a shell inside your project's container, in the same environment your app runs in. Use it to:
- run migrations:
python manage.py migrate,php artisan migrate --force - create an admin user, clear a cache, inspect files, check environment variables (
env)
Good to know:
- The project must be running. Deploy it first.
- Changes to files outside
/dataare lost on the next deploy. Make permanent changes in your code, not in the terminal. - Your project's memory limit applies: heavy commands can be stopped if they use too much.
- A session closes after about 15 minutes without activity. Long-running tasks belong in your run command or a build step, not in the terminal.
Databases#
A database project opens a SQL prompt (PostgreSQL psql, MySQL/MariaDB mysql) already signed in to your database. Type SQL and run it. You do not need to install anything.
For big imports use a client on your own computer, with the connection details from the database page; see Databases.
Access#
Only the project's owner can open its terminal, and every session is authorised for that one project.