Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Get node list for CID
- ipfs routing findprovs <CID>
- # Get local pinned files CID list
- ipfs pin ls
- # Get addresses by peer ID
- ipfs routing findpeer <Peer ID>
- # Add file to local node by it CID
- ipfs pin add <CID>
- # Download file to current folder by it CID
- ipfs get /ipfs/<CID>
- # Write all pinned CIDs to text file
- ipfs pin ls -q > pinned_cids.txt
- # Download and add to local repo all data by CIDs using text file
- cat pinned_cids.txt | xargs -I {} ipfs pin add {}
- # Remove pinned CID from repository (required gs)
- ipfs pin rm <CID>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement