Installing tsuru client

tsuru is the command line utility used by application developers, thatwill allow users to create, list, bind and manage apps. For more details,check tsuru usage.

This document describes how you can install tsuru CLI, using pre-compiledbinaries, packages or building them from source.

Downloading binaries (Mac OS X, Linux and Windows)

We provide pre-built binaries for OS X and Linux, only for the amd64architecture. You can download these binaries directly from the releases pageof the project:

- tsuru: https://github.com/tsuru/tsuru-client/releases

Using homebrew (Mac OS X only)

If you use Mac OS X and homebrew, you mayuse a custom tap to install tsuru. First you need to add the tap:

  1. $ brew tap tsuru/homebrew-tsuru

Now you can install tsuru:

  1. $ brew install tsuru

Whenever a new version of any of tsuru clients is out, you can just run:

  1. $ brew update
  2. $ brew upgrade tsuru

For more details on taps, check homebrew documentation.

NOTE: tsuru client require Go 1.4 or higher. Make sure you have the last versionof Go installed in your system.

Using the packagecloud.io (Linux)

Quick install

deb:

  1. $ curl -s https://packagecloud.io/install/repositories/tsuru/stable/script.deb.sh | sudo bash
  2. $ sudo apt-get install tsuru-client

rpm:

  1. $ curl -s https://packagecloud.io/install/repositories/tsuru/stable/script.rpm.sh | sudo bash
  2. $ sudo yum install tsuru-client

For more details, check packagecloud.io documentation.

Build from source (Linux, Mac OS X and Windows)

Note

If you’re feeling adventurous, you can try it on other platforms, likeFreeBSD and OpenBSD. Please let us know about your progress!

tsuru’s source is written in Go, so before installing tsuru from source, please make sureyou have installed and configured Go.

With Go installed and configured, you can use go get to install tsuruclient:

  1. $ go get github.com/tsuru/tsuru-client/tsuru

原文: https://docs.tsuru.io/1.6/using/install-client.html