> ## Documentation Index
> Fetch the complete documentation index at: https://docs.idyl.network/llms.txt
> Use this file to discover all available pages before exploring further.

# idyl shell

> Open an interactive shell in a workload container

Open an interactive shell in a container of a running pod or sandbox.

The target is addressed as pod/\<name> or sandbox/\<name>. The shell defaults to
/bin/sh; use --shell to launch a different one, and --container to select a
container when the workload has more than one. Detach from the session with the
\--detach-keys sequence.

## Usage

```bash theme={null}
idyl shell pod/name|sandbox/name [flags]
```

## Flags

| Flag                     | Description                                                            |
| ------------------------ | ---------------------------------------------------------------------- |
| `--container <string>`   | Container name.                                                        |
| `--detach-keys <string>` | Key sequence that detaches from the session. Default: `ctrl-p,ctrl-q`. |
| `--shell <string>`       | Shell to launch in the container. Default: `/bin/sh`.                  |

## Inherited flags

| Flag                                 | Description                                                        |
| ------------------------------------ | ------------------------------------------------------------------ |
| `-a <string>, --account-id <string>` | Account ID to use, overriding the current context.                 |
| `-c <string>, --context <string>`    | Use the named context for this command.                            |
| `--homedir <string>`                 | Override the configuration directory. Defaults to \~/.config/idyl. |
| `-n <string>, --namespace <string>`  | Namespace to use for this command.                                 |
| `-o <string>, --output <string>`     | Output format (json\|yaml).                                        |
| `-p <string>, --profile <string>`    | Override the access profile for this command.                      |
| `--realm <string>`                   | Override the realm for this command.                               |
| `--subnet <string>`                  | Override the context subnet for this command.                      |

## Examples

```bash theme={null}
# Open a shell in a pod
idyl shell pod/web

# Open bash in a sandbox
idyl shell sandbox/dev --shell /bin/bash
```
