# Installation

Canonical: https://specscore.md/cli/install/

[SpecScore CLI](/cli/)

# Installation

Pick the method that fits your environment. All install the same`specscore` binary from the same[GitHub release](https://github.com/specscore/specscore-cli/releases).

## Quick install (macOS & Linux)

```
$ curl -fsSL https://specscore.md/install/get-cli | sh
```

The script detects your OS and architecture, downloads the matching archive from the latest GitHub release, verifies its SHA-256 checksum, and installs the `specscore` binary to `/usr/local/bin`(or `~/.local/bin` if `/usr/local/bin` isn't writable).

### Options

 Variable Default Description SPECSCORE_VERSION latest Release tag to install, e.g. v0.1.0 . SPECSCORE_INSTALL_DIR /usr/local/bin or ~/.local/bin Directory to install the binary into.

Install a specific version into `~/.local/bin`:

```
$ curl -fsSL https://specscore.md/install/get-cli | \ SPECSCORE_VERSION=v0.1.0 SPECSCORE_INSTALL_DIR="$HOME/.local/bin" sh
```

### Inspect before running

If you prefer to review the script before piping it into a shell:

```
$ curl -fsSL https://specscore.md/install/get-cli -o get-cli.sh $ less get-cli.sh $ sh get-cli.sh
```

## Homebrew (macOS & Linux)

```
$ brew install specscore/tap/specscore
```

This taps `specscore/homebrew-tap` on first install and tracks new releases from there.

## Windows

Pick whichever channel fits your environment — all three install the same binary from the same GitHub release.

### PowerShell

```
PS> powershell -c "irm https://specscore.md/install/get-cli.ps1 | iex"
```

The script detects your architecture, downloads the matching `.zip`from the latest release, verifies its SHA-256 checksum, installs`specscore.exe` to`%LOCALAPPDATA%\Programs\specscore\bin`, and appends that directory to your user `PATH`. No admin rights required. Open a new terminal afterwards so the updated `PATH` takes effect.

### WinGet

```
PS> winget install Synchestra.SpecScore
```

### Scoop

```
PS> scoop bucket add specscore https://github.com/specscore/scoop-bucket PS> scoop install specscore
```

## Manual install

- Download the archive for your platform from the[GitHub Releases page](https://github.com/specscore/specscore-cli/releases). Archives follow the pattern `specscore_ _ _ . `.
- Verify its SHA-256 checksum against`specscore_ _checksums.txt` from the same release.
- Extract the archive and move `specscore`(or `specscore.exe` on Windows) to a directory on your `PATH`.

## Build from source

```
$ go install github.com/specscore/specscore-cli/cmd/specscore@main
```

Requires [Go](https://go.dev/) 1.26 or newer. This installs the latest development build from `main` — may include changes not yet in a tagged release.

To pin a specific version, swap `@main` for a tag like`@v0.4.2`, or use `@latest` for the most recent tagged release.

## Verify the install

```
$ specscore version specscore 0.1.0 ( )
```
