score-compose installation

Installation of score-compose

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

Homebrew

Prerequisites: You must have brew installed.

brew install score-spec/tap/score-compose

Go

Prerequisites: You must have Go installed.

go install -v github.com/score-spec/score-compose/cmd/score-compose@latest

Docker

Prerequisites: You must have Docker installed.

docker run --rm -it ghcr.io/score-spec/score-compose:latest

If you want to run score-compose with the --help flag to view the available options, you would run the following command.

docker run --rm -it ghcr.io/score-spec/score-compose:latest --help

If you want to run score-compose with the init subcommand to initialize your local working directory, you would run the following command.

docker run --rm -it -v .:/score-compose ghcr.io/score-spec/score-compose:latest init

Manual download

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

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

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

2. Unpack the latest release

tar xvzf score-compose.tgz

The following is the output of the previous command:

x LICENSE
x README.md
x score-compose

3. Clean up the tar file

rm score-compose.tgz README.md LICENSE

4. Move the binary to PATH

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

You’ve successfully installed the score-compose CLI!

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

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

You should see something similar to the following output:

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

score-compose_<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-compose_<x.y.z>_<os_system>.tar.gz

You should see the following output:

x LICENSE
x README.md
x score-compose

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-compose --version

The command returns the following output:

score-compose <x.y.z>

You’ve successfully installed the score-compose 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-compose_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-compose_<x.y.z>_darwin_arm64.tar.gz -C /usr/local/bin/

You should see the following output:

x LICENSE
x README.md
x score-compose

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-compose --version

The command returns the following output:

score-compose x.y.z

You’ve successfully installed the score-compose 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-compose CLI!