---
title: "Quickstart"
description: "Install the CLI, build a sample iOS app on a cloud Mac, and drive it on a simulator from your terminal."
canonical_url: "https://docs.limrun.com/docs/quickstart"
markdown_url: "https://docs.limrun.com/docs/quickstart.md"
last_updated: "2026-11-23"
x_farming_labs_generated_preamble: true
---

# Quickstart
URL: /docs/quickstart
LLM index: /llms.txt
Description: Install the CLI, build a sample iOS app on a cloud Mac, and drive it on a simulator from your terminal.

# Quickstart

This takes about three minutes. You need Node.js 20 LTS or newer; you do not need a Mac.

<Note>
  Setting this up for a coding agent instead? Follow [Set up a coding agent](/docs/agents/cli). It installs the Limrun skills, which walk the agent through the same loop.
</Note>

## Try it in the browser first

The [console](https://console.limrun.com) has a **Playground** that creates and streams an instance without installing anything. Pick an operating system, optionally an app to preinstall, and click **Start**.

<Frame>
  <img src="/https/docs.limrun.com/images/console/01-playground-empty.png" alt="Limrun console Playground with Organization, Operating System, Apps, Open URL, and Start controls" />
</Frame>

## Build and run an app

<Steps>
  <Step title="Install the CLI">
    Install the `lim` package globally with the package manager you use:

    ```bash
    npm  install --global lim
    pnpm add     --global lim
    bun  add     --global lim
    ```
  </Step>

  <Step title="Authenticate">
    On a machine with a browser, log in:

    ```bash
    lim login
    ```

    The CLI opens the console in your browser, completes authentication, and stores the API key in `~/.lim/config.yaml`.

    On a headless host such as a CI runner, a devcontainer, or a cloud agent, create a key instead: open [console.limrun.com/settings](https://console.limrun.com/settings), go to **API Keys**, click **Create Token**, and export it:

    ```bash
    export LIM_API_KEY=lim_...
    ```
  </Step>

  <Step title="Get an iOS project">
    Clone the sample app, or `cd` into an iOS project you already have:

    ```bash
    git clone https://github.com/limrun-inc/sample-native-app.git
    cd sample-native-app
    ```
  </Step>

  <Step title="Build on a cloud Mac">
    Run the build from the project directory:

    ```bash
    lim xcode build .
    ```

    The first run creates an Xcode sandbox, syncs the project to it, and runs `xcodebuild` there. Build logs stream back as they happen. For a project with several schemes, add `--scheme <name>` and either `--workspace <path>` or `--project <path>`.
  </Step>

  <Step title="Run it on a simulator">
    Create a simulator attached to the sandbox:

    ```bash
    lim ios create --attach --reuse-if-exists --label project=quickstart
    ```

    Attaching installs and launches the latest build right away, and every later successful build reinstalls it. The CLI prints the **signed stream URL** and opens it in your browser. The URL carries its own token, so anyone you share it with can watch and control the simulator without signing in.

    <Frame>
      <img src="/https/docs.limrun.com/images/console/06-ios-app-launched.png" width="300" alt="The sample app on a remote iOS simulator, showing the lim.run logo, the Hello, world! heading, a name field, and a Say hello button" />
    </Frame>
  </Step>
</Steps>

## Drive the app from your shell

The sample's first screen has a name field and a **Say hello** button. Read the screen, type a name, and check the result with `lim ios` commands. Without `--id`, each command targets the instance you created last in this git repository:

```bash
lim ios element-tree
lim ios tap-element --ax-unique-id nameField
lim ios type "Ada" --enter
lim ios screenshot ./screen.jpg
```

The heading changes to `Hello, Ada!`. The element tree lists every label, accessibility identifier, type, and frame on screen, which is where `nameField` comes from. Read the tree before each action and select elements by identifier; selectors keep working when the layout changes, pixel coordinates do not.

`type` sends real key presses at the cursor, so it adds to whatever the field already holds, and it fails when no field has focus. To replace a field's whole value instead, use `set-text`, then tap the button:

```bash
lim ios set-text "Grace" --ax-unique-id nameField
lim ios tap-element --ax-unique-id greetButton
```

The app also logs each greeting. Read the log and keep only the sample's own lines:

```bash
lim ios app-log com.limrun.sample-native --tail 50 | grep '\[sample\]'
```

Change the greeting text in `ContentView.swift` and run `lim xcode build .` again. The new build replaces the app on the attached simulator.

## Clean up

Delete both instances when you are done. Without an ID, `delete` removes the last instance of that type the CLI created for you:

```bash
lim ios delete
lim xcode delete
```

Instances you forget are deleted by your organization's inactivity timeout.

## Next steps

<Columns cols={2}>
  <Card title="Concepts" icon="layers" href="/https/docs.limrun.com/docs/concepts">
    Instances, tokens, labels, timeouts, and placement in one page.
  </Card>
  <Card title="Build with Xcode" icon="hammer" href="/https/docs.limrun.com/docs/ios/build-with-xcode">
    Schemes, sync rules, build settings, and artifact uploads.
  </Card>
  <Card title="Run a simulator" icon="smartphone" href="/https/docs.limrun.com/docs/ios/run-simulator">
    Every device action: taps, batches, recordings, logs, files, and camera.
  </Card>
  <Card title="Run an emulator" icon="tablet-smartphone" href="/https/docs.limrun.com/docs/android/run-emulator">
    The same loop on Android, with ADB, scrcpy, and Android Studio.
  </Card>
</Columns>

## Sitemap

See the full [sitemap](/sitemap.md) for all pages.
Docs-scoped sitemap: [/docs/sitemap.md](/docs/sitemap.md).
Well-known sitemap: [/.well-known/sitemap.md](/.well-known/sitemap.md).
