You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
1.2 KiB

10 years ago
#!/usr/bin/env node
var program = require('commander');
program
.version('0.0.1')
.command('create <walletName> <m-n> [username]', 'creates a wallet')
.command('join <secret> [username]', 'join a wallet')
.command('status', 'get wallet status')
.command('address', 'create a new address from server')
.command('addresses', 'list addresses')
.command('balance', 'wallet balance')
10 years ago
.command('send <address> <amount> [note]', 'send bitcoins')
10 years ago
.command('sign <txpId>', 'sign a transaction proposal')
.command('reject <txpId> [reason]', 'reject a transaction proposal')
10 years ago
.command('broadcast <txpId>', 'broadcast a transaction proposal to the Bitcoin network')
10 years ago
.command('rm <txpId>', 'remove a transaction proposal')
10 years ago
.command('history', 'list of past incoming and outgoing transactions')
.command('export', 'export wallet critical data')
10 years ago
.command('import', 'import wallet critical data')
10 years ago
.command('confirm', 'show copayer\'s data for confirmation')
10 years ago
.command('recreate', 'recreate a wallet on a remove server given local infomation')
10 years ago
.command('txproposals', 'list transactions proposals')
.command('genkey', 'generates extended private key for later wallet usage')
10 years ago
.parse(process.argv);