diff --git a/keychain-cli.js b/keychain-cli.js index 36627662..1aa6ce86 100644 --- a/keychain-cli.js +++ b/keychain-cli.js @@ -10,7 +10,15 @@ program .description('Keychain CLI tool'); program - .command('new-wallet ') + .command('create-wallet') + .description('Create new wallet (or show existing wallet)') + .action(() => { + const wallet = keymaster.loadWallet(); + console.log(JSON.stringify(wallet, null, 4)); + }); + +program + .command('import-wallet ') .description('Create new wallet from a recovery phrase') .action((recoveryPhrase) => { const wallet = keymaster.newWallet(recoveryPhrase);