You can now start a build, find the step that failed, and rebuild it from the Bitrise CLI. Continue reading below:
Start a build:
bitrise build trigger --app my-app-id --workflow primary --branch main
- This starts a build of the
primaryWorkflow onmain. Add--watchto follow the build and exit with its result. - Use this when a script, a scheduled job, or another CI system needs to start a Bitrise build. Add
--watchwhen the next command depends on the result.
Rebuild a finished build:
bitrise build rebuild abc123 --app my-app-id
- This starts a new build with the parameters of build
abc123. - Use this when a build failed for a reason outside the code, such as a flaky test or a network error, and you want to run it again as it was.
List the steps of a build:
bitrise build steps abc123 --app my-app-id
- This lists the steps of build
abc123with their status and timing. - Use this when you want to see which step ran, which was skipped, and where the build spent its time.
Show only the failed steps:
bitrise build steps abc123 --app my-app-id --status failed
- This lists only the steps that failed, with the reason each one failed.
- Use this when a build failed and you need the failing step without reading the whole log.
rebuild and steps require Bitrise CLI 3.5.0 or newer.


Build commands in the Bitrise CLI