Skip to main content

BitriseCLIのインストールと更新

概要

The Bitrise CLI is distributed as a single binary for macOS and Linux. You can download it using curl or Homebrew.

The Bitrise CLI is Bitrise's open source runner. The CLI is used to run your builds on bitrise.io and you can install and run it on your own computer to run builds locally.

BitriseCLIのインストールは非常に簡単です。これは、macOSおよびLinux用の単一のバイナリとして配布されており、いくつかの方法で取得できます。あなたがする必要があるのはそれをダウンロードして実行可能にすることだけです。

curlを使用したBitriseCLIのインストール

  1. bashシェルで次のコマンドを実行します。

    curl -fL https://github.com/bitrise-io/bitrise/releases/latest/download/bitrise-$(uname -s)-$(uname -m) > /usr/local/bin/bitrise

    BitriseCLIの最新リリースはその上で確認できます リリース ページ。

  2. ダウンロードしたバイナリを実行可能にします。

    chmod +x /usr/local/bin/bitrise
  3. 走る bitrise setup

    これにより、Bitriseの実行に必要なすべてのものがインストールされて利用可能かどうかが確認されます。これをスキップすると、CLIは最初に呼び出したときにとにかくセットアップを実行します bitrise run

HomebrewでBitriseCLIをインストールする

MacにHomebrewパッケージマネージャーがインストールされている場合は、それを使用してBitriseCLIをインストールできます。

  1. を開きます Terminal Macでアプリを実行して実行します。

    brew update && brew install bitrise
    
  2. 走る bitrise setup

    これにより、Bitriseの実行に必要なすべてのものがインストールされて利用可能かどうかが確認されます。これをスキップすると、CLIは最初に呼び出したときにとにかくセットアップを実行します bitrise run

BitriseCLIの更新

Bitrise CLIの更新は簡単で、Homebrewと一緒にインストールしたか、GitHubリリースからインストールしたかは関係ありません。

単に実行する bitrise update - それでおしまい! CLIは、更新を1日1回チェックし、新しいバージョンがあるとすぐに通知します。