1. Make sure you have Deno installed. If not, you can install it by following the instructions here.

Please note that your version of Deno should be recent (greater than 1.32). If not, you can update Deno by running deno upgrade.

  1. Install getOperate CLI using the following command in your terminal:
deno install --unstable -A https://deno.land/x/getOperate/main.ts

Your terminal might also ask you to update your PATH environment variable to include the newly installed executable getOperate. Example:

Linux:

export PATH="$HOME/.deno/bin:$PATH"

Mac:

export PATH="/Users/<username>/.deno/bin:$PATH"

In an enterprise setting with custom certificates, you can edit the getOperate binary to ignore CA issues:

sed -i 's/deno run/deno run --unsafely-ignore-certificate-errors/' ~/.deno/bin/getOperate

Also, to punch through some networking layers like Cloudflare Tunnel, you might need some custom headers. You just need to use the HEADERS env variable:

export HEADERS=header_key:header_value,header_key2:header_value2
  • Verify that the installation was successful by running the following command:
getOperate --version

If the installation was successful, you should see the version of getOperate that you just installed.

Upgrade getOperate

To upgrade your getOperate installation to the latest version, run the following command:

getOperate upgrade

Completion

The CLI comes with built-in completions for various shells. Use the following instructions to enable completions for your preferred shell.

Bash

To enable bash completions, add the following line to your ~/.bashrc:

source <(getOperate completions bash)

Zsh

To enable zsh completions, add the following line to your ~/.zshrc:

source <(getOperate completions zsh)

Fish

To enable fish completions, add the following line to your ~/.config/fish/config.fish:

source (getOperate completions fish | psub)