diff options
author | Karissa McKelvey <karissa@users.noreply.github.com> | 2016-05-25 12:03:40 -0700 |
---|---|---|
committer | Karissa McKelvey <karissa@users.noreply.github.com> | 2016-05-25 12:03:40 -0700 |
commit | 34fc55aeabe04eb6495c6c7139b0f2f3af19814a (patch) | |
tree | fffad3b847f6458f1171312d1607b83116b85c6b | |
parent | f1db33607852c62b1191c11ad0c6bae906f02ca8 (diff) | |
download | dat-docs-34fc55aeabe04eb6495c6c7139b0f2f3af19814a.tar.gz dat-docs-34fc55aeabe04eb6495c6c7139b0f2f3af19814a.zip |
Update api.md
-rw-r--r-- | api.md | 18 |
1 files changed, 12 insertions, 6 deletions
@@ -10,14 +10,20 @@ Command-line interface for dat -#### `dat LINK DIR` +#### `dat share DIR` -Downloads the link to the given directory, and then exits. +Create a new dat link for the contents of the given directory. Prints a URL, which is a unique public key feed. This public key feed can be appended to. + +###### Options -#### `dat seed LINK DIR` + * `--append=URL`: Adds the new URL to the public key feed. + * `--static`: Ensures that the URL cannot be appended to. -Downloads the link to the given directory and opens up a server that seeds it to the dat peer network. +#### `dat URL DIR` + +Downloads the link to the given directory, and then exits. -### `dat ls LINK` +###### Options -Fetches the metadata for the link and prints out the file list in the console. + * `--seed`: Downloads the link to the given directory and opens up a server that seeds it to the dat peer network. + * `--list`: Fetches the metadata for the link and prints out the file list in the console. |