4 title: "Intro: Command line SDK"
8 {% include alert-stub.html %}
12 If you are logged in to an Arvados VM, the command line SDK should be installed. Try:
16 _Help is not helpful. See bug #1667_
20 Set the ARVADOS_API_HOST environment variable.
22 @export ARVADOS_API_HOST={{ site.arvados_api_host }}@
24 Log in to Workbench and get an API token for your account. Set the ARVADOS_API_TOKEN environment variable.
27 ARVADOS_API_TOKEN=c0vdbi8wp7f703lbthyadlvmaivgldxssy3l32isslmax93k9@
29 If you are using a development instance with an unverifiable SSL certificate, set the ARVADOS_API_HOST_INSECURE environment variable.
31 @export ARVADOS_API_HOST_INSECURE=1@
33 _This should link back to "api-tokens":api-tokens.html instead of
38 @arv [global_options] resource_type resource_method [method_parameters]@
40 _This is what arv --help really ought to print out_
44 Get UUID of the current user
47 Get entire record (json) for current user
50 Get entire record for identified user
51 @arv -h user get --uuid 6dnxa-tpzed-iimd25zhzh84gbk@
54 @arv user update --uuid 6dnxa-tpzed-iimd25zhzh84gbk --first-name "Bob"@
56 Get list of groups (showing just UUIDs)
59 Get list of groups (showing entire records)
64 _Move these up to before "basic examples", and give examples of what
65 these options do and how they might be useful._
67 - @--json@, @-j@ := Output entire response as compact JSON.
69 - @--pretty@, @--human@, @-h@ := Output entire response as JSON with whitespace for better human-readability.
71 - @--uuid@ := Output only the UUIDs of object(s) in the API response, one per line.
73 h3. Resource types and methods
75 Get list of resource types
78 Get list of resource methods for the "user" resource type