Install
Homebrew (macOS / Linux)
brew install source-cooperative/tap/source-coop
From GitHub Releases (recommended)
macOS / Linux:
curl --proto '=https' --tlsv1.2 -LsSf \
https://github.com/source-cooperative/source-coop-cli/releases/latest/download/source-coop-cli-installer.sh | sh
Windows PowerShell:
powershell -ExecutionPolicy ByPass -c "irm https://github.com/source-cooperative/source-coop-cli/releases/latest/download/source-coop-cli-installer.ps1 | iex"
From source
cargo install --git https://github.com/source-cooperative/source-coop-cli
To see the installed version:
source-coop --version
Upgrade
Upgrade the way you installed:
# Homebrew
brew upgrade source-coop
# from source
cargo install --force --git https://github.com/source-cooperative/source-coop-cli
With the installer script, run it again. It replaces the installed version with the latest release.
The changelog lists what each release changes. On macOS, the first command after an upgrade that reads your session can ask for your keychain password (see Troubleshooting).
Uninstall
-
Sign out, to remove the session and cached credentials from the OS keyring:
source-coop auth logoutThis removes one environment and one role. Run it again with
--role-arnor--proxy-urlfor each other one that you used. -
Remove the CLI:
# Homebrew brew uninstall source-coop # installer script or from source rm ~/.cargo/bin/source-coopOn Windows, delete
source-coop.exefrom%USERPROFILE%\.cargo\bin. -
Remove the files it kept: the
source-coopfolders in the file fallback and drafts locations, if they exist.