---
title: "CLI reference"
description: "Look up every lim command, the flags they share, and the environment variables the CLI reads."
sidebar:
  label: "CLI"
  order: 1
---

The `lim` CLI drives every Limrun instance type from Linux, Windows, or macOS. This page lists every command in `lim` 0.35.1 and the behavior they share. For a command's full flag list, run it with `--help`:

```bash
lim ios create --help
```

## Install and update

Install the `lim` package globally with npm, pnpm, or bun. The CLI needs Node.js 20 LTS or newer:

```bash
npm install --global lim
```

Run the same command again to update, and `lim version` to print the installed version.

## Authenticate

Every command that talks to Limrun resolves an API key in this order:

1. The `--api-key` flag.
2. The `LIM_API_KEY` environment variable. The CLI also reads it from a `.env` file in the working directory.
3. A workload identity, when any `LIMRUN_WORKLOAD_IDENTITY_*` variable below is set. See [Workload identity federation](/access/workload-identity-federation).
4. The key stored in `~/.lim/config.yaml` by `lim login` (browser sign-in) or `lim set-api-key`.

`lim whoami` prints the identity, organization, and permissions the resolved credential carries, as JSON. `lim logout` removes the stored key. Headless hosts such as CI runners and cloud agents should set `LIM_API_KEY` from a secret. A command pinned to a single instance through `set-instance` or the `LIM_<TYPE>_INSTANCE_*` variables needs no API key at all; see [Sandboxed agents](/agents/sandboxed-agents).

## Target an instance

Device and build commands accept `--id <instance-id>`; `get` and `delete` take the ID as a positional argument instead (`lim ios delete <instance-id>`). Without an ID, they use the instance of that type you created last in the current workspace. The CLI records these per workspace in `~/.lim/last-instances.json`; a workspace is the current git repository or worktree unless you assign one with `lim set-workspace-dir`, `--workspace`, or `LIM_WORKSPACE`. See [The CLI's default instance](/concepts#the-clis-default-instance).

Pass `--id` explicitly in scripts, CI, and agents that create more than one instance.

When the targeted instance no longer exists, device and build commands create a replacement automatically; pass `--no-create` to fail instead. `create`, `delete`, `list`, `get`, `logs`, `tools`, `pull-file`, and `version` never create a replacement; they fail with not-found instead.

## Shared flags

Commands that act on instances share these flags. Account commands such as `lim login` and `lim skills install` take only some of them.

| Flag | What it does |
|---|---|
| `--api-key <value>` | API key for this command. Overrides the stored login and `LIM_API_KEY`. |
| `--json` | Print structured JSON instead of tables or plain text, where the command supports it. |
| `--quiet` | Suppress intermediate logs and print only the final result. |
| `--workspace <value>` | Workspace used to find the most recent instance when no ID is given. Defaults to the current git repository or worktree. On `lim xcode build` and `lim xcode test`, `--workspace` is the `.xcworkspace` passed to `xcodebuild`; use `LIM_WORKSPACE` there. |
| `--[no-]create` | Create a replacement instance when the target is not found. On by default. |
| `--[no-]daemon` | Route device commands through a background WebSocket daemon that starts on first use, so repeated commands reuse one connection. On by default; disable with `--no-daemon` or `LIM_DAEMON=false`. |

`lim session start` starts the same background connection explicitly for one instance, `lim session status` lists running sessions, and `lim session stop` stops one or all of them.

## Environment variables

| Variable | Read by | Meaning |
|---|---|---|
| `LIM_API_KEY` | Every command | Organization API key. |
| `LIM_WORKSPACE` | Every command | Workspace for resolving the default instance. |
| `LIM_DAEMON` | Every command | Set to `false` to disable the background connection daemon. |
| `LIM_DISABLE_TELEMETRY` | Every command | Set to any value, such as `1`, to disable CLI usage telemetry. |
| `LIMRUN_WORKLOAD_IDENTITY_BINDING_ID` | Every command | Federation binding to exchange a workload identity for. |
| `LIMRUN_WORKLOAD_IDENTITY_TOKEN` | Every command | The workload's JWT. Takes precedence over the file. |
| `LIMRUN_WORKLOAD_IDENTITY_TOKEN_FILE` | Every command | File containing the workload's JWT, read again at each renewal. |
| `LIMRUN_WORKLOAD_IDENTITY_TOKEN_INJECTED` | Every command | Set to `true` when an egress proxy adds the JWT to requests for `sts.limrun.com`. |
| `LIM_IOS_INSTANCE_URL`, `LIM_IOS_INSTANCE_TOKEN` | `lim ios` | Drive one simulator by its API URL and instance token, without an API key. |
| `LIM_ANDROID_INSTANCE_URL`, `LIM_ANDROID_INSTANCE_TOKEN`, `LIM_ANDROID_INSTANCE_ADB_URL` | `lim android` | The same for an emulator; the ADB URL enables `lim android connect`. |
| `LIM_XCODE_INSTANCE_URL`, `LIM_XCODE_INSTANCE_TOKEN` | `lim xcode` | The same for an Xcode sandbox. |
| `LIM_GRADLE_INSTANCE_URL`, `LIM_GRADLE_INSTANCE_TOKEN` | `lim gradle` | The same for a Gradle sandbox. |
| `LIM_WEBHOOK_URL`, `LIM_WEBHOOK_HEADERS`, `LIM_WEBHOOK_LABELS` | `lim xcode build`, `lim gradle build` | Defaults for `--webhook-url`, `--webhook-header`, and `--webhook-label`. See [Build logs and webhooks](/ci/build-logs-and-webhooks). |
| `LIM_SIGNED_UPLOAD_URL` | `lim xcode build`, `lim gradle build` | Default for `--signed-upload-url` when `--upload` is not set. |
| `LIM_KEYSTORE_PASSWORD`, `LIM_KEY_PASSWORD` | `lim gradle build` | Passwords for `--keystore`. See [Sign and publish](/android/sign-and-publish). |
| `LIM_PLAYSTORE_ACCESS_TOKEN` | `lim gradle build` | Google access token for `--upload-to-playstore`. |
| `LIM_TUNNEL_TOKEN` | `lim tunnel run` | Tunnel token, in place of `--token`. See [Private tunnels](/networking/private-tunnels). |

## Access tokens

Create a temporary credential with repeated `--permission` flags, and revoke it using the returned ID or token value:

```bash
lim access-token create --permission "android:$INSTANCE_ID:all" --ttl-seconds 900 --json
lim access-token revoke "$TOKEN_ID"
# Or pass the token itself:
lim access-token revoke "$ACCESS_TOKEN"
```

`create --quiet` prints only the token. `--json` includes its ID, token, permissions, and expiry. When given a token, `revoke` extracts its JWT `jti`; a token without that claim cannot be revoked this way. The command still needs your API key or login. See [Permissions and access tokens](/access/permissions) for the complete tables and revocation limits.

## Commands

The Guide column links to the page that explains a command in context. Commands without a guide are covered by their `--help` output.

### Store accounts

| Command | What it does | Guide |
|---|---|---|
| `lim ios apple auth` | Sign in to Apple and save an App Store Connect API key in Limrun secret storage | [Connect an Apple account](/guides/store-authentication#connect-an-apple-account) |
| `lim android play auth` | Sign in to Google and save a Google Play login in Limrun secret storage | [Connect a Google account](/guides/store-authentication#connect-a-google-account) |
| `lim ios apple secrets`, `lim android play secrets` | List the saved store credentials, how builds use them, and what is missing | [Check saved credentials](/guides/store-authentication#check-saved-credentials) |
| `lim ios apple <action>` | Manage Apple Developer and App Store Connect resources | [Apple resources](/guides/store-authentication#manage-apple-resources) |
| `lim android play <action>` | Manage Play signing, upload keys, and publishing | [Google Play resources](/guides/store-authentication#manage-google-play-resources) |

### Support

| Command | What it does | Guide |
|---|---|---|
| `lim support create` | Open a ticket for an organization and print its ID. Pass `--json` for the ticket object. | [Open support tickets from an integration](/support#open-a-ticket-from-an-integration) |

### iOS simulators

| Command | What it does | Guide |
|---|---|---|
| `lim ios app-log` | Stream or tail app logs from a running iOS instance | [Run a simulator](/ios/run-simulator#read-app-logs) |
| `lim ios app-logs` | List persisted app log captures of an iOS instance | [Run a simulator](/ios/run-simulator#keep-captures-after-the-session) |
| `lim ios attach-xcode` | Attach an Xcode instance to an iOS simulator |  |
| `lim ios ca add` | Trust a CA certificate on a running iOS instance | [Run a simulator](/ios/run-simulator#trust-a-ca-certificate) |
| `lim ios camera` | Control the simulated camera of a running iOS instance | [Run a simulator](/ios/run-simulator#simulate-the-camera) |
| `lim ios create` | Create a new iOS instance | [Run a simulator](/ios/run-simulator#create-a-simulator) |
| `lim ios delete` | Delete an iOS instance | [Run a simulator](/ios/run-simulator#reuse-and-clean-up) |
| `lim ios delete-file` | Delete a file or folder on the iOS simulator | [Run a simulator](/ios/run-simulator#transfer-files) |
| `lim ios element-tree` | Get the UI element tree from a running iOS instance | [Run a simulator](/ios/run-simulator#read-the-screen) |
| `lim ios events` | List persisted event log captures of an iOS instance | [Run a simulator](/ios/run-simulator#keep-captures-after-the-session) |
| `lim ios focused-element` | Show the element typed text would go to on a running iOS instance | [Run a simulator](/ios/run-simulator#check-where-typed-text-goes) |
| `lim ios fold` | Read or change the native iPhone Duo fold state | [Run a simulator](/ios/run-simulator#fold-an-iphone-duo) |
| `lim ios get` | Get details for a specific iOS instance | [Per-instance MCP server](/agents/mcp#get-the-mcp-url-and-token) |
| `lim ios info` | Get device information from a running iOS instance |  |
| `lim ios install` | Install an app on a running iOS instance. Alias: `install-app` | [Run a simulator](/ios/run-simulator#manage-apps) |
| `lim ios keychain restore` | Restore iOS keychain state from asset storage | [Run a simulator](/ios/run-simulator#save-and-restore-the-keychain) |
| `lim ios keychain reset` | Wipe the keychain of a running iOS instance | [Run a simulator](/ios/run-simulator#save-and-restore-the-keychain) |
| `lim ios keychain save` | Save iOS keychain state to asset storage | [Run a simulator](/ios/run-simulator#save-and-restore-the-keychain) |
| `lim ios launch-app` | Launch an app on a running iOS instance | [Run a simulator](/ios/run-simulator#manage-apps) |
| `lim ios list` | List iOS instances | [Run a simulator](/ios/run-simulator#reuse-and-clean-up) |
| `lim ios list-apps` | List installed apps on a running iOS instance | [Run a simulator](/ios/run-simulator#manage-apps) |
| `lim ios lldb` | Debug an app on a running iOS instance with LLDB | [Run a simulator](/ios/run-simulator#debug-an-app-with-lldb) |
| `lim ios ls` | List files in the iOS simulator or an app container | [Run a simulator](/ios/run-simulator#transfer-files) |
| `lim ios lsof` | List open files on a running iOS instance | [Run a simulator](/ios/run-simulator#use-macos-dev-tools) |
| `lim ios maestro` | Run Maestro flows against a running iOS instance | [Maestro](/testing/maestro) |
| `lim ios microphone` | Control the simulated microphone of a running iOS instance | [Run a simulator](/ios/run-simulator#simulate-the-microphone) |
| `lim ios open-url` | Open a URL on a running iOS instance | [Run a simulator](/ios/run-simulator#open-urls-and-deep-links) |
| `lim ios perf` | Show the CPU and memory of apps running on an iOS instance | [Run a simulator](/ios/run-simulator#check-app-cpu-and-memory) |
| `lim ios perf-captures` | List saved performance captures of an iOS instance | [Run a simulator](/ios/run-simulator#keep-captures-after-the-session) |
| `lim ios perform` | Perform multiple iOS actions in a single batch | [Run a simulator](/ios/run-simulator#run-a-batch-of-actions) |
| `lim ios permission get` | Read an app's privacy permission on a running iOS instance | [Run a simulator](/ios/run-simulator#grant-privacy-permissions) |
| `lim ios permission set` | Set an app's privacy permission on a running iOS instance | [Run a simulator](/ios/run-simulator#grant-privacy-permissions) |
| `lim ios press-key` | Press a key on a running iOS instance | [Run a simulator](/ios/run-simulator#type-and-press-keys) |
| `lim ios proxy clear` | Clear the system proxy of a running iOS instance | [Proxy configuration](/networking/proxy) |
| `lim ios proxy set` | Set the system proxy of a running iOS instance | [Proxy configuration](/networking/proxy) |
| `lim ios pull-file` | Pull a file from the iOS simulator | [Run a simulator](/ios/run-simulator#transfer-files) |
| `lim ios push-file` | Push a local file to the iOS simulator | [Run a simulator](/ios/run-simulator#transfer-files) |
| `lim ios record` | Start or stop video recording on a running iOS instance | [Run a simulator](/ios/run-simulator#record-a-video) |
| `lim ios recordings` | List persisted session recordings of an iOS instance | [Run a simulator](/ios/run-simulator#keep-captures-after-the-session) |
| `lim ios forward` | Access a server inside the simulator through localhost | [Forward a simulator port](/ios/run-simulator#access-a-server-inside-the-simulator) |
| `lim ios reverse` | Expose a local client-first service to the simulator | [Connect to local services](/ios/local-services#use-the-legacy-fixed-port-reverse-tunnel) |
| `lim ios restart-services` | Restart system services on a running iOS instance | [Run a simulator](/ios/run-simulator#read-and-write-user-defaults) |
| `lim ios screenshot` | Capture a screenshot from a running iOS instance | [Run a simulator](/ios/run-simulator#connect-a-device-client) |
| `lim ios scroll` | Scroll on a running iOS instance | [Run a simulator](/ios/run-simulator#scroll-and-swipe) |
| `lim ios set-instance` | Set the iOS instance targeted by subsequent commands | [Sandboxed agents](/agents/sandboxed-agents#point-the-sandboxed-cli-at-the-instance) |
| `lim ios set-orientation` | Rotate a running iOS instance | [Run a simulator](/ios/run-simulator#rotate-the-device) |
| `lim ios set-text` | Set text on an iOS element directly via accessibility | [Run a simulator](/ios/run-simulator#adjust-values) |
| `lim ios simctl` | Run simctl on a running iOS instance | [Run a simulator](/ios/run-simulator#use-macos-dev-tools) |
| `lim ios swipe` | Swipe between two points on a running iOS instance | [Run a simulator](/ios/run-simulator#scroll-and-swipe) |
| `lim ios sync` | Sync a built app bundle to a running iOS instance |  |
| `lim ios syslog` | Stream syslog from a running iOS instance | [Run a simulator](/ios/run-simulator#read-app-logs) |
| `lim ios tap` | Tap at coordinates on a running iOS instance | [Run a simulator](/ios/run-simulator#tap-an-element) |
| `lim ios tap-element` | Tap an iOS element by accessibility selector | [Run a simulator](/ios/run-simulator#tap-an-element) |
| `lim ios terminate-app` | Terminate an app on a running iOS instance | [Run a simulator](/ios/run-simulator#manage-apps) |
| `lim ios toggle-keyboard` | Toggle the iOS software keyboard | [Run a simulator](/ios/run-simulator#type-and-press-keys) |
| `lim ios tunnel` | Expose declared local TCP destinations to the simulator | [Connect to local services](/ios/local-services#start-a-tunnel-from-an-ios-simulator) |
| `lim ios tunnel status` | Show the active destination tunnel | [Connect to local services](/ios/local-services#start-a-tunnel-from-an-ios-simulator) |
| `lim ios tunnel stop` | Stop the active destination tunnel | [Connect to local services](/ios/local-services#start-a-tunnel-from-an-ios-simulator) |
| `lim ios type` | Type text into the focused iOS input field | [Run a simulator](/ios/run-simulator#type-and-press-keys) |
| `lim ios xcodebuild` | Run xcodebuild on a running iOS instance | [Run a simulator](/ios/run-simulator#use-macos-dev-tools) |
| `lim ios xcrun` | Run xcrun on a running iOS instance | [Run a simulator](/ios/run-simulator#use-macos-dev-tools) |

### Android emulators

| Command | What it does | Guide |
|---|---|---|
| `lim android adb-shell` | Run a shell command on a running Android instance (like adb shell) | [Run an emulator](/android/run-emulator#run-shell-commands-and-move-files-without-a-tunnel) |
| `lim android app-log` | Stream or tail app logs from a running Android instance | [Run an emulator](/android/run-emulator#read-logs) |
| `lim android app-logs` | List persisted app log captures of an Android instance | [Run an emulator](/android/run-emulator#create-options) |
| `lim android camera` | Control the virtual camera of a running Android instance | [Run an emulator](/android/run-emulator#simulate-the-camera-microphone-and-network) |
| `lim android connect` | Connect to an existing Android instance via ADB tunnel | [Run an emulator](/android/run-emulator#choose-a-connection-sdk-client-or-adb-tunnel) |
| `lim android create` | Create a new Android instance | [Run an emulator](/android/run-emulator#create-an-emulator) |
| `lim android delete` | Delete an Android instance | [Run an emulator](/android/run-emulator#delete-the-emulator) |
| `lim android element-tree` | Get the UI element tree from a running Android instance | [Run an emulator](/android/run-emulator#get-the-element-tree) |
| `lim android events` | List persisted event log captures of an Android instance | [Run an emulator](/android/run-emulator#create-options) |
| `lim android find-element` | Find Android elements by selector | [Run an emulator](/android/run-emulator#find-elements) |
| `lim android get` | Get details for a specific Android instance |  |
| `lim android install` | Install an app on a running Android instance. Alias: `install-app` | [Run an emulator](/android/run-emulator#install-on-a-running-instance) |
| `lim android launch-app` | Launch an app on a running Android instance | [Run an emulator](/android/run-emulator#launch-and-stop-apps) |
| `lim android list` | List Android instances | [Run an emulator](/android/run-emulator#delete-the-emulator) |
| `lim android logcat` | Run logcat on a running Android instance | [Run an emulator](/android/run-emulator#read-logs) |
| `lim android open-url` | Open a URL on a running Android instance | [Run an emulator](/android/run-emulator#open-urls) |
| `lim android perf` | Show the CPU and memory of apps running on an Android instance | [Run an emulator](/android/run-emulator#check-app-cpu-and-memory) |
| `lim android perf-captures` | List saved performance captures of an Android instance | [Run an emulator](/android/run-emulator#save-samples-beyond-ten-minutes) |
| `lim android play-on-microphone` | Play a local audio file as microphone input on a running Android instance | [Run an emulator](/android/run-emulator#simulate-the-camera-microphone-and-network) |
| `lim android press-key` | Press a key on a running Android instance | [Run an emulator](/android/run-emulator#tap-type-and-press-keys) |
| `lim android proxy clear` | Clear the system proxy of a running Android instance | [Proxy configuration](/networking/proxy) |
| `lim android proxy set` | Set the system proxy of a running Android instance | [Proxy configuration](/networking/proxy) |
| `lim android pull-file` | Pull a file from a running Android instance | [Run an emulator](/android/run-emulator#run-shell-commands-and-move-files-without-a-tunnel) |
| `lim android push-file` | Push a local file to a running Android instance | [Run an emulator](/android/run-emulator#run-shell-commands-and-move-files-without-a-tunnel) |
| `lim android record` | Start or stop video recording on a running Android instance | [Run an emulator](/android/run-emulator#record-the-screen) |
| `lim android recordings` | List persisted session recordings of an Android instance | [Run an emulator](/android/run-emulator#create-options) |
| `lim android screenshot` | Capture a screenshot from a running Android instance | [Run an emulator](/android/run-emulator#take-a-screenshot) |
| `lim android scroll` | Scroll on a running Android instance | [Run an emulator](/android/run-emulator#scroll) |
| `lim android set-instance` | Set the Android instance targeted by subsequent commands | [Sandboxed agents](/agents/sandboxed-agents#point-the-sandboxed-cli-at-the-instance) |
| `lim android set-wifi-bandwidth` | Set Wi-Fi bandwidth limits on a running Android instance | [Run an emulator](/android/run-emulator#simulate-the-camera-microphone-and-network) |
| `lim android sync` | Sync an APK to a running Android instance | [Run an emulator](/android/run-emulator#sync-apk-rebuilds) |
| `lim android tap` | Tap at coordinates on a running Android instance | [Run an emulator](/android/run-emulator#tap-type-and-press-keys) |
| `lim android tap-element` | Tap an Android element by selector | [Run an emulator](/android/run-emulator#tap-type-and-press-keys) |
| `lim android terminate-app` | Terminate an app on a running Android instance | [Run an emulator](/android/run-emulator#launch-and-stop-apps) |
| `lim android tunnel` | Send selected Android TCP destinations through this machine | [Connect to local services](/android/local-services) |
| `lim android tunnel status` | Show the active destination tunnel | [Connect to local services](/android/local-services#start-a-tunnel) |
| `lim android tunnel stop` | Stop the active destination tunnel | [Connect to local services](/android/local-services#start-a-tunnel) |
| `lim android type` | Type text into an Android input field | [Run an emulator](/android/run-emulator#tap-type-and-press-keys) |

### Xcode sandboxes

| Command | What it does | Guide |
|---|---|---|
| `lim xcode attach-macos` | Attach a macOS instance to an Xcode instance | [Build a Mac app](/macos/build-mac-app#attach-the-macos-instance) |
| `lim xcode attach-simulator` | Attach an iOS simulator to an Xcode instance | [Build with Xcode](/ios/build-with-xcode#install-on-a-simulator) |
| `lim xcode build` | Run xcodebuild on an Xcode sandbox | [Build with Xcode](/ios/build-with-xcode) |
| `lim xcode create` | Create a new Xcode instance | [Build with Xcode](/ios/build-with-xcode#pick-your-interface) |
| `lim xcode delete` | Delete an Xcode instance | [GitHub Actions recipes](/ci/github-actions#build-a-signed-ipa-on-every-pull-request) |
| `lim xcode detach-macos` | Detach the macOS instance from an Xcode instance | [Build a Mac app](/macos/build-mac-app#detach-the-macos-instance) |
| `lim xcode get` | Get details for a specific Xcode instance |  |
| `lim xcode list` | List Xcode instances | [PR previews](/ci/pr-previews#clean-up-when-a-pr-closes) |
| `lim xcode logs` | Fetch logs for an active, recent, or specific Xcode build | [Build logs and webhooks](/ci/build-logs-and-webhooks#read-build-logs) |
| `lim xcode rbe` | Legacy: serve a local Bazel remote-execution endpoint backed by a Limrun Xcode instance. Use `lim bazel setup` for new workspaces | [Build with Bazel (legacy)](/ios/build-with-bazel) |
| `lim xcode rbe upload` | Legacy: upload the latest successful `lim xcode rbe` build as an asset | [Build with Bazel (legacy)](/ios/build-with-bazel#upload-builds-as-assets) |
| `lim xcode run` | Run a command on a xcode sandbox | [Build with Xcode](/ios/build-with-xcode#run-project-commands) |
| `lim xcode pull-file <path> [destination]` | Download a file from a remote builder | [Download a file from remote builder](/ios/build-with-xcode#download-a-file-from-remote-builder) |
| `lim xcode set-instance` | Set the Xcode instance targeted by subsequent commands | [Sandboxed agents](/agents/sandboxed-agents#point-the-sandboxed-cli-at-the-instance) |
| `lim xcode sync` | Continuously sync local source code to an Xcode sandbox | [Build with Xcode](/ios/build-with-xcode#sync-your-source) |
| `lim xcode test` | Build a scheme's test targets on an Xcode sandbox and run them on an attached iOS simulator, streaming per-case results. Exits non-zero when tests fail. Creates and attaches the instances it needs unless --id points at an existing target | [XCTest](/testing/xctest) |
| `lim xcode tools` | Show the selected developer tools in a xcode sandbox | [Xcode and tool versions](/ios/xcode-and-tools#select-developer-tools) |
| `lim xcode tools install` | Install selected tools in a xcode sandbox | [Xcode and tool versions](/ios/xcode-and-tools#select-developer-tools) |
| `lim xcode use` | Select developer tool versions for a xcode sandbox | [Xcode and tool versions](/ios/xcode-and-tools#pin-a-version-for-the-workspace) |
| `lim xcode version` | Show the Xcode version the sandbox builds with | [Xcode and tool versions](/ios/xcode-and-tools#list-the-installed-versions) |
| `lim xcode version list` | List the Xcode versions the sandbox can build with | [Xcode and tool versions](/ios/xcode-and-tools#list-the-installed-versions) |
| `lim xcode version set` | Pick the Xcode version this workspace builds with | [Xcode and tool versions](/ios/xcode-and-tools#pin-a-version-for-the-workspace) |
| `lim xcode version unset` | Forget the Xcode version preference of this workspace | [Xcode and tool versions](/ios/xcode-and-tools#forget-the-preference) |

### Gradle sandboxes

| Command | What it does | Guide |
|---|---|---|
| `lim gradle build` | Build an Android project on a gradle instance | [Build with Gradle](/android/build-with-gradle#build-a-project) |
| `lim gradle create` | Create a new gradle instance | [Build with Gradle](/android/build-with-gradle#build-a-project) |
| `lim gradle delete` | Delete a gradle instance | [GitHub Actions recipes](/ci/github-actions#build-a-signed-aab-on-every-push) |
| `lim gradle get` | Get a gradle instance |  |
| `lim gradle list` | List gradle instances |  |
| `lim gradle logs` | Fetch logs for an active, recent, or specific Gradle build | [Build logs and webhooks](/ci/build-logs-and-webhooks#read-build-logs) |
| `lim gradle run` | Run a command on a gradle sandbox | [Build with Gradle](/android/build-with-gradle#select-tools) |
| `lim gradle pull-file <path> [destination]` | Download a file from a remote builder | [Download a file from remote builder](/android/build-with-gradle#download-a-file-from-remote-builder) |
| `lim gradle set-instance` | Set the gradle instance targeted by subsequent commands | [Sandboxed agents](/agents/sandboxed-agents#point-the-sandboxed-cli-at-the-instance) |
| `lim gradle sync` | Sync local source code to a Gradle sandbox |  |
| `lim gradle tools` | Show the selected developer tools in a gradle sandbox | [Build with Gradle](/android/build-with-gradle#select-tools) |
| `lim gradle tools install` | Install selected tools in a gradle sandbox | [Build with Gradle](/android/build-with-gradle#select-tools) |
| `lim gradle use` | Select developer tool versions for a gradle sandbox | [Build with Gradle](/android/build-with-gradle#select-tools) |

### macOS virtual machines

| Command | What it does | Guide |
|---|---|---|
| `lim macos app-log` | Print or follow an app's log | [Run a macOS VM](/macos/run-vm#read-app-logs) |
| `lim macos app-logs` | List persisted app log captures | [Run a macOS VM](/macos/run-vm#keep-captures-after-the-session) |
| `lim macos ca add` | Trust a CA certificate in the virtual machine | [Run a macOS VM](/macos/run-vm#trust-a-ca-certificate) |
| `lim macos create` | Create a macOS instance and wait until it is ready | [Run a macOS VM](/macos/run-vm#create-a-macos-instance) |
| `lim macos delete` | Delete a macOS instance and discard its disk | [Run a macOS VM](/macos/run-vm#delete-the-instance) |
| `lim macos delete-file` | Delete a file or folder in the virtual machine | [Run a macOS VM](/macos/run-vm#move-files) |
| `lim macos drag` | Drag with the mouse (alias `swipe`) | [Run a macOS VM](/macos/run-vm#drive-the-desktop) |
| `lim macos events` | List persisted event log captures | [Run a macOS VM](/macos/run-vm#keep-captures-after-the-session) |
| `lim macos forward` | Forward a local port to a server in the virtual machine | [Run a macOS VM](/macos/run-vm#access-a-server-inside-the-vm) |
| `lim macos get` | Show a macOS instance and its console URL | [Run a macOS VM](/macos/run-vm#use-the-desktop) |
| `lim macos launch-app` | Launch an app or bring it to the front | [Run a macOS VM](/macos/run-vm#launch-and-stop-apps) |
| `lim macos list` | List macOS instances | [Run a macOS VM](/macos/run-vm#list-instances) |
| `lim macos list-apps` | List the apps the guest user can open | [Run a macOS VM](/macos/run-vm#launch-and-stop-apps) |
| `lim macos ls` | List a folder in the virtual machine | [Run a macOS VM](/macos/run-vm#move-files) |
| `lim macos perf` | Show the CPU and memory of running apps | [Run a macOS VM](/macos/run-vm#check-app-cpu-and-memory) |
| `lim macos perf-captures` | List persisted performance captures | [Run a macOS VM](/macos/run-vm#keep-captures-after-the-session) |
| `lim macos press-key` | Press a key with optional modifiers | [Run a macOS VM](/macos/run-vm#drive-the-desktop) |
| `lim macos pull` | Download a file or folder from the virtual machine | [Run a macOS VM](/macos/run-vm#move-files) |
| `lim macos push-file` | Upload a file to the virtual machine | [Run a macOS VM](/macos/run-vm#move-files) |
| `lim macos record` | Start or stop a screen recording | [Run a macOS VM](/macos/run-vm#record-a-video) |
| `lim macos recordings` | List persisted screen recordings | [Run a macOS VM](/macos/run-vm#keep-captures-after-the-session) |
| `lim macos run` | Run a shell command in the virtual machine (alias `exec`) | [Run a macOS VM](/macos/run-vm#run-shell-commands) |
| `lim macos screenshot` | Save a screenshot as a JPEG | [Run a macOS VM](/macos/run-vm#drive-the-desktop) |
| `lim macos scroll` | Scroll the view under the pointer | [Run a macOS VM](/macos/run-vm#drive-the-desktop) |
| `lim macos snapshot delete` | Delete a saved disk snapshot | [Keep a macOS disk](/macos/snapshots#inspect-and-delete-saved-snapshots) |
| `lim macos snapshot get` | Show a saved disk snapshot | [Keep a macOS disk](/macos/snapshots#inspect-and-delete-saved-snapshots) |
| `lim macos snapshot list` | List saved disk snapshots | [Keep a macOS disk](/macos/snapshots#inspect-and-delete-saved-snapshots) |
| `lim macos speaker` | Record the speaker to a WAV file | [Run a macOS VM](/macos/run-vm#record-the-speaker) |
| `lim macos ssh` | Turn on SSH and forward a local port to it | [Run a macOS VM](/macos/run-vm#open-an-ssh-session) |
| `lim macos sync` | Sync a local folder into the virtual machine | [Run a macOS VM](/macos/run-vm#move-files) |
| `lim macos tap` | Click at a point | [Run a macOS VM](/macos/run-vm#drive-the-desktop) |
| `lim macos terminate-app` | Stop every process of an app | [Run a macOS VM](/macos/run-vm#launch-and-stop-apps) |
| `lim macos tunnel` | Expose local destinations to the virtual machine | [Run a macOS VM](/macos/run-vm#reach-services-on-your-machine) |
| `lim macos tunnel status` | Show the active destination tunnel | [Run a macOS VM](/macos/run-vm#reach-services-on-your-machine) |
| `lim macos tunnel stop` | Stop the active destination tunnel | [Run a macOS VM](/macos/run-vm#reach-services-on-your-machine) |
| `lim macos type` | Type text into the focused field | [Run a macOS VM](/macos/run-vm#drive-the-desktop) |

### Bazel

| Command | What it does | Guide |
|---|---|---|
| `lim bazel setup` | Set up a Bazel workspace to build on Limrun's build plane | [Build on Limrun](/bazel/build-on-limrun) |

### Assets

| Command | What it does | Guide |
|---|---|---|
| `lim asset delete` | Delete an asset | [Asset Storage](/platform/asset-storage#list-get-and-delete-assets) |
| `lim asset get` | List assets or get a specific one |  |
| `lim asset list` | List assets or get a specific one | [Asset Storage](/platform/asset-storage#use-expo-go-and-other-catalog-apps) |
| `lim asset pull` | Download an asset file | [Asset Storage](/platform/asset-storage#list-get-and-delete-assets) |
| `lim asset push` | Upload an asset file | [Asset Storage](/platform/asset-storage#upload-an-asset) |

### Private tunnels

| Command | What it does | Guide |
|---|---|---|
| `lim tunnel create` | Create a private tunnel and print the command that runs it | [Private tunnels](/networking/private-tunnels#create-a-tunnel) |
| `lim tunnel delete` | Delete a private tunnel | [Private tunnels](/networking/private-tunnels#delete-a-tunnel) |
| `lim tunnel list` | List private tunnels | [Private tunnels](/networking/private-tunnels#create-a-tunnel) |
| `lim tunnel rotate` | Issue a private tunnel's token and revoke the old one | [Private tunnels](/networking/private-tunnels#rotate-the-token) |
| `lim tunnel run` | Serve a private tunnel to every instance that names it | [Private tunnels](/networking/private-tunnels#run-the-connector) |
| `lim tunnel update` | Replace a private tunnel's selectors | [Private tunnels](/networking/private-tunnels#change-the-selectors) |

### Skills, sessions, and account

| Command | What it does | Guide |
|---|---|---|
| `lim login` | Log in to Limrun |  |
| `lim logout` | Log out of Limrun |  |
| `lim run` | Get started with Limrun |  |
| `lim session start` | Start a persistent session that keeps one connection open to an instance |  |
| `lim session status` | Show active sessions |  |
| `lim session stop` | Stop one or all active sessions |  |
| `lim set-api-key` | Set the stored Limrun API key |  |
| `lim set-workspace-dir` | Assign a directory to an isolated lim workspace |  |
| `lim skills install` | Install Limrun skills for AI coding agents | [Set up a coding agent](/agents/setup#install-the-limrun-skills) |
| `lim version` | Print the installed CLI version |  |
| `lim whoami` | Show your authenticated identity and permissions as JSON | [Workload identity federation](/access/workload-identity-federation#check-the-identity) |

## Build upload permissions

`lim xcode build --upload <name>` and `lim gradle build --upload <name>` authorize the upload inside the workload. The CLI adds exact-name create, upload, and expiry-update permissions to the creation request. Add other grants with repeatable `--permission <asset:target:verb>` flags. Every instance create command accepts `--permission` too.

Named uploads keep the selected instance, including a workspace prepared with earlier `create` and `run` commands. The CLI adds exact-name create, upload, and update grants to the live role, preserving other grants and retrying concurrent changes. The caller must control the instance and be able to delegate the resulting permissions. RBE auto-upload adds grants at tunnel startup; each permission-based upload obtains fresh workload credentials. `--reuse-if-exists` matches labels regardless of permissions; selection itself leaves the role unchanged. `--signed-upload-url` and its environment default retain their existing behavior and do not change permissions.

See [Instance roles](/access/instance-roles) for SDK examples and the permission syntax.
