Run Shell Commands
Sometimes the quickest way to find out what’s going on inside a pod is to look around from the inside. The Shell lets you run simple commands directly in your pod’s app container, right from the dashboard.
Opening the Shell
Section titled “Opening the Shell”- Make sure the pod is running. Resume it first via More > Resume Pod if it’s paused.
- On your pod card, open Troubleshooting > Shell.
- Enter a command and run it. The output is shown below the input.
Commands run inside the app’s container, so they see the same files and environment as the app itself.
What to Use It For
Section titled “What to Use It For”- Check disk usage: Find out what’s filling up your storage.
- Read config and log files: Check that a config change made via SFTP actually landed, or read an app’s own log file without setting up an SFTP client.
- Check environment variables: Confirm that a value set under ⚙️ Edit Pod Settings > Env Vars reached the app.
- Run an app’s own CLI: Many apps ship command-line tools for maintenance tasks, such as clearing caches or resetting a password. See the App Help page for your app and the app’s official documentation.
Some useful commands to start with:
df -h # free and used spacedu -sh /data/* # size of each folder under /datals -la /data # list files, including hidden onescat /path/to/config.fileenv # environment variablesFolder names differ between apps. Use the same paths you see over SFTP as a guide.
Things to Know
Section titled “Things to Know”- Simple commands only: The Shell is meant for short, non-interactive commands. Editors (like
viornano), commands that ask for input, and long-running jobs won’t work. - Time limit: Commands are currently limited to about 15 seconds of run time. Longer commands are supported via other methods.
- Available tools depend on the app: Each app runs in its own container image, built by the app’s authors. Minimal images may lack common tools like
curl,lessor evenbash. - Changes outside volumes don’t persist: Only files in your pod’s persistent volumes (the ones you see over SFTP) survive restarts and updates. Anything else is reset. See Editing App Files or Source Code.
If you’re stuck, see Troubleshooting a Pod for other checks, or click Report Issue on your pod card and include the commands you ran and their output.