> For the complete documentation index, see [llms.txt](https://stakpak.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://stakpak.gitbook.io/docs/how-it-works/shell-mode.md).

# Shell Mode

<figure><img src="https://2684022488-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOFDKnFMEMmJjoclGx9Hr%2Fuploads%2FLJwX5HhsElHfcGxoNvys%2Fimage.png?alt=media&amp;token=83f71c3e-9efc-4de8-8c79-12e18abb4495" alt=""><figcaption></figcaption></figure>

Shell Mode is Stakpak’s built-in terminal designed to handle interactive shell commands that require real-time user input, such as password prompts or confirmations. It allows you to run commands that pause for user decisions or credentials.

To start Shell Mode, simply type `$`

#### When to use shell mode?

Use Shell Mode when your command:

* Requires sudo or elevated permissions
* Prompts for a password
* Asks for yes/no confirmation
* Launches an interactive script
