-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A way to list all objects stored in the repo #3764
Comments
|
Oh. I was reading This is completely different from other commands and subcommands where you have |
@mitar its technically implemented as a subcommand, but the way to look at it is that 'local' is just a special argument for |
I mean how this is internally. But it was really impossible to find. I checked Also, thing like I think it would be much better if this would be |
We can rework the local subcommand to actually just be a special cased argument of |
This will change HTTP API sematic. |
I just worry that it will be hard to find this if it is somewhere hidden under Or maybe we should just change the description so that |
@mitar its in the |
I mean, if I do:
I see that this is not a command to list all objects in my current repo.
OK, no command to list everything in my current repo. And So, it is hard to find. It is just surprising that a command has both subcommands and also works on its own. Most other commands I have looked at (like This is just my experience as somebody who is not familiar with IPFS. Once you know where to find the command, it does not really matter where it is. But it was hard for me to find it with common strategies I use (and which worked for all other commands). Also interesting is that refs is not listed in API docs. Only |
We could probably add |
That would also be good, yes. |
While this doesn't work; ipfs refs local --format '<src> <dst> <linkname>' You can, however, pipe the output of ipfs refs local | ipfs refs --format '<src> <dst> <linkname>' Or, with a better format ipfs refs local | ipfs refs -u --format '<src> -> <dst> | <linkname>' |
Awesome. But I think this issue transformed into "discoverability of this feature" issue. |
Version information:
Type: Feature
Priority: P2
Description:
It would be great to be able to list all the objects in the repo.
I can use:
To see that I have 996591 objects. But how can I know which ones are that so that I could understand where is this number coming from.
I tried using ipfs-see-all but it does not work with my version of IPFS (whyrusleeping/ipfs-see-all#3) and also it seems it does not just list all objects.
So I propose
ipfs repo ls
or something. :-)The text was updated successfully, but these errors were encountered: