Skip to content
Installation

Installation

CLI

Install the latest release with Go:

go install github.com/boxboxjason/sonarqube-client-go/v2/cmd/sonar-cli@latest

Or download the binary for your platform from the releases page.

To build it from source:

git clone https://github.com/BoxBoxJason/sonarqube-client-go.git
cd sonarqube-client-go
make build
./bin/sonar-cli --version

make build version=1.2.3 stamps a specific version into the binary.

Continue with the CLI guide.

Go SDK

Add the module to your project:

go get github.com/boxboxjason/sonarqube-client-go/v2/sonar

and import the sonar package:

import "github.com/boxboxjason/sonarqube-client-go/v2/sonar"

The required Go version is the one declared in go.mod.

Continue with the Go SDK guide.