Ipfs-cluster search cid by name

I need a way to search CID by a given name. I noticed that ipfs-cluster-ctl add has --name option, as well as the --metadata. However ipfs-cluster-ctl pin ls can only search by CID.

Is it possible to search CID by name given in the ipfs-cluster or perhaps by the key,value in the metadata?

Not possible. Things are indexed by CID.

You would need to keep a separate database with a name-CID mapping.

Sometimes, you can get by with something along the lines of ipfs-cluster-ctl pin ls | grep <name> though.

1 Like