Stage a local folder to a Hyperdrive.
npm install pear-stage-next
pear-stage-next [flags]
| Flag | Description |
|---|---|
--touch | Create a new staging key and print its pear link |
--key <key> | Target Hyperdrive key to stage into |
--target <path> | Local directory to stage (defaults to cwd) |
--storage <storage> | Path to Corestore storage |
--seed-time <ms> | After staging, seed the drive over Hyperswarm for this many milliseconds |
--version | Print the version |
1. Create a staging key
pear-stage-next --storage ./store --touch
# pear://abc123...
2. Stage a local folder into the drive
pear-stage-next --storage ./store --key pear://... --target ./my-app
3. Stage and seed
pear-stage-next --storage ./store --key abc123... --target ./my-app --seed-time 30000
Apache-2.0