Fastlane is a very popular tool that was born from the need to automate communications with the App Store. It was originally written to overcome the burden of renewing developer and push certificates. Now, Xcode can be configured to generate certificates automatically, but at the same time, fastlane grew as a full-fledged automation suite with a pluggable system.
The original features for synchronizing certificates and uploading to testflight are still alive and well, but they have been joined by a slew of plugins that would be too long to list! Just look here: https://docs.fastlane.tools/plugins/available-plugins/ .
Hopefully you won’t need them all, so getting started with fastlane is still straightforward.
Fastlane is written in Ruby, and uses xcodebuild under the hood, so this will require a macOS machine to run. If you want to...