From 34fc55aeabe04eb6495c6c7139b0f2f3af19814a Mon Sep 17 00:00:00 2001 From: Karissa McKelvey Date: Wed, 25 May 2016 12:03:40 -0700 Subject: Update api.md --- api.md | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/api.md b/api.md index af43e7f..68a7c3f 100644 --- a/api.md +++ b/api.md @@ -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. -- cgit v1.2.3