Skip to content

Conversation

@VedantMadane
Copy link

Summary

Fixes #10976 - Add ipfs key ls as an alias for ipfs key list.

Problem

The CLI is inconsistent with list vs ls. Commands like ipfs repo and ipfs pin use ls instead of list, but ipfs key only supports list.

Solution

Add ls as an alias for the list subcommand in ipfs key to be consistent with other ipfs commands.

Changes

  • Added "ls": keyListCmd to the subcommands map in core/commands/keystore.go

Testing

# Before (would fail)
$ ipfs key ls
Error: unknown subcommand "ls"

# After (works the same as 'list')
$ ipfs key ls
self
mykey

Add 'ls' as an alias for the 'list' subcommand in 'ipfs key' to be
consistent with other ipfs commands like 'ipfs repo ls' and
'ipfs pin ls' which use 'ls' instead of 'list'.

Fixes ipfs#10976

Signed-off-by: Vedant Madane <6527493+VedantMadane@users.noreply.github.com>
@VedantMadane VedantMadane requested a review from a team as a code owner January 15, 2026 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ipfs key ls as an alias for ipfs key list

1 participant