github.com/cosmos/cosmos-sdk@v0.50.10/client/keys/root.go (about) 1 package keys 2 3 import ( 4 "github.com/spf13/cobra" 5 6 "github.com/cosmos/cosmos-sdk/client/flags" 7 ) 8 9 // Commands registers a sub-tree of commands to interact with 10 // local private key storage. 11 func Commands() *cobra.Command { 12 cmd := &cobra.Command{ 13 Use: "keys", 14 Short: "Manage your application's keys", 15 Long: `Keyring management commands. These keys may be in any format supported by the 16 CometBFT crypto library and can be used by light-clients, full nodes, or any other application 17 that needs to sign with a private key. 18 19 The keyring supports the following backends: 20 21 os Uses the operating system's default credentials store. 22 file Uses encrypted file-based keystore within the app's configuration directory. 23 This keyring will request a password each time it is accessed, which may occur 24 multiple times in a single command resulting in repeated password prompts. 25 kwallet Uses KDE Wallet Manager as a credentials management application. 26 pass Uses the pass command line utility to store and retrieve keys. 27 test Stores keys insecurely to disk. It does not prompt for a password to be unlocked 28 and it should be use only for testing purposes. 29 30 kwallet and pass backends depend on external tools. Refer to their respective documentation for more 31 information: 32 KWallet https://github.com/KDE/kwallet 33 pass https://www.passwordstore.org/ 34 35 The pass backend requires GnuPG: https://gnupg.org/ 36 `, 37 } 38 39 cmd.AddCommand( 40 MnemonicKeyCommand(), 41 AddKeyCommand(), 42 ExportKeyCommand(), 43 ImportKeyCommand(), 44 ImportKeyHexCommand(), 45 ListKeysCmd(), 46 ListKeyTypesCmd(), 47 ShowKeysCmd(), 48 DeleteKeyCommand(), 49 RenameKeyCommand(), 50 ParseKeyStringCommand(), 51 MigrateCommand(), 52 ) 53 54 cmd.PersistentFlags().String(flags.FlagOutput, "text", "Output format (text|json)") 55 flags.AddKeyringFlags(cmd.PersistentFlags()) 56 57 return cmd 58 }