bundle exec fastlane [name of the lane]

Xcode Cloud

Xcode Cloud is a continuous integration and delivery service for building,
testing, and distributing apps and frameworks for Apple platforms.

Requirements

Xcode 13.4.1 or higher.

Be enrolled in the Apple Developer Program.

Custom build script

Xcode Cloud recognizes custom build scripts that can be 
used to perform additional tasks at a designated time. It also includes a set
of predefined environment variables, such as $CI_WORKSPACE, which is the
location of your cloned repository.

Note:
  The temporary build environment that Xcode Cloud uses includes tools that are
  part of macOS and Xcode—for example, Python—and additionally Homebrew to
  support installing third-party dependencies and tools.

Post-clone script

Leverage the post-clone custom build script that runs after
Xcode Cloud clones your Git repository using the following instructions: