I have a list of CIDs (4,000 of them) that I uploaded to nft.storage and now I wish to import them to my own IPFS node. What is the easiest way to do this in bulk? I checked the ipfs add
command but seems like I can only add one file (not CID) at a time.
Asked
Active
Viewed 579 times
2

codanad376
- 65
- 6
1 Answers
1
You can add multiple CIDs to your node simply by pinning them to your node. To quote the Kubo docs:
USAGE
ipfs pin add <ipfs-path>... - Pin objects to local storage.
SYNOPSIS
ipfs pin add [--recursive=false] [--progress] [--] <ipfs-path>...
ARGUMENTS
<ipfs-path>... - Path to object(s) to be pinned.
OPTIONS
-r, --recursive bool - Recursively pin the object linked to by the specified
object(s). Default: true.
--progress bool - Show progress.
DESCRIPTION
Stores an IPFS object(s) from a given path locally to disk.
For example:
ipfs pin add QmNsXkTWPv9uNHJGwc4DHM285cipEbDNwoeHiihYsckanu QmQ2KWk5mY4LToqyMoebwMzKLavCBDAyo9B7aZTkeBMy1w

Discordian
- 749
- 3
- 16
-
Example please not just cp docs. Especially interested if the IPFS Desktop client can insert a CID list. CL needed for that? – Feb 23 '23 at 23:33
-
Thanks! Appreciate your efforts. Now you only need to have "a script" to plot those 4,000 CIDs to add them? – Mar 03 '23 at 09:39