aboutsummaryrefslogtreecommitdiffstats
path: root/docs/api.md
blob: 68a7c3f88bec45438364a527feea050e045815c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
## 1.0 Architecture Design


  * dat: command-line api
  * dat-desk: desktop application
  * hyperdrive: storage layer
  * discovery-swarm: dat network swarm discovery mechanism

## dat

Command-line interface for dat

#### `dat share DIR`

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

  * `--append=URL`: Adds the new URL to the public key feed.
  * `--static`: Ensures that the URL cannot be appended to.

#### `dat URL DIR`

Downloads the link to the given directory, and then exits. 

###### Options

  * `--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.