How to get all CID present in a node?

Hello

I’m using ipfs 0.7.0
I’d like to find a way to get all the CID (pinned and unpinned one) present on the current node

Do you know how I can achieve this ?

Thank you

ipfs refs local

OT: why are you on 0.7.0? It is 2 years old :see_no_evil: please upgrade to 0.12.0

Because they hopped all versions since 0.4.23 in the process of upgrading.