@peardrive/cli
    Preparing search index...

    @peardrive/cli

    PearDrive CLI

    A command-line interface for managing PearDrive networks - decentralized file sharing and storage.

    npm install -g pear
    
    npm install -g @peardrive/cli
    

    Runs from directory once you've installed globally!

    peardrivecli
    
    npm install -g pear
    
    git clone https://github.com/peardrive/PearDriveCLI.git
    cd PearDriveCLI
    npm install
    
    npm run start
    

    Once 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
    1. Start the CLI with npm run start or pear run .
    2. Create a new network or join an existing one
    3. Upload files you want to share
    4. Share your network key with others (via QR code or text)
    5. 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 install in the project directory
    • Solution: Use sudo npm install -g pear on 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