Skip to content

coherenceplatform/cocli

Repository files navigation

cocli

Installation

  1. Go to releases and download the binary for your os/architecture (e.g. linux/arm64). Copy the URL

  2. Download the file to your local filesystem, e.g. wget https://github.com/coherenceplatform/cocli/releases/download/v1.0.2/cocli-linux-amd64, rename it to cocli with mv cocli-linux-amd64 cocli.

  3. Move the file into a location that is in your $PATH (e.g. /usr/local/bin). We recommend renaming the file cocli. e.g.

mv ~/Downloads/cocli-linux-arm64 /usr/local/bin/cocli
  1. You'll likely need to update permissions to make the file executable:
chmod +x /usr/local/bin/cocli
  1. Test that cocli works:
cocli -h

N.B. If you get an error trying to use the cli on a mac (along the lines of e.g. "...can’t be opened because apple cannot check it for malicious software.") then follow these steps to grant an exception for cocli.

Authentication

For authentication you just need to get a personal access token from coherence. cocli will expect the token to be set as COHERENCE_ACCESS_TOKEN