thru-cli keys when you need to inspect or mutate the keys saved in CLI config.
Commands
| Command | Use it for |
|---|---|
list | List saved key names. |
add <name> <key> | Add a hex private key to config. |
get <name> | Print a saved key value. |
generate <name> | Generate a new random key. |
rm <name> | Remove a saved key. |
Important Details
- key names are normalized case-insensitively
addexpects a 64-character hex private keygenerateandaddsupport--overwrite
Minimal Pattern
Notes
- Treat this family as local config mutation, not on-chain state mutation.
- Many other command families rely on these key names for flags like
--fee-payerand--authority.