mix dala.shell (dala_dev v0.4.0)

Copy Markdown View Source

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.