4 title: Command line SDK
8 {% include alert-stub.html %}
12 If you are logged in to an Arvados VM, the command line SDK should be
19 Set the @ARVADOS_API_HOST@ environment variable.
22 export ARVADOS_API_HOST=xyzzy.arvadosapi.com
25 Log in to Workbench and get an API token for your account. Set the @ARVADOS_API_TOKEN@ environment variable.
28 export ARVADOS_API_TOKEN=c0vdbi8wp7f703lbthyadlvmaivgldxssy3l32isslmax93k9
33 @arv [global_options] resource_type resource_method [method_parameters]@
37 Get UUID of the current user
40 Get entire record (json) for current user
43 Get entire record for identified user
44 @arv -h user get --uuid 6dnxa-tpzed-iimd25zhzh84gbk@
47 @arv user update --uuid 6dnxa-tpzed-iimd25zhzh84gbk --first_name "Bob"@
49 Get list of groups (showing just UUIDs)
52 Get list of groups (showing entire records)
57 - @--json@, @-j@ := Output entire response as compact JSON.
59 - @--pretty@, @--human@, @-h@ := Output entire response as JSON with whitespace for better human-readability.
61 - @--uuid@ := Output only the UUIDs of object(s) in the API response, one per line.
63 h3. Resource types and methods
65 Get list of resource types
68 Get list of resource methods for the "user" resource type