5 title: "Command line SDK"
9 The @arv@ CLI tool provides a generic set of wrappers so you can make API calls easily. It performs some validation before connecting to the API server: for example, it refuses to do an API call if a required parameter is missing.
11 It also provides access to Keep storage services with the @arv keep@ subcommand.
15 See the "command line interface":{{site.baseurl}}/user/reference/sdk-cli.html page in the user guide.
19 If you are logged in to an Arvados VM, the @arv@ should be installed.
21 To use @arv@ elsewhere, you can either install the @arvados-cli@ gem via RubyGems or build and install the package using the arvados source tree.
23 h4. Prerequisites: Ruby >= 2.0.0 and curl libraries
25 You can use "RVM":http://rvm.io/rvm/install to install and manage Ruby versions.
29 $ <code class="userinput">sudo apt-get install curl</code>
30 $ <code class="userinput">sudo sh -c 'curl -sSL https://get.rvm.io | bash -s stable'</code>
31 $ <code class="userinput">source /etc/profile.d/rvm.sh</code>
35 Install curl libraries with your system's package manager. For example, with Debian or Ubuntu:
39 $ <code class="userinput">sudo apt-get install libcurl3 libcurl3-gnutls libcurl4-openssl-dev</code>
43 h4. Option 1: install with RubyGems
47 $ <code class="userinput">sudo gem install arvados-cli</code>
51 h4. Option 2: build and install from source
55 $ <code class="userinput">git clone https://github.com/curoverse/arvados.git</code>
56 $ <code class="userinput">cd arvados/sdk/cli</code>
57 $ <code class="userinput">gem build arvados-cli.gemspec</code>
58 $ <code class="userinput">sudo gem install arvados-cli-*.gem</code>