Start here
Install & activate
Install the otadart CLI from otadart.dev, sign in, and add OTADart to your Flutter app.
Before you start
- Flutter installed (it includes Dart). Check with: flutter --version
- An OTADart account — sign up free at otadart.dev with Google or email.
- For iOS builds: a Mac with Xcode.
Install on macOS or Linux
curl -fsSL https://otadart.dev/install.sh | bashThe 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 | iexRun 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 doctordoctor checks Flutter, your project and the connection to otadart.dev.
Activate: sign in
otadart loginYour browser opens. Continue with Google or email and click Allow — the CLI is now linked to your workspace. Check with:
otadart account| Where | How to activate |
|---|---|
| Your computer | otadart login |
| CI (recommended) | Set OTADART_API_KEY=otd_… (console → API keys) |
| CI (alternative) | otadart login --ci, then set OTADART_SESSION |
| Sign out | otadart logout |
Add OTADart to your app
cd my_app
otadart initinit 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.1Then 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
| Android | iOS | All platforms |
|---|---|---|
| otadart release android | otadart release ios | otadart release all |
| otadart patch android | otadart patch ios | otadart patch all |
Update
otadart upgradeOr run the install command again.
Uninstall the CLI
otadart uninstallSigns 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 & Linux | Windows (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- Delete the OtaDart.initialize(…) and checkForUpdate() lines from your code.
- Remove otadart.yaml and the .public.pem file from the assets list in pubspec.yaml.
- Ship a store update. Users keep receiving patches until they install it.
- Optional: delete its releases in the console (app → Releases → release → Settings).