feat(key): add 'ipfs key ls' as alias for 'ipfs key list'#11147
Merged
lidel merged 4 commits intoipfs:masterfrom Jan 30, 2026
Merged
feat(key): add 'ipfs key ls' as alias for 'ipfs key list'#11147lidel merged 4 commits intoipfs:masterfrom
lidel merged 4 commits intoipfs:masterfrom
Conversation
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>
aligns with other commands like 'ipfs pin ls' and 'ipfs files ls'. 'ipfs key list' still works but shows deprecation warning.
was copy-pasted from sign command and said "signing" instead of "verifying"
lidel
approved these changes
Jan 30, 2026
Member
lidel
left a comment
There was a problem hiding this comment.
Thanks for the contribution! I made a few changes on top to align with how we handle CLI consistency:
- Made
lsthe canonical command and deprecatedlist(shows warning in--help) - Updated help text examples to use
ipfs key ls - Updated
client/rpcto usekey/lsendpoint for consistency withpin/ls,pubsub/ls - Added test expectation for the new subcommand
- Combined with other key improvements in changelog
Also snuck in a typo fix for ipfs key verify --help (said "signing" instead of "verifying").
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #10976 - Add
ipfs key lsas an alias foripfs key list.Problem
The CLI is inconsistent with
listvsls. Commands likeipfs repoandipfs pinuselsinstead oflist, butipfs keyonly supportslist.Solution
Add
lsas an alias for thelistsubcommand inipfs keyto be consistent with other ipfs commands.Changes
"ls": keyListCmdto the subcommands map incore/commands/keystore.goTesting