score-k8s installation

Installation of score-k8s

You can install the score-k8s CLI in a variety of ways:

Homebrew

Prerequisites: You must have brew installed.

brew install score-spec/tap/score-k8s

Go

Prerequisites: You must have Go installed.

$ go install -v github.com/score-spec/score-k8s@latest

Manual download

The following methods download the score-k8s CLI from its GitHub release page:

1. Download the latest release from the GitHub release page:

curl -L -o score-k8s.tgz https://github.com/score-spec/score-k8s/releases/download/<x.y.z>/score-k8s_<x.y.z>_<os_system>.tar.gz

2. Unpack the latest release

tar xvzf score-k8s.tgz

The following is the output of the previous command:

x LICENSE
x README.md
x score-k8s

3. Clean up the tar file

rm score-k8s.tgz README.md LICENSE

4. Move the binary to PATH

sudo mv ./score-k8s /usr/local/bin/score-k8s
sudo chown root: /usr/local/bin/score-k8s

You’ve successfully installed the score-k8s CLI!

1. Download the latest release from the GitHub release page:

wget https://github.com/score-spec/score-k8s/releases/download/<x.y.z>/score-k8s_<x.y.z>_<os_system>.tar.gz

You should see something similar to the following output:

Saving to: score-k8s_<x.y.z>_<os_system>.tar.gz

score-k8s_<x.y.z> 100%[===================>]   2.85M  5.28MB/s    in 0.5s

2. Install into your local directory

In your terminal, enter the following to create the score-spec directory.

cd /usr/local/bin/
# create the directory if needed
mkdir -pv score-spec

Extract the compressed Tar file (You may need to run this command with elevated permissions):

tar -xvzf ~/<your-path>/score-k8s_<x.y.z>_<os_system>.tar.gz

You should see the following output:

x LICENSE
x README.md
x score-k8s

3: Export PATH

Future terminal sessions may require you add this path to your ~/.zshrc or ~/.bashrc file, if it isn’t there already.

export PATH=$PATH:/usr/local/bin/

4: Verify installation

score-k8s --version

The command returns the following output:

score-k8s <x.y.z>

You’ve successfully installed the score-k8s CLI!

1. Download the latest compressed Tar file for your operating system from the GitHub release page. By default, the tarball will be saved to your ~/Downloads directory. If you choose to use a different location, you’ll need to change that in the following steps.

score-k8s_x.y.z_osx-amd64.tar.gz

2. Install into your local directory

In your terminal, enter the following to create the score-spec directory.

cd /usr/local/bin/
# create the directory if needed
mkdir -pv score-spec

Extract the compressed Tar file (You may need to run the previous command with elevated permissions).

tar -xvzf ~/Downloads/score-k8s_<x.y.z>_darwin_arm64.tar.gz -C /usr/local/bin/

You should see the following output:

x LICENSE
x README.md
x score-k8s

3. Export PATH

Future terminal sessions may require you add this path to your ~/.zshrc or ~/.bashrc file, if it isn’t there already.

export PATH=$PATH:/usr/local/bin/

4. Verify installation

score-k8s --version

The command returns the following output:

score-k8s x.y.z

You’ve successfully installed the score-k8s CLI!

1. Download the latest release from the GitHub release page.

2. Decompress the zip file, and move the binary to your PATH.

You’ve successfully installed the score-k8s CLI!