diff options
-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. |