How to know if a CID has been pinned on my node?

I’ve been running thousands of ipfs pin add... to pin my CIDs so how do I know if a specific CID has been pinned on my node?

I went to Command-line reference | IPFS Docs but can’t find a command relating to this. If I run ipfs pin add with the same CID again, I’m just told it’s pinned again.

ipfs pin ls --type=recursive <cid>

1 Like