# `mix dala.shell`
[🔗](https://github.com/ohhi-vn/dala_dev/blob/main/lib/mix/tasks/dala.shell.ex#L1)

Drops you into (or runs commands inside) your app's private data directory.

    mix dala.shell                          # print the command for your shell
    mix dala.shell --exec "ls -la"          # run one command inside it
    mix dala.shell --exec "cat files/prefs.txt" --device 5554
    mix dala.shell --bundle com.example.myapp

## Platform behaviour

  * Android → `adb -s <serial> shell run-as <bundle>` — an interactive shell
    rooted at `/data/data/<bundle>`. `--exec` runs one shot via `run-as -c`.
  * iOS Simulator → prints the app's data container path on the host
    (`xcrun simctl get_app_container <udid> <bundle> data`); `--exec` runs a
    shell with the container as working directory.
  * iOS physical → not supported (no public sandbox exec).

Without `--exec`, the exact command is printed for copy-paste — interactive
TTY sessions are more reliable from your own terminal than from a Mix task.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
