Skip to content

CLI to download, seed, and mirror a Hyperdrive or Localdrive

License

Notifications You must be signed in to change notification settings

holepunchto/drives

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

117 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

drives

CLI to seed and mirror a Hyperdrive or Localdrive

npm i -g drives

Usage

drives [flags] [command]

Commands:
  touch              Create a writable Hyperdrive
  mirror <src> <dst> Mirror a drive into another drive
  seed [key]         Seed a hyperdrive so others can download it

API

Use drives --help for more information, drives mirror --help, etc.

Storage

By default, it tries to use .drives from the current directory.

If it doesn't exists then it will go back ../ until it finds an existing .drives.

If it doesn't find anything, then it will create and use a global folder at ~/.drives.

You can always set --storage [path] to force a different location.

Create a writable Hyperdrive

drives touch
# New drive: <z32 key>

Mirror any drive into another

Source and destination can be a folder path or a drive key.

drives mirror <src> <dst>

Options:

  • --live for real-time mirroring
  • --version [v] to use a specific version
  • --storage [path] to specify storage location

Seed a drive

drives seed [my-drive-key]

Seed a hyperdrive so others can download it.

License

Apache-2.0

About

CLI to download, seed, and mirror a Hyperdrive or Localdrive

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •