Start here

Install & activate

Install the otadart CLI from otadart.dev, sign in, and add OTADart to your Flutter app.

Before you start

  1. Flutter installed (it includes Dart). Check with: flutter --version
  2. An OTADart account — sign up free at otadart.dev with Google or email.
  3. For iOS builds: a Mac with Xcode.

Install on macOS or Linux

curl -fsSL https://otadart.dev/install.sh | bash

The installer downloads the otadart program for your computer from otadart.dev, checks its fingerprint, puts it in ~/.otadart/bin and adds that folder to your PATH. Open a new terminal afterwards.

Note: Works on Macs with Apple silicon and on Linux (x64 and arm64). Intel Macs are coming soon.

Install on Windows

irm https://otadart.dev/install.ps1 | iex

Run it in PowerShell. The CLI goes to %USERPROFILE%\.otadart\bin and is added to your PATH. Open a new terminal afterwards.

Note: The Windows build is coming soon. Until then, use macOS or Linux.

Check it works

otadart --version
otadart doctor

doctor checks Flutter, your project and the connection to otadart.dev.

Activate: sign in

otadart login

Your browser opens. Continue with Google or email and click Allow — the CLI is now linked to your workspace. Check with:

otadart account
WhereHow to activate
Your computerotadart login
CI (recommended)Set OTADART_API_KEY=otd_… (console → API keys)
CI (alternative)otadart login --ci, then set OTADART_SESSION
Sign outotadart logout

Add OTADart to your app

cd my_app
otadart init

init creates your app on otadart.dev, writes otadart.yaml and lib/otadart_patch.dart, and adds the otadart package to pubspec.yaml. To add the package yourself:

flutter pub add 'otadart:{"hosted":"https://otadart.dev/pub"}'

or in pubspec.yaml:

dependencies:
  otadart:
    hosted: https://otadart.dev/pub
    version: ^0.1.0-dev.1

Then start it when your app launches:

import 'package:otadart/otadart.dart';

final updates = await OtaDart.initialize(appId: 'YOUR-APP-ID');
await updates.checkForUpdate();
// once the app is working:
await updates.markCurrentBootHealthy();

Ship

AndroidiOSAll platforms
otadart release androidotadart release iosotadart release all
otadart patch androidotadart patch iosotadart patch all

Update

otadart upgrade

Or run the install command again.

Uninstall the CLI

otadart uninstall

Signs you out, deletes ~/.otadart and removes it from your PATH. Your apps and your account on otadart.dev are not touched. You can also use the install script:

macOS & LinuxWindows (PowerShell)
curl -fsSL https://otadart.dev/install.sh | bash -s -- --uninstall$env:OTADART_UNINSTALL=1; irm https://otadart.dev/install.ps1 | iex

Remove OTADart from an app

flutter pub remove otadart
rm otadart.yaml lib/otadart_patch.dart *.public.pem
  1. Delete the OtaDart.initialize(…) and checkForUpdate() lines from your code.
  2. Remove otadart.yaml and the .public.pem file from the assets list in pubspec.yaml.
  3. Ship a store update. Users keep receiving patches until they install it.
  4. Optional: delete its releases in the console (app → Releases → release → Settings).

Related: Quick start · Choosing platforms · Preview · App IDs & public keys · Platform availability