Initializing a Bitrise project locally

Last updated at 2020-10-19

Japanese translation unavailable

This page has not been translated into Japanese yet - we apologise for the inconvenience! If you’re interested in helping us out, feel free to translate any article in the jp folder of the DevCenter repository and open a PR!

このページは日本語への翻訳がまだ完了しておりません。ご不便をおかけして申し訳ございません! もしお手伝いできる方がいらっしゃれば、ご自由にjpフォルダの記事を日本語に訳していただき、PRを開いてください

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!