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

# Exec

> One shell command in your project folder on the Android machine

> [!NOTE]
>
> **When to use it.** For anything that is not a build, test or screenshot: a Gradle task, a lint run, a look at the machine

## Run it

```bash theme={"system"}
box exec --platform android -- ./gradlew projects
```

<video controls muted loop playsInline autoPlay preload="metadata" poster="/media/docs/android-exec-poster.webp" src="https://mintcdn.com/xenoci/ZFKGlbE4Q2bw14Om/media/docs/android-exec.mp4?fit=max&auto=format&n=ZFKGlbE4Q2bw14Om&q=85&s=c662e9bb3d014527b43af2118a493ac9" width="1280" height="778" />

box exec --platform android -- ./gradlew projects

Everything after `--` runs with bash in the project folder on the Android machine. Here on [android/compose-samples JetLagged](https://github.com/android/compose-samples/tree/main/JetLagged) (Apache 2.0)

```text theme={"system"}
$ box exec --platform android -- ./gradlew projects
box: queue: job bj_347PSgyO24qq1FWb (exec, android, $0.02/min) submitted
…
[box] kind=exec platform=android project=jetlagged
Projects:
------------------------------------------------------------
Root project 'JetLagged'
------------------------------------------------------------
Location: /home/runner/xenoci-box-android/src
Project hierarchy:
Root project 'JetLagged'
\--- Project ':app'
…
box: status: succeeded
box: results: saved to ./.box/out/bj_347PSgyO24qq1FWb/ (exec.log)
box: bj_347PSgyO24qq1FWb succeeded, 60s billed, $0.02
```

> [!NOTE]
>
> Job `bj_347PSgyO24qq1FWb` on a production Android machine: 60s billed, \$0.02

The output is also saved as `.box/out/<job>/exec.log`. The command’s exit code is the job’s

![The JetLagged sample on an Android emulator](https://mintcdn.com/xenoci/ZFKGlbE4Q2bw14Om/images/docs-android-run.png?fit=max\&auto=format\&n=ZFKGlbE4Q2bw14Om\&q=85\&s=ffa89d011d44c7246cd4b3eab299e239)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.