Reference
Command cheat sheet
Every OTADart command you need, from install to rollback.
Install & sign in
curl -fsSL https://otadart.dev/install.sh | bash
otadart login
otadart init
otadart doctorAndroid release builds
| You want | Command |
|---|---|
| App bundle for Google Play | otadart release android |
| App bundle + APK | otadart release android --artifact apk |
| APK, 64-bit ARM only | otadart release android --artifact apk --target-platform android-arm64 |
| Specific version | otadart release android --build-name=1.0.0 --build-number=1 |
| Obfuscated | otadart release android --obfuscate --split-debug-info=build/symbols |
| Build and check only | otadart release android --dry-run |
Preview a release
| You want | Command |
|---|---|
| List devices | flutter devices |
| Pick a release | otadart preview |
| Specific release | otadart preview --platform android --release-version 1.0.0+1 |
| Specific device | otadart preview --platform android --release-version 1.0.0+1 --device-id DEVICE_ID |
| Test track | otadart preview --platform android --release-version 1.0.0+1 --track staging |
Releases
| You want | Command |
|---|---|
| List releases | otadart releases list |
| Release details | otadart releases info --release-version 1.0.0+1 |
| APK from the stored app bundle | otadart releases get-apks --release-version 1.0.0+1 |
| APKs per ABI | otadart releases get-apks --release-version 1.0.0+1 --no-universal |
| Delete a release | otadart releases delete --release-version 1.0.0+1 |
| Stored builds | otadart builds list |
Patches
| You want | Command |
|---|---|
| Patch Android | otadart patch android |
| Patch a release | otadart patch android --release-version 1.0.0+1 |
| To staging / beta / stable | otadart patch android --release-version 1.0.0+1 --track staging |
| Android and iOS, same number | otadart patch android ios |
| Part of users | otadart patch android --rollout 25 |
| With release notes (optional) | otadart patch all --notes "Fixed the login button" |
| Add or change notes later | otadart patches notes --patch-number 2 --notes "Fixed checkout" |
Manage patches
| You want | Command |
|---|---|
| Can this be patched? | otadart check android --release-version 1.0.0+1 |
| List patches | otadart patches list --release-version 1.0.0+1 |
| Roll back a patch | otadart patches rollback --release-version 1.0.0+1 --patch-number 1 |
| Roll it forward again | otadart patches rollforward --release-version 1.0.0+1 --patch-number 1 |
| List tracks | otadart channels list |
| Move a patch to stable | otadart patches set-track --release-version 1.0.0+1 --patch-number 1 --track stable |
| Raise the rollout | otadart patches rollout --patch-number 1 --rollout 100 |
Upgrade & help
otadart upgrade
otadart --version
otadart release android --help
otadart patch android --help
otadart preview --help
otadart releases --help
otadart patches --help
cat otadart.yamlComplete workflow
- flutter clean && flutter pub get && flutter analyze
- otadart release android — builds the app bundle with the OTADart engine and uploads the release.
- otadart preview — try the exact build on a phone.
- Upload build/app/outputs/bundle/release/app-release.aab to Google Play.
- Change your Dart code and test it.
- otadart patch android — users get it on their next launch.
- otadart patches list --release-version 1.0.0+1