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:
18 Set the ARVADOS_API_HOST environment variable.
20 @export ARVADOS_API_HOST={{ site.arvados_api_host }}@
22 Log in to Workbench and get an API token for your account. Set the ARVADOS_API_TOKEN environment variable.
24 @export ARVADOS_API_TOKEN=c0vdbi8wp7f703lbthyadlvmaivgldxssy3l32isslmax93k9@
26 If you are using a development instance with an unverifiable SSL certificate, set the ARVADOS_API_HOST_INSECURE environment variable.
28 @export ARVADOS_API_HOST_INSECURE=1@
32 @arv [global_options] resource_type resource_method [method_parameters]@
36 Get UUID of the current user
39 Get entire record (json) for current user
42 Get entire record for identified user
43 @arv -h user get --uuid 6dnxa-tpzed-iimd25zhzh84gbk@
46 @arv user update --uuid 6dnxa-tpzed-iimd25zhzh84gbk --first-name "Bob"@
48 Get list of groups (showing just UUIDs)
51 Get list of groups (showing entire records)
56 - @--json@, @-j@ := Output entire response as compact JSON.
58 - @--pretty@, @--human@, @-h@ := Output entire response as JSON with whitespace for better human-readability.
60 - @--uuid@ := Output only the UUIDs of object(s) in the API response, one per line.
62 h3. Resource types and methods
64 Get list of resource types
67 Get list of resource methods for the "user" resource type