A command-line interface for managing PearDrive networks - decentralized file sharing and storage.
npm install -g pearnpm install -g @peardrive/cliRuns from any directory in the terminal once you've installed globally!
peardriveclinpm install -g peargit clone https://github.com/peardrive/PearDriveCLI.git
cd PearDriveCLInpm installnpm run startOnce the application starts, you'll see an interactive menu with the following options:
- Create a new PearDrive network - Start your own decentralized file sharing network
- Join an existing network - Connect to a network using a network key
- List your networks - View all your PearDrive networks
- Delete a network - Remove a network from your local storage (not yet implemented as of 2.0.3)
- Upload files to your PearDrive network
- Download files from network peers
- List local and network files
- Share files with other network participants
- Generate QR codes for easy network sharing
- Set custom network nicknames
- Toggle archive mode
- View connected peers and their public keys
- Start the CLI with
npm run startorpear run . - Create a new network or join an existing one
- Upload files you want to share
- Share your network key with others (via QR code or text)
- Download files shared by other network participants
Archive mode transforms your device into a complete archive node for the PearDrive network. When enabled:
- Your device automatically downloads and stores every file shared on the network
- Acts as a persistent backup ensuring data availability even when original uploaders go offline
- Helps strengthen network resilience by maintaining complete copies of all shared content
- Requires sufficient storage space as it will download all network content
pear run -d .npm test- Solution: Install Pear runtime globally with
npm install -g pear - Verify installation with
pear --version
- Solution: Install the CLI globally with
npm install -g @peardrive/cli - Or clone the repository and run
npm installin the project directory
- Solution: Use
sudo npm install -g pearon macOS/Linux - Or configure npm to use a different directory:
npm config set prefix ~/.local
- Check that both Pear runtime and PearDrive CLI are installed
- Try running
pear run .directly in the cloned repository - Check console for specific error messages
- Ensure your firewall allows the application to access the network
- Check that you're using the correct network key when joining
- File syncing for file changes will not work as intended until PearDriveCore 3.0
- Verify all peers are connected to the same network
- Ensure sufficient peers are online and connected