インストール
前提条件
対応プラットフォーム
| OS | アーキテクチャ |
|---|---|
| Linux | x86_64、aarch64 |
| macOS | x86_64(Intel)、arm64(Apple Silicon) |
| Windows | x86_64 |
インストールスクリプト(Linux / macOS)
curl と tar が必要です。スクリプトが 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で手動削除できます。