1
0
mirror of https://github.com/bitwarden/cli synced 2025-12-17 00:33:20 +00:00

allow org exports

This commit is contained in:
Kyle Spearrin
2019-10-07 11:01:30 -04:00
parent 99c4291ee7
commit 93c2ce2582
2 changed files with 17 additions and 2 deletions

View File

@@ -497,6 +497,7 @@ export class Program extends BaseProgram {
.description('Export vault data to a CSV or JSON file.')
.option('--output <output>', 'Output directory or filename.')
.option('--format <format>', 'Export file format.')
.option('--organizationid <organizationid>', 'Organization id for an organization.')
.on('--help', () => {
writeLn('\n Notes:');
writeLn('');
@@ -509,6 +510,7 @@ export class Program extends BaseProgram {
writeLn(' bw export myPassword321 --format json');
writeLn(' bw export --output ./exp/bw.csv');
writeLn(' bw export myPassword321 --output bw.json --format json');
writeLn(' bw export myPassword321 --organizationid 7063feab-4b10-472e-b64c-785e2b870b92');
writeLn('', true);
})
.action(async (password, cmd) => {