dstore - Decentralized Storage Toolchain
dstore is the command-line tool for managing decentralized storage on IPFS, Arweave, and other decentralized storage networks.
Installation
dstore is included with JOEL:
dstore --versionQuick Start
# Upload file to IPFS
dstore put file.txt --ipfs
# Upload to Arweave
dstore put file.txt --arweave
# Download from IPFS
dstore get <cid> --ipfs
# List stored files
dstore listIPFS Operations
Interact with IPFS:
# Upload file to IPFS
dstore put file.txt --ipfs
# Upload directory
dstore put ./data --ipfs --recursive
# Download from IPFS
dstore get <cid> --ipfs --output file.txt
# Pin file
dstore pin <cid> --ipfs
# Unpin file
dstore unpin <cid> --ipfs
# List pinned files
dstore pins --ipfsArweave Operations
Interact with Arweave:
# Upload file to Arweave
dstore put file.txt --arweave
# Upload with tags
dstore put file.txt --arweave --tag "Content-Type:text/plain"
# Download from Arweave
dstore get <tx-id> --arweave
# Check transaction status
dstore status <tx-id> --arweaveFile Management
Manage stored files:
# List all stored files
dstore list
# Show file info
dstore info <cid>
# Verify file integrity
dstore verify <cid>
# Remove file
dstore remove <cid>Storage Providers
Configure storage providers:
# Add IPFS node
dstore provider add ipfs --url http://localhost:5001
# Add Arweave wallet
dstore provider add arweave --wallet wallet.json
# List providers
dstore provider list
# Set default provider
dstore provider set-default ipfsExamples
Upload to IPFS
# Upload single file
dstore put document.pdf --ipfs
# Output: QmXoypizjW3WknFiJnKLwHCnL72vedxjQkDDP1mXWo6ucoUpload Directory
# Upload entire directory
dstore put ./website --ipfs --recursive
# Output: QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdGDownload File
# Download from IPFS
dstore get QmXoypizjW3WknFiJnKLwHCnL72vedxjQkDDP1mXWo6uco \
--ipfs \
--output document.pdfCommand Reference
IPFS Commands
dstore put <file> --ipfs- Upload to IPFSdstore get <cid> --ipfs- Download from IPFSdstore pin <cid> --ipfs- Pin filedstore unpin <cid> --ipfs- Unpin file
Arweave Commands
dstore put <file> --arweave- Upload to Arweavedstore get <tx-id> --arweave- Download from Arweavedstore status <tx-id> --arweave- Check status
Management Commands
dstore list- List filesdstore info <cid>- Show file infodstore verify <cid>- Verify filedstore remove <cid>- Remove file