To install the getOperate CLI, follow these steps:
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.
Install getOperate CLI using the following command in your terminal:
Copy
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:
Copy
export PATH="$HOME/.deno/bin:$PATH"
Mac:
Copy
export PATH="/Users/<username>/.deno/bin:$PATH"
In an enterprise setting with custom certificates, you can edit the getOperate binary to ignore CA issues:
Copy
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:
The CLI comes with built-in completions for various shells. Use the following instructions to enable completions for your preferred shell.BashTo enable bash completions, add the following line to your ~/.bashrc:
Copy
source <(getOperate completions bash)
ZshTo enable zsh completions, add the following line to your ~/.zshrc:
Copy
source <(getOperate completions zsh)
FishTo enable fish completions, add the following line to your ~/.config/fish/config.fish: