Installation
Feel free to install Kānuka using any of the following methods, although installing using Go itself is recommended.
Prerequisites
Section titled “Prerequisites”You’ll need to have Go installed first, and have the Go binaries available on your system path. Check the Go installation documentation if you haven’t installed Go already.
It’s also worth making sure that you have your Go binaries on your system path.
The Go installation tool should handle that for you, but if you installed Go
through a different way (for example, using a package manager like brew),
then you’ll need to manually put Go in your path.
Adding Go to your PATH
Section titled “Adding Go to your PATH”# add the following line to your `~/.bashrc`export PATH=$HOME/go/bin:$PATH# add the following line to your `~/.zshrc`export PATH=$HOME/go/bin:$PATH- Press
win + sand typeEnvironment Variables - Click on
Environment Variables - Under “user variables”, click edit.
- Add the following:
%USERPROFILE%\go\binInstalling Kānuka using Go
Section titled “Installing Kānuka using Go”On any operating system, just run the following:
go install github.com/PolarWolf314/kanuka@latestInstalling Kānuka using GitHub Releases
Section titled “Installing Kānuka using GitHub Releases”Kānuka releases artifacts which can be downloaded directly from GitHub Releases.
Each release page includes the binaries for all supported platforms.
Upgrading Kānuka
Section titled “Upgrading Kānuka”If you installed Kānuka using Go, then running the following should be enough:
go install github.com/PolarWolf314/kanuka@latestIf you installed Kānuka using a GitHub Release, just navigate to the GitHub Releases page, and install your existing binary with the newest version.
Shell Autocomplete
Section titled “Shell Autocomplete”Because Kānuka is built using Cobra, shell
autocomplete is supported for bash, zsh, fish, and powershell.
# Linux:kanuka completion bash > /etc/bash_completion.d/kanuka
# macOS:kanuka completion bash > $(brew --prefix)/etc/bash_completion.d/kanuka# Linux:kanuka completion zsh > "${fpath[1]}/_kanuka"
# macOS:kanuka completion zsh > $(brew --prefix)/share/zsh/site-functions/_kanukakanuka completion fish > ~/.config/fish/completions/kanuka.fishAdd the following to your powershell profile.
kanuka completion powershell | Out-String | Invoke-ExpressionUninstalling
Section titled “Uninstalling”You need to manually remove the Kānuka binary from your system. If you used go install to install Kānuka, then you can just go to the folder where your
binaries are installed, and remove the binary.
If you installed using a GitHub Release, then remove the binary from where you installed it.