Work with builds
List and download ready Builds with the CLI.
sh
appbarn builds list --app <app-uuid>
appbarn builds download <build-uuid>
appbarn builds download <build-uuid> --output ./artifacts/app.apk
appbarn builds list --platform android --cursor <next-cursor>Downloads use a short-lived R2 capability. The CLI verifies the downloaded size and SHA-256 against Build metadata before publishing, writes through a temporary file, requires the parent directory to exist and refuses to overwrite an existing target unless --force is supplied.
AI prompt — Find and download a build (Copilot, Codex, Cursor)
text
Inspect AppBarn CLI configuration and list ready Builds using appbarn builds list. Ask which Build UUID to download if more than one fits. Download to an existing local directory without overwriting a file unless I approve --force. Keep APPBARN_TOKEN only in the environment and never log it. Confirm the CLI's size and SHA-256 checks passed, then report the saved path and Build identity.Expected result
A completed download is at the requested path and matches the server-provided checksum/size contract.
Common failures
404: Build is outside scope, absent or no longer readable.- output exists: choose another path or explicitly use
--force. - interrupted download: temporary state is cleaned rather than promoted to the final path.