Drives
CLI to download, seed, and mirror a Hyperdrive or Localdrive.
Installation
Install with npm:
Basic usage
Commands:
touch
[options]
Create a writable Hyperdrive
mirror
[options]
Mirror a drive into another drive
seed
[options] [key]
Seed a Hyperdrive to the DHT network
download
[options]
Download a Hyperdrive by key
serve
[options]
Creates a HTTP drive server
ls
[options]
List files of the drive
info
[options] [key]
Show info about the Hyperdrive
Create a writable Hyperdrive
Mirror any drive into another
Source and destination can be a folder path or a drive key. Use
--live
for real-time mirroring, and--verbose
to show all logs.
Share a drive
Download a Hyperdrive
Serve a drive via HTTP
URL requests are like
/path/to/file
, i.e.,http://localhost:5000/index.js
.
List files
Currently it ignores
.git
,.github
,node_modules
, andcorestore
entries.
Show storage size, version, etc
Use
drives --help
for more information,drives mirror --help
, etc. Always add--corestore [path]
, by default it's./corestore
.
Last updated