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

# Bazel

> Run the dev loop on a Bazel project

Bazel-based mobile projects use a rebuild-based dev loop. Revyl detects Bazel workspaces by looking for `MODULE.bazel`, `WORKSPACE.bazel`, or `WORKSPACE` files. Because Bazel build targets and artifact paths vary per project, `revyl init` creates placeholder platform entries that you fill in with your specific build targets.

### What `revyl init` shows

```
Detected: Bazel
  Workspace: MODULE.bazel
  Note: Revyl detected a Bazel workspace but cannot infer build targets automatically.
        Configure build.platforms.ios and/or build.platforms.android in .revyl/config.yaml.
```

### Example configuration

```yaml theme={null}
build:
  system: Bazel
  platforms:
    ios:
      commands:
        - "bazel run //tools:generate_mobile_sources"
        - "bazel build //ios:MyApp -c dbg"
      output: "bazel-bin/ios/MyApp.app"
    android:
      command: "bazel build //android:app -c dbg"
      output: "bazel-bin/android/app.apk"
```
