Initializing a Bitrise project locally

Initializing a Bitrise project locally

When you add a new app to Bitrise, we detect the type of your project and generate a basic bitrise.yml file for you, with workflows that are appropriate for your project type.

With the Bitrise CLI, you can make this work on your own computer. You will need:

Go workspace

Before you start, make sure that $GOPATH/bin is added to $PATH on your computer! By default, your Go workspace is at $HOME/go/bin.

Once you are ready, open your Terminal/Command Line Interface and go to the folder of your project. Start the plugin:

$ bitrise init

The bitrise-init plugin will run all the available scanners to determine the type of the project. These scanners are:

Depending on the project type, the tool asks for user input: for example, with an iOS project, it asks the user to specify an export method.

Select: ipa export method
Please select from the list:
[1] : app-store
[2] : ad-hoc
[3] : enterprise
[4] : development
(type in the option's number, then hit Enter) :

Based on the scanner outputs, the plugin generates a Bitrise configuration, with a bitrise.yml file. In the automatically generated workflows, every required input will have a valid value.

The plugin also generates a bitrise.secrets.yml file. You can store secret Environment Variables in this.

Contribute to the bitrise-init project by creating and submitting your own project type scanner!