IMPORTANT NOTE: go-swagger is a tool to mainly generate or analyze source code. In order to make it work after successful installation, see the prerequisites on your development environment.

Installing from binary distributions

go-swagger releases are distributed as binaries that are built from signed tags. It is published as github release, rpm, deb and docker image.

Docker image Docker Repository on Quay

docker pull

alias swagger="docker run --rm -it -e GOPATH=$HOME/go:/go -v $HOME:$HOME -w $(pwd)"
swagger version


brew tap go-swagger/go-swagger
brew install go-swagger

Static binary

You can download a binary for your platform from github:

download_url=$(curl -s | \
  jq -r '.assets[] | select(.name | contains("'"$(uname | tr '[:upper:]' '[:lower:]')"'_amd64")) | .browser_download_url')
curl -o /usr/local/bin/swagger -L'#' "$download_url"
chmod +x /usr/local/bin/swagger

Debian packages Download

This repo will work for any debian, the only file it contains gets copied to /usr/bin

echo "deb ubuntu main" | sudo tee -a /etc/apt/sources.list

RPM packages Download

This repo should work on any distro that wants rpm packages, the only file it contains gets copied to /usr/bin

wget -O bintray-go-swagger-goswagger-rpm.repo

Installing from source

Install or update from current source master:

go get -u

You are welcome to clone this repo and start contributing:

cd $GOPATH/src
mkdir -p
git clone

NOTE: go-swagger works on *nix as well as Windows OS

results matching ""

    No results matching ""