Shell
A live terminal inside your running service, from the console. Run migrations, check files and debug without SSH keys.
Open a shell
Open your service, then Shell. Pick the environment (production, staging or a preview) and choose Open shell. It works on web services and background workers. For databases, use the Query Editor.
Things people run
- Laravel
php artisan migrate:status,php artisan tinker,php artisan config:clear- Node.js
npm run,node -e "..."- Python
python manage.py shell,python manage.py migrate- Anything
ls,env,cat storage/logs/laravel.log
Reading the prompt
The prompt shows the service and the current folder, for example shop-backend:/var/www/html$. When a command fails, the next prompt shows a red ✗ and its exit code, so a command that fails silently is still obvious.
Limits
- Account owners, admins, developers and Cloudphere staff can open a shell. Viewers see it disabled.
- Up to 2 open shells per service and 5 per account.
- A shell closes after 15 minutes without typing, after one hour, or when the service restarts or redeploys. Reconnect to continue.
- It runs as the service's own user, in its current version.
Good to know
- Files you change here are lost on the next deploy. Keep settings in environment variables.
- What you type and what the shell prints are never recorded. Your activity history only shows when a shell opened and closed.
- Copy and paste work with your usual shortcuts. On a phone, use the key bar under the terminal for Esc, Tab, Ctrl and the arrows.
Changes made in a shell affect the live service immediately. Take care in production.