---
title: Native Builds with Azure DevOps
description: Trigger Capawesome Cloud native iOS and Android builds from Azure Pipelines using the Capawesome CLI.
---

# Azure DevOps

Trigger native builds from Azure Pipelines. The build runs in Capawesome Cloud, so the pipeline only authenticates and starts the build.

## Prerequisites

Create an [API token](../../accounts/tokens.md) in Capawesome Cloud and store it as a secret pipeline variable named `CAPAWESOME_TOKEN`.

## Pipeline

```yaml title="azure-pipelines.yml"
trigger: none

pool:
  vmImage: ubuntu-latest

variables:
  CAPAWESOME_CLI_VERSION: "4.9.3"
  CAPAWESOME_CLOUD_APP_ID: "00000000-0000-0000-0000-000000000000"

steps:
  - script: npx @capawesome/cli@$(CAPAWESOME_CLI_VERSION) login --token $(CAPAWESOME_TOKEN)
    displayName: Authenticate with Capawesome Cloud
  - script: >
      npx @capawesome/cli@$(CAPAWESOME_CLI_VERSION) apps:builds:create
      --app-id $(CAPAWESOME_CLOUD_APP_ID)
      --platform ios
      --git-ref $(Build.SourceVersion)
      --yes
    displayName: Create build
```

Pin the CLI version for reproducible runs. To attach a signing certificate or environment, pass the relevant flags — see the [CLI reference](../../cli/commands.md#appsbuildscreate).
