メインコンテンツまでスキップ

インストール

前提条件

  • Backlog アカウントと、少なくとも 1 つのスペースへのアクセス権
  • Backlog API キーまたは OAuth 2.0 クライアント認証情報(認証を参照)

対応プラットフォーム

OSアーキテクチャ
Linuxx86_64、aarch64
macOSx86_64(Intel)、arm64(Apple Silicon)
Windowsx86_64

インストールスクリプト(Linux / macOS)

curltar が必要です。スクリプトが OS とアーキテクチャを自動検出し、対応するバイナリを選択して SHA-256 チェックサムを検証してからインストールします。

curl -fsSL https://raw.githubusercontent.com/23prime/backlog-cli/latest/install.sh | sh

デフォルトのインストール先は ~/.local/bin/bl です。 別の場所にインストールするには INSTALL_DIR 環境変数を設定します。

curl -fsSL https://raw.githubusercontent.com/23prime/backlog-cli/latest/install.sh | INSTALL_DIR=/usr/local/bin sh

インストールスクリプト(Windows)

PowerShell 5.1 以降が必要です(Windows 10/11 には標準搭載)。

irm https://raw.githubusercontent.com/23prime/backlog-cli/latest/install.ps1 | iex

デフォルトのインストール先は %USERPROFILE%\.local\bin\bl.exe です。 別の場所にインストールするには次のように実行します。

& ([scriptblock]::Create((irm https://raw.githubusercontent.com/23prime/backlog-cli/latest/install.ps1))) -InstallDir 'C:\Tools'

ソースからビルド

git clone https://github.com/23prime/backlog-cli.git
cd backlog-cli
cargo install --path .

アンインストール

アンインストールスクリプト(Linux / macOS)

curl -fsSL https://raw.githubusercontent.com/23prime/backlog-cli/latest/uninstall.sh | sh

認証情報と設定ファイルも削除するには --purge を渡します。

curl -fsSL https://raw.githubusercontent.com/23prime/backlog-cli/latest/uninstall.sh | sh -s -- --purge

アンインストールスクリプト(Windows)

irm https://raw.githubusercontent.com/23prime/backlog-cli/latest/uninstall.ps1 | iex

認証情報と設定ファイルも削除するには -Purge を渡します。

& ([scriptblock]::Create((irm https://raw.githubusercontent.com/23prime/backlog-cli/latest/uninstall.ps1))) -Purge

注意: --purge / -Purge を指定すると、アンインストールスクリプトはまず bl auth logout --all を実行してすべての API キーをキーリングから削除し、すべての設定ファイルを削除してから、バイナリと設定ディレクトリを削除します。 このフラグを指定しない場合はバイナリのみ削除され、認証情報は保持されます(再インストールを予定している場合に便利です)。

認証情報はいつでも bl auth logout --all で手動削除できます。