5 title: "Command line interface"
9 h1. Reference: Command Line Interface
11 If you are logged in to an Arvados VM, the command line SDK should be installed. Try:
15 <!-- _Help is not helpful. See bug #1667_ -->
19 Set the ARVADOS_API_HOST environment variable.
21 @export ARVADOS_API_HOST={{ site.arvados_api_host }}@
23 Log in to Workbench and get an API token for your account. Set the ARVADOS_API_TOKEN environment variable.
26 ARVADOS_API_TOKEN=c0vdbi8wp7f703lbthyadlvmaivgldxssy3l32isslmax93k9@
28 If you are using a development instance with an unverifiable SSL certificate, set the ARVADOS_API_HOST_INSECURE environment variable.
30 @export ARVADOS_API_HOST_INSECURE=1@
32 <!-- _This should link back to "api-tokens":api-tokens.html instead of
33 re-explaining it__ -->
37 @arv [global_options] resource_type resource_method [method_parameters]@
39 <!-- _This is what arv --help really ought to print out_ -->
43 Get UUID of the current user
46 Get entire record (json) for current user
49 Get entire record for identified user
50 @arv -h user get --uuid 6dnxa-tpzed-iimd25zhzh84gbk@
53 @arv user update --uuid 6dnxa-tpzed-iimd25zhzh84gbk --first-name "Bob"@
55 Get list of groups (showing just UUIDs)
58 Get list of groups (showing entire records)
62 @arv group delete --uuid 6dnxa-j7d0g-iw7i6n43d37jtog@
66 <!-- _Move these up to before "basic examples", and give examples of what
67 these options do and how they might be useful._ -->
69 - @--json@, @-j@ := Output entire response as compact JSON.
71 - @--pretty@, @--human@, @-h@ := Output entire response as JSON with whitespace for better human-readability.
73 - @--uuid@ := Output only the UUIDs of object(s) in the API response, one per line.
75 h3. Resource types and methods
77 Get list of resource types
80 Get list of resource methods for the "user" resource type