Docs
CLI

Closed network and self-hosted install

Install straight from your company's CollabOps, install from a bundle on an internal mirror or removable media, log in with your company address

If docs.collabops.ai and storage.googleapis.com are not reachable, get co from your company's CollabOps. The install script is the same as the regular install. You only tell it where to download files from with CO_INSTALL_URL_BASE.

Install from your company's CollabOps

A self-hosted CollabOps also serves the co install files under /downloads/co-cli/ on its web address. If https://<your CollabOps address>/downloads/co-cli/version.json opens in a browser, you can use this method. If it does not open, your CollabOps is older than this feature, so follow "Install from a bundle" below.

In a macOS or Linux terminal:

curl -fsSL https://collabops.example.com/downloads/co-cli/install.sh | CO_INSTALL_URL_BASE=https://collabops.example.com/downloads/co-cli bash

In Windows PowerShell:

$env:CO_INSTALL_URL_BASE="https://collabops.example.com/downloads/co-cli"; irm https://collabops.example.com/downloads/co-cli/install.ps1 | iex

Replace collabops.example.com with your CollabOps address. If typing the address is a hassle, copy the command from your company's CollabOps web instead. The CLI guide on an empty repository and the CLI tab of the clone dialog show the install command with your address filled in. CO_INSTALL_URL_BASE must come before bash on the right side of the pipe to reach the install script. The executable is verified against the sha256 in version.json.

From co 1.2.44, the install script saves this address as the update mirror (update.url). After that, co update and automatic updates also download from your company's CollabOps.

The co on your company's CollabOps is the version fixed when that CollabOps was installed or upgraded. It may be older than the latest co on docs.collabops.ai, and co update upgrades only up to that version. A newer co arrives when your company's CollabOps is upgraded.

Install from a bundle

If a computer cannot install straight from your company's CollabOps, use the bundle co-cli-<version>.tar.gz. Download it from /downloads/co-cli/ on your company's CollabOps (when version.json opens) or get it from your CollabOps contact. It contains the executables for six platforms, version.json, install.sh and install.ps1.

With an internal mirror

Unpack the bundle onto an internal static HTTP server, then on each computer:

curl -fsSL https://mirror.example.com/co-cli/install.sh \
  | CO_INSTALL_URL_BASE=https://mirror.example.com/co-cli bash
$env:CO_INSTALL_URL_BASE = "https://mirror.example.com/co-cli"
irm https://mirror.example.com/co-cli/install.ps1 | iex

Plain http mirrors work too. With a bundle of co 1.2.44 or later, this mirror address is also saved as update.url.

From removable media such as USB

Without an HTTP server, point to the unpacked folder directly.

tar xzf co-cli-<version>.tar.gz
CO_INSTALL_URL_BASE=$PWD/co-cli-<version> bash co-cli-<version>/install.sh
tar xzf co-cli-<version>.tar.gz
$env:CO_INSTALL_URL_BASE = "$PWD\co-cli-<version>"
& .\co-cli-<version>\install.ps1

If running install.ps1 as a file in Windows PowerShell 5.1 gives a syntax error, the bundle is older than 1.2.38. Get a new bundle.

Log in

After installing, log in. On your first login, choose Self-hosted (company network) at Where is your CollabOps? and enter your CollabOps address (https://…). It is saved. The next steps are in Login and Git setup.

co auth login
co auth login --host https://collabops.example.com   # give the address directly without the question

The CLI tab of the clone dialog on your company's CollabOps shows login and clone joined into one command (co auth login --host <address> && co repo clone <workspace>/<repository>). You can copy and run it as is.

On self-hosted CollabOps, git works only over SSH. Type y at the Git setup at the end of login, and co creates and registers an SSH key.

Update

If you installed co 1.2.44 or later from your company's CollabOps or an internal mirror, there is nothing to do. If you installed an earlier version or the mirror address changed, register it once.

co config set update.url https://collabops.example.com/downloads/co-cli

If you installed from removable media, co update cannot read that folder, so reinstall with the removable media method above each time you get a new bundle.

Table of Contents

AI tools

Was this helpful?