near/near-cli-rs

Enhanced key management

alexauroradev opened this issue · 3 comments

At the moment the function
$ near account list-keys <account> network-config mainnet now
displays the keys of the account in an order, presumably, from the newest to the oldest. It would be good to be able to specify listing of full access keys only or highlight somehow these keys. It is important for keeping the clean setup of all keys within an account. Similar issue is with function call keys with infinite allowance.

Besides that it would be nice to be able to manage the keys straight away from the table that is an output of the call. Ideally, a user can navigate the keys using arrows and able to delete them with one key press. The flow should allow for multiple key deletions.

At the moment the cleanup of the keys associated with the account requires periodic display of the key list and manual copying of the keys and deleting them one by one.

frol commented

Thanks for the suggestion!

At the moment the cleanup of the keys associated with the account requires periodic display of the key list and manual copying of the keys and deleting them one by one.

@alexauroradev Would it help if delete-keys had a multi-select of all the keys listed there with their type in parenthesis?

frol commented

@alexauroradev By the way, you can delete several keys at once by specifying them in a comma-separated list:

telegram-cloud-photo-size-2-5427240436549932076-y

Makes sense about deleting multiple keys. Though it still requires copy paste after listing. It's inconvenient and error prone.