Skip to content

Installation

Alex Co edited this page Nov 4, 2022 · 7 revisions

Installation instructions.

The Wukong CLI supports the following platform:

  • Linux x86_64.
  • MacOS x86_64.
  • MacOS Aarch64 (Apple Silicon).

There are 2 (two) methods to install the Wukong CLI.

(Highly Recommended) Using Homebrew.

NOTE: If you don't know what is Homebrew, please visit this website before continue further ! 👉 https://brew.sh/

If you are using Homebrew (on either MacOS or Linux), you can install the Wukong CLI using the following commands.

brew tap mindvalley/wukong
brew update
brew install wukong

Download from Github release.

You can download the compiled binary from Github using the following commands.

For Linux x86_64.

https://github.com/mindvalley/wukong-cli/releases/download/$version/wukong-$version-dev-linux-x86.tar.gz

For MacOS x86_64.

https://github.com/mindvalley/wukong-cli/releases/download/$version/wukong-$version-dev-macOS-x86.tar.gz

For Apple Silicon.

https://github.com/mindvalley/wukong-cli/releases/download/$version/wukong-$version-dev-macOS-arm.tar.gz

Enable auto-completion.

Using Homebrew.

If you are installing from Homebrew, following this guide to enable the completion in your preferred shell. Current Wukong CLI supports auto completion on bash/zsh/fish.

https://docs.brew.sh/Shell-Completion

Using downloaded artifact from Github.

If you are downloading from Github, when extracting the tarball, there is a folder named completions inside. Copy the completion script for your prefered shell to somewhere and source it in your shell. For example

tar -xf wukong-v0.0.1-dev-linux-x86.tar.gz
cp wukong-v0.0.1-dev-linux-x86/completion/bash/wukong.bash /usr/local/share/wukong/
echo 'source /usr/local/share/wukong/wukong.bash' >> /etc/.bashrc

Clone this wiki locally