# Terminal

Open **Terminal** for an interactive shell in the active VM. It requires JavaScript and a running VM, including when every package is stopped. Only one terminal session can be open per VM; sessions have a one-hour limit.

The shell starts in `/opt/lei` with the deployment’s shared environment. Package-specific overrides are not loaded into the shell. Use it to inspect files, run diagnostic commands, or connect to PostgreSQL with `psql`.

Disconnect or close the page to end the shell and its descendants. Redeployment and VM shutdown also close the connection. Run long-lived application processes through the packages configuration. Terminal output is not collected in Logs, and shell history is not saved.
