Production safety
Last updated 2026-10-07
Guard production distributions with branch rules, confirmation and CI-only execution.
YAML
safety: require_confirmation: true # interactive "Continue?" prompt (skipped on CI) require_ci: false # true = refuse to run outside CI allowed_branches: ["main"] # wildcards allowed, e.g. "release/*"my-app — zsh
~/my-app $ git branch --show-currentfeature/login~/my-app $ bundle exec fastlane android production[!] Current Git branch 'feature/login' is not allowed. Allowed: main~/my-app $ git switch main && bundle exec fastlane android production? You are about to distribute a PRODUCTION build. Continue? (y/n) yOfficial documentation
Was this helpful?