Install and update
Install with the install script, co update and automatic updates
co is a single executable with no dependencies. It supports Intel (x64) and ARM on macOS, Linux and Windows.
If docs.collabops.ai is not reachable from your company or closed network, see Closed network and self-hosted install.
With internet access
In a macOS or Linux terminal:
curl -fsSL https://docs.collabops.ai/install.sh | bashIn Windows PowerShell (on WSL, use the line above as is):
irm https://docs.collabops.ai/install.ps1 | iexThe script detects your OS and CPU, downloads the matching file and verifies its sha256. It needs curl and sha256sum or shasum, which most macOS and Linux systems already have.
The install folder (~/.local/bin on macOS and Linux) is added to your PATH automatically. On macOS and Linux it goes into your shell config file (zsh: ~/.zshrc, bash: ~/.bashrc on Linux, ~/.bash_profile on macOS, fish: ~/.config/fish/conf.d/co.fish), and on Windows into your user PATH. It is not added twice. After the install, open a new terminal and check with co --version. If a new terminal still cannot find co, add the export PATH=… line at the end of the installer output to your shell config file yourself. Installing with install.sh from Git Bash on Windows does not add the PATH, so use the PowerShell install on Windows.
On Windows, install from a normal PowerShell under your own signed-in account. If you use "Run as administrator" and enter a different administrator account, co is installed for that account and the installer ends with the warning co was installed for '…', not '…'.
After installing, continue with the login step in the Quick start.
Update
co update # does nothing if up to date, otherwise downloads, verifies and replaces
co update --check # only check whether a new version exists
co update --force # download again even if it is the same versionThe download source is decided in this order: --url, the CO_INSTALL_URL_BASE environment variable, then the update.url setting. If none is set, co uses the public release storage.
Automatic updates
co checks for a new version once a day and, if there is one, downloads and replaces itself right away. The new version is used from the next run. The command you ran at that moment may be a little slower while it downloads, but it still runs even if the update fails. co does not check when it is not running in a terminal (CI, scripts).
| Connected to | Default |
|---|---|
| collabops.ai | On (after you log in) |
| Self-hosted | On if a mirror (update.url) is set, otherwise off. See Closed network and self-hosted install |
co config set update.auto off # turn off (the environment variable CO_NO_UPDATE=1 also works)
co config set update.auto on # turn on even without a mirror
co config unset update.auto # back to the defaultVery old versions of co (such as the earlier Node.js-based one) may not upgrade with co update. In that case, reinstall once with the install script.