closes #7200
[arvados.git] / doc / sdk / cli / subcommands.html.textile.liquid
index dddfa300117726ee8329c4f93e2a8dabc4294391..aa7af94d5f9d4ac8527e7d3e238e15d19f177905 100644 (file)
@@ -45,11 +45,11 @@ h3(#arv-copy). arv copy
 <notextile>
 <pre>
 $ <code class="userinput">arv copy --help</code>
-usage: arv-copy [-h] [-v] [--progress] [--no-progress] [-f] --src
-                SOURCE_ARVADOS --dst DESTINATION_ARVADOS [--recursive]
-                [--no-recursive] [--dst-git-repo DST_GIT_REPO]
-                [--project-uuid PROJECT_UUID] [--retries RETRIES]
-                object_uuid
+usage: arv_copy.py [-h] [-v] [--progress] [--no-progress] [-f] --src
+                   SOURCE_ARVADOS --dst DESTINATION_ARVADOS [--recursive]
+                   [--no-recursive] [--dst-git-repo DST_GIT_REPO]
+                   [--project-uuid PROJECT_UUID] [--retries RETRIES]
+                   object_uuid
 
 Copy a pipeline instance, template or collection from one Arvados instance to
 another.
@@ -64,15 +64,15 @@ optional arguments:
   --no-progress         Do not report progress on copying collections.
   -f, --force           Perform copy even if the object appears to exist at
                         the remote destination.
-  --src SOURCE_ARVADOS  The name of the source Arvados instance (required).
-                        May be either a pathname to a config file, or the
-                        basename of a file in
-                        $HOME/.config/arvados/instance_name.conf.
+  --src SOURCE_ARVADOS  The name of the source Arvados instance (required) -
+                        points at an Arvados config file. May be either a
+                        pathname to a config file, or (for example) "foo" as
+                        shorthand for $HOME/.config/arvados/foo.conf.
   --dst DESTINATION_ARVADOS
                         The name of the destination Arvados instance
-                        (required). May be either a pathname to a config file,
-                        or the basename of a file in
-                        $HOME/.config/arvados/instance_name.conf.
+                        (required) - points at an Arvados config file. May be
+                        either a pathname to a config file, or (for example)
+                        "foo" as shorthand for $HOME/.config/arvados/foo.conf.
   --recursive           Recursively copy any dependencies for this object.
                         (default)
   --no-recursive        Do not copy any dependencies. NOTE: if this option is
@@ -157,7 +157,81 @@ $ <code class="userinput">arv keep --help</code>
 Usage: arv keep [method] [--parameters]
 Use 'arv keep [method] --help' to get more information about specific methods.
 
-Available methods: ls, get, put, less, check, docker
+Available methods: ls, get, put, docker
+</pre>
+</notextile>
+
+h3(#arv-keep-ls). arv keep ls
+
+<notextile>
+<pre>
+$ <code class="userinput">arv keep ls --help</code>
+usage: arv-ls [-h] [--retries RETRIES] [-s] locator
+
+List contents of a manifest
+
+positional arguments:
+  locator            Collection UUID or locator
+
+optional arguments:
+  -h, --help         show this help message and exit
+  --retries RETRIES  Maximum number of times to retry server requests that
+                     encounter temporary failures (e.g., server down). Default
+                     3.
+  -s                 List file sizes, in KiB.
+</pre>
+</notextile>
+
+h3(#arv-keep-get). arv keep get
+
+<notextile>
+<pre>
+$ <code class="userinput">arv keep get --help</code>
+usage: arv-get [-h] [--retries RETRIES]
+               [--progress | --no-progress | --batch-progress]
+               [--hash HASH | --md5sum] [-n] [-r] [-f | --skip-existing]
+               locator [destination]
+
+Copy data from Keep to a local file or pipe.
+
+positional arguments:
+  locator            Collection locator, optionally with a file path or
+                     prefix.
+  destination        Local file or directory where the data is to be written.
+                     Default: /dev/stdout.
+
+optional arguments:
+  -h, --help         show this help message and exit
+  --retries RETRIES  Maximum number of times to retry server requests that
+                     encounter temporary failures (e.g., server down). Default
+                     3.
+  --progress         Display human-readable progress on stderr (bytes and, if
+                     possible, percentage of total data size). This is the
+                     default behavior when it is not expected to interfere
+                     with the output: specifically, stderr is a tty _and_
+                     either stdout is not a tty, or output is being written to
+                     named files rather than stdout.
+  --no-progress      Do not display human-readable progress on stderr.
+  --batch-progress   Display machine-readable progress on stderr (bytes and,
+                     if known, total data size).
+  --hash HASH        Display the hash of each file as it is read from Keep,
+                     using the given hash algorithm. Supported algorithms
+                     include md5, sha1, sha224, sha256, sha384, and sha512.
+  --md5sum           Display the MD5 hash of each file as it is read from
+                     Keep.
+  -n                 Do not write any data -- just read from Keep, and report
+                     md5sums if requested.
+  -r                 Retrieve all files in the specified collection/prefix.
+                     This is the default behavior if the "locator" argument
+                     ends with a forward slash.
+  -f                 Overwrite existing files while writing. The default
+                     behavior is to refuse to write *anything* if any of the
+                     output files already exist. As a special case, -f is not
+                     needed to write to /dev/stdout.
+  --skip-existing    Skip files that already exist. The default behavior is to
+                     refuse to write *anything* if any files exist that would
+                     have to be overwritten. This option causes even devices,
+                     sockets, and fifos to be skipped.
 </pre>
 </notextile>
 
@@ -169,7 +243,8 @@ $ <code class="userinput">arv keep put --help</code>
 usage: arv-put [-h] [--max-manifest-depth N | --normalize]
                [--as-stream | --stream | --as-manifest | --in-manifest | --manifest | --as-raw | --raw]
                [--use-filename FILENAME] [--filename FILENAME]
-               [--portable-data-hash] [--project-uuid UUID] [--name NAME]
+               [--portable-data-hash] [--replication N]
+               [--project-uuid UUID] [--name NAME]
                [--progress | --no-progress | --batch-progress]
                [--resume | --no-resume] [--retries RETRIES]
                [path [path ...]]
@@ -215,6 +290,10 @@ optional arguments:
                         a directory. Implies --manifest.
   --portable-data-hash  Print the portable data hash instead of the Arvados
                         UUID for the collection created by the upload.
+  --replication N       Set the replication level for the new collection: how
+                        many different physical storage devices (e.g., disks)
+                        should have a copy of each data block. Default is to
+                        use the server-provided default (if any) or 2.
   --project-uuid UUID   Store the collection in the specified project, instead
                         of your Home project.
   --name NAME           Save the collection with the specified name.
@@ -234,59 +313,6 @@ optional arguments:
 </pre>
 </notextile>
 
-h3(#arv-keep-get). arv keep get
-
-<notextile>
-<pre>
-$ <code class="userinput">arv keep get --help</code>
-usage: arv-get [-h] [--retries RETRIES]
-               [--progress | --no-progress | --batch-progress]
-               [--hash HASH | --md5sum] [-n] [-r] [-f | --skip-existing]
-               locator [destination]
-
-Copy data from Keep to a local file or pipe.
-
-positional arguments:
-  locator            Collection locator, optionally with a file path or
-                     prefix.
-  destination        Local file or directory where the data is to be written.
-                     Default: /dev/stdout.
-
-optional arguments:
-  -h, --help         show this help message and exit
-  --retries RETRIES  Maximum number of times to retry server requests that
-                     encounter temporary failures (e.g., server down). Default
-                     3.
-  --progress         Display human-readable progress on stderr (bytes and, if
-                     possible, percentage of total data size). This is the
-                     default behavior when it is not expected to interfere
-                     with the output: specifically, stderr is a tty _and_
-                     either stdout is not a tty, or output is being written to
-                     named files rather than stdout.
-  --no-progress      Do not display human-readable progress on stderr.
-  --batch-progress   Display machine-readable progress on stderr (bytes and,
-                     if known, total data size).
-  --hash HASH        Display the hash of each file as it is read from Keep,
-                     using the given hash algorithm. Supported algorithms
-                     include md5, sha1, sha224, sha256, sha384, and sha512.
-  --md5sum           Display the MD5 hash of each file as it is read from
-                     Keep.
-  -n                 Do not write any data -- just read from Keep, and report
-                     md5sums if requested.
-  -r                 Retrieve all files in the specified collection/prefix.
-                     This is the default behavior if the "locator" argument
-                     ends with a forward slash.
-  -f                 Overwrite existing files while writing. The default
-                     behavior is to refuse to write *anything* if any of the
-                     output files already exist. As a special case, -f is not
-                     needed to write to /dev/stdout.
-  --skip-existing    Skip files that already exist. The default behavior is to
-                     refuse to write *anything* if any files exist that would
-                     have to be overwritten. This option causes even devices,
-                     sockets, and fifos to be skipped.
-</pre>
-</notextile>
-
 
 h3(#arv-pipeline-run). arv pipeline run
 
@@ -336,7 +362,7 @@ Options:
 
 h3(#arv-run). arv run
 
-The @arv-run@ command creates Arvados pipelines at the command line that fan out to multiple concurrent tasks across Arvado compute nodes.
+The @arv-run@ command creates Arvados pipelines at the command line that fan out to multiple concurrent tasks across Arvados compute nodes.
 
 The User Guide has a page on "using arv-run":{{site.baseurl}}/user/topics/arv-run.html.
 
@@ -361,7 +387,7 @@ optional arguments:
                         exit
   --local               Run locally using arv-run-pipeline-instance
   --docker-image DOCKER_IMAGE
-                        Docker image to use, default arvados/jobs
+                        Docker image to use, otherwise use instance default.
   --ignore-rcode        Commands that return non-zero return codes should not
                         be considered failed.
   --no-reuse            Do not reuse past jobs.