Skip to content

Commit 3197b9e

Browse files
committedDec 24, 2020
Update docs to point to new website
1 parent 346a57a commit 3197b9e

10 files changed

+33
-178
lines changed
 

‎README.md

Lines changed: 15 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,17 @@
22

33
# Hyp
44

5+
<p>[
6+
<a href="https://www.youtube.com/watch?v=SVk1uIQxOO8">Demo Video</a>
7+
<a href="#installation">Installation</a> |
8+
<a href="#usage">Usage</a> |
9+
<a href="#overview">Overview</a> |
10+
<a href="https://hypercore-protocol.org/guides/hyp/">Documentation</a>
11+
]</p>
12+
513
A CLI for peer-to-peer file sharing (and more) using the [Hypercore Protocol](https://hypercore-protocol.org).
614

7-
- [Installation](#installation)
8-
- [Usage](#usage)
9-
- [Overview](#overview)
10-
- Guides
11-
- [Sharing a folder](./docs/guides/sharing-a-folder.md)
12-
- [Downloading a folder](./docs/guides/downloading-a-folder.md)
13-
- [Keeping hypers online (seeding)](./docs/guides/seeding.md)
14-
- [List your current seeds](./docs/guides/list-seeds.md)
15-
- ["Beaming" data](./docs/guides/beaming-data.md)
16-
- [Creating a hyperdrive](./docs/guides/creating-a-hyperdrive.md)
17-
- [Reading a file from a hyperdrive](./docs/guides/reading-a-file.md)
18-
- [Writing a file to a hyperdrive](./docs/guides/writing-a-file.md)
19-
- [Diffing hyperdrives and local folders](./docs/guides/diffing-a-hyperdrive.md)
20-
- [Glossary of terms](./docs/glossary.md)
21-
- [API Docs](https://github.com/hypercore-protocol/hyperspace-client)
15+
[📺 Watch a Demo](https://www.youtube.com/watch?v=SVk1uIQxOO8)
2216

2317
## Installation
2418

@@ -121,25 +115,11 @@ To see what hypers you are currently seeding, run `info`:
121115
hyp info
122116
```
123117
124-
If you're sharing with a single friend or one of your own devices, you can [beam the URL](./docs/guides/beaming-data.md) with a pass phrase you create. One your sending device:
125-
126-
```
127-
echo "hyper://515bbbc1db2139ef27b6c45dfa418c8be6a1dec16823ea7cb9e61af8d060049e/" | hyp beam
128-
```
129-
130-
This will generate a pass-phrase which you can enter on the receiving device to get the key:
131-
132-
```
133-
hyp beam "the generated phrase"
134-
```
118+
## [Documentation](https://hypercore-protocol.org/guides/hyp/)
135119
136-
Further guides:
120+
The [official docs](https://hypercore-protocol.org/guides/hyp/) have a lot of useful guides:
137121
138-
- [Sharing a folder](./docs/guides/sharing-a-folder.md)
139-
- [Downloading a folder](./docs/guides/downloading-a-folder.md)
140-
- [Keeping hypers online (seeding)](./docs/guides/seeding.md)
141-
- [List your current seeds](./docs/guides/list-seeds.md)
142-
- ["Beaming" data](./docs/guides/beaming-data.md)
143-
- [Reading a file from a hyperdrive](./docs/guides/reading-a-file.md)
144-
- [Writing a file to a hyperdrive](./docs/guides/writing-a-file.md)
145-
- [Diffing hyperdrives and local folders](./docs/guides/diffing-a-hyperdrive.md)
122+
- [Full Commands Reference](https://hypercore-protocol.org/guides/hyp/commands/)
123+
- [Guide: Sharing Folders](https://hypercore-protocol.org/guides/hyp/sharing-folders/)
124+
- [Guide: Seeding Data](https://hypercore-protocol.org/guides/hyp/seeding-data/)
125+
- [Guide: Beaming Files](https://hypercore-protocol.org/guides/hyp/beaming-files/)

‎docs/guides/beaming-data.md

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,5 @@
11
# Beaming data
22

3-
```
4-
hyp beam [passphrase]
5-
```
3+
This doc was moved to the website:
64

7-
Ever wish you had a fast way to send files or data to a device? For instance...
8-
9-
- Send a `hyper://` URL to another device for syncing
10-
- Copy an individual file to a friend's device
11-
- Run a command and share the output with a team-mate to debug
12-
13-
That's what the "beam" command is for. It acts like a stream, so you can pipe data in and out of the command.
14-
15-
```
16-
cat my-file.txt | hyp beam
17-
```
18-
19-
It will generate a passphrase for you, like "manager car factory". You use that phrase on the receiving device and pipe out the data:
20-
21-
```
22-
hyp beam "manager car factory" > ./their-file.txt
23-
```
5+
https://hypercore-protocol.org/guides/hyp/beaming-files/

‎docs/guides/creating-a-hyperdrive.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
# Creating a hyperdrive
22

3-
```
4-
hyp create drive
5-
```
3+
This doc was moved to the website:
64

7-
This will output the URL of your new hyperdrive and you'll be ready to go.
8-
9-
> If you're just looking to share a folder, you can [use the sync command](./sharing-a-folder.md).
5+
https://hypercore-protocol.org/guides/hyp/commands/create/

‎docs/guides/diffing-a-hyperdrive.md

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
11
# Diffing hyperdrives and local folders
22

3-
```
4-
hyp diff {source} {target}
5-
```
3+
This doc was moved to the website:
64

7-
- **source** A local folder path or hyperdrive URL.
8-
- **target** A local folder path or hyperdrive URL.
9-
10-
The command will output a list of all files that differ and explain how they differ.
11-
12-
You can sync the target so that it matches the source by adding the `--commit` switch:
13-
14-
```
15-
hyp diff {source} {target} --commit
16-
```
17-
18-
This will give you a chance to review the changes about to occur, then y/n the sync.
5+
https://hypercore-protocol.org/guides/hyp/commands/drive-diff/

‎docs/guides/downloading-a-folder.md

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
11
# Downloading a folder from a hyperdrive
22

3-
```
4-
hyp sync {source} [target]
5-
```
3+
This doc was moved to the website:
64

7-
- **source** The hyperdrive you want to download.
8-
- **target** The path of the local folder you want to download to.
9-
10-
Example:
11-
12-
```
13-
hyp sync hyper://1234..af ./target-folder
14-
```
15-
16-
You can re-run the command to update the target folder. It will cause the target folder to match the hyperdrive *exactly* so watch out for data loss.
17-
18-
> If you include `--watch` the sync command will continuously sync the source to the target.
5+
https://hypercore-protocol.org/guides/hyp/sharing-folders/

‎docs/guides/list-seeds.md

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
11
# List your current seeds
22

3-
```
4-
hyp info [urls..]
5-
```
3+
This doc was moved to the website:
64

7-
The info command will tell you what you are currently seeding if given no arguments:
8-
9-
```
10-
hyp info
11-
```
12-
13-
If one (or more) URLs are supplied, it will give the current seeding state of that hyper:
14-
15-
```
16-
hyp info hyper://1234..af
17-
```
5+
https://hypercore-protocol.org/guides/hyp/seeding-data/

‎docs/guides/reading-a-file.md

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
11
# Reading a file from a hyperdrive
22

3-
```
4-
hyp cat {url}
5-
```
3+
This doc was moved to the website:
64

7-
To read the file, simply run `cat` on the file's URL:
8-
9-
```
10-
hyp cat hyper://1234..af/hello.txt
11-
```
12-
13-
You can save the file using pipes:
14-
15-
```
16-
hyp cat hyper://1234..af/hello.txt > ./hello.txt
17-
```
5+
https://hypercore-protocol.org/guides/hyp/commands/drive-cat/

‎docs/guides/seeding.md

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,5 @@
11
# Keeping hypers online (seeding)
22

3-
```
4-
hyp seed {url}
5-
```
3+
This doc was moved to the website:
64

7-
To sync the current data of a hyper and host its data for others to access, run the seed command on its URL:
8-
9-
```
10-
hyp seed hyper://1234..af
11-
```
12-
13-
You can stop seeding with the unseed command:
14-
15-
```
16-
hyp unseed hyper://1234..af
17-
```
18-
19-
You can list all currently-seeded hypers with the info command:
20-
21-
```
22-
hyp info
23-
```
5+
https://hypercore-protocol.org/guides/hyp/seeding-data/

‎docs/guides/sharing-a-folder.md

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,5 @@
11
# Sharing a folder in a hyperdrive
22

3-
```
4-
hyp sync {source} [target]
5-
```
3+
This doc was moved to the website:
64

7-
- **source** The path of the folder to share.
8-
- **target** Optional- the hyperdrive to sync the folder to.
9-
10-
If no target is supplied, `hyp` will create a new hyperdrive for you.
11-
12-
```
13-
hyp sync ./target-folder
14-
```
15-
16-
The sync command will output the URL of your new hyperdrive, and it will now contain your folder's files.
17-
18-
To update the hyperdrive again, run:
19-
20-
```
21-
hyp sync ./target-folder hyper://1234..af
22-
```
23-
24-
Where `hyper://1234..af` is your hyperdrive's URL.
25-
26-
> If you include `--watch` the sync command will continuously sync the source to the target.
5+
https://hypercore-protocol.org/guides/hyp/sharing-folders/

‎docs/guides/writing-a-file.md

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,5 @@
11
# Writing an individual file to hyperdrive
22

3-
```
4-
hyp put {url} [value]
5-
```
3+
This doc was moved to the website:
64

7-
You'll first need to [create a hyperdrive](./creating-a-hyperdrive.md).
8-
9-
To write a file, run the `put` command on the URL and provide the content of the file:
10-
11-
```
12-
hyp put hyper://1234..af/hello.txt "Hello, world!"
13-
```
14-
15-
If you want to copy an existing file into the hyperdrive, use pipes instead of supplying the value in the arguments:
16-
17-
```
18-
cat hello.txt | hyp put hyper://1234..af/hello.txt
19-
```
5+
https://hypercore-protocol.org/guides/hyp/commands/drive-put/

0 commit comments

Comments
 (0)
Please sign in to comment.