Section 04

Everyday commands

CommandWhat it does
leas build -p iosBuild on this machine using the production profile.
leas build -p all --cloudBuild both platforms on the rented fleet, then download the artifacts.
leas build -p all --auto-submitBuild, then upload to both stores the moment each build succeeds.
leas build --profile previewUse a different profile — preview ships ad-hoc iOS and an installable APK.
leas submit -p iosUpload the most recent artifact without rebuilding.
leas submit --path build.aabUpload a specific file — useful when re-submitting an approved build.
leas update --channel productionShip a JS-only change to devices already in the field. Section 6.
leas update:rollback --embeddedEmergency stop — send every device back to the bundle inside the binary.
leas dashboardOpen the live build and update dashboard.
leas prebuild --cleanRegenerate ios/ and android/ from scratch after changing native config.

The profiles, and when to reach for each

ProfileiOSAndroidUse it for
developmentDebug, development signingAPKRunning a dev client on a real device.
previewRelease, ad-hocAPKHanding a build to a colleague or a client without the stores.
productionRelease, app-storeApp bundleAnything going to TestFlight, Play, or review.

Profiles inherit with extends, so preview picks up all of production's credential paths and overrides only the export method.