Skip to content
s2

Installation

Install s2 from a release, with go install, or from source.

Prebuilt binaries

Every release carries archives for Linux, macOS, and Windows on amd64 and arm64, plus deb, rpm, and apk packages for Linux. Download, unpack, put s2 on your PATH, done. The checksums.txt on each release is signed with keyless cosign if you want to verify before running.

With Go

go install github.com/tamnd/semanticscholar-cli/cmd/s2@latest

That puts s2 in $(go env GOPATH)/bin, which is ~/go/bin unless you moved it. Make sure that directory is on your PATH.

From source

git clone https://github.com/tamnd/semanticscholar-cli
cd semanticscholar-cli
make build        # produces ./bin/s2
./bin/s2 version

Container image

docker run --rm ghcr.io/tamnd/s2:latest --help

Checking the install

s2 version

prints the version and exits.