Skip to content
Node.js Apps

Run commands in your app (console)

Migrations, seeds or one-off scripts in the live version, with your app's variables.

In your app → Console you type a command and we run it in the live version's folder, as your app's user and with its environment variables. You see the output as it arrives and the exit code.

Examples

npx prisma migrate deploy
npm run seed
node scripts/clear-cache.js
  • Each command can run for up to 10 minutes.
  • Commands from the session stay in a history: click one to repeat it, or use ↑ and ↓ in the field.
  • Anything written to the app's disk is lost on the next deployment, except what's in DATA_DIR.

It's not an SSH terminal: there's no root access and no interactive programs. To watch what happens in real time, use Logs.

Ask the assistant

Still have a question about this? Ask the assistant.

Was this article helpful?

Related articles