2024-12-09 11:58:50 -08:00
|
|
|
// FIXME: Update this file to be type safe and remove this and next line
|
|
|
|
|
// @ts-strict-ignore
|
2024-01-31 17:17:04 -05:00
|
|
|
import { program, Command } from "commander";
|
2021-02-03 11:44:33 -06:00
|
|
|
|
2025-09-30 09:45:04 -05:00
|
|
|
import { FeatureFlag } from "@bitwarden/common/enums/feature-flag.enum";
|
|
|
|
|
|
[AC-1011] Admin Console / Billing code ownership (#4973)
* refactor: move SCIM component to admin-console, refs EC-1011
* refactor: move scimProviderType to admin-console, refs EC-1011
* refactor: move scim-config.api to admin-console, refs EC-1011
* refactor: create models folder and nest existing api contents, refs EC-1011
* refactor: move scim-config to admin-console models, refs EC-1011
* refactor: move billing.component to billing, refs EC-1011
* refactor: remove nested app folder from new billing structure, refs EC-1011
* refactor: move organizations/billing to billing, refs EC-1011
* refactor: move add-credit and adjust-payment to billing/settings, refs EC-1011
* refactor: billing history/sync to billing, refs EC-1011
* refactor: move org plans, payment/method to billing/settings, refs EC-1011
* fix: update legacy file paths for payment-method and tax-info, refs EC-1011
* fix: update imports for scim component, refs EC-1011
* refactor: move subscription and tax-info into billing, refs EC-1011
* refactor: move user-subscription to billing, refs EC-1011
* refactor: move images/cards to billing and update base path, refs EC-1011
* refactor: move payment-method, plan subscription, and plan to billing, refs EC-1011
* refactor: move transaction-type to billing, refs EC-1011
* refactor: move billing-sync-config to billing, refs EC-1011
* refactor: move billing-sync and bit-pay-invoice request to billing, refs EC-1011
* refactor: move org subscription and tax info update requests to billing, refs EC-1011
* fix: broken paths to billing, refs EC-1011
* refactor: move payment request to billing, refs EC-1011
* fix: update remaining imports for payment-request, refs EC-1011
* refactor: move tax-info-update to billing, refs EC-1011
* refactor: move billing-payment, billing-history, and billing responses to billing, refs EC-1011
* refactor: move organization-subscription-responset to billing, refs EC-1011
* refactor: move payment and plan responses to billing, refs EC-1011
* refactor: move subscription response to billing ,refs EC-1011
* refactor: move tax info and rate responses to billing, refs EC-1011
* fix: update remaining path to base response for tax-rate response, refs EC-1011
* refactor: (browser) move organization-service to admin-console, refs EC-1011
* refactor: (browser) move organizaiton-service to admin-console, refs EC-1011
* refactor: (cli) move share command to admin-console, refs EC-1011
* refactor: move organization-collect request model to admin-console, refs EC-1011
* refactor: (web) move organization, collection/user responses to admin-console, refs EC-1011
* refactor: (cli) move selection-read-only to admin-console, refs EC-1011
* refactor: (desktop) move organization-filter to admin-console, refs EC-1011
* refactor: (web) move organization-switcher to admin-console, refs EC-1011
* refactor: (web) move access-selector to admin-console, refs EC-1011
* refactor: (web) move create folder to admin-console, refs EC-1011
* refactor: (web) move org guards folder to admin-console, refs EC-1011
* refactor: (web) move org layout to admin-console, refs EC-1011
* refactor: move manage collections to admin console, refs EC-1011
* refactor: (web) move collection-dialog to admin-console, refs EC-1011
* refactor: (web) move entity users/events and events component to admin-console, refs EC-1011
* refactor: (web) move groups/group-add-edit to admin-console, refs EC-1011
* refactor: (web) move manage, org-manage module, and user-confirm to admin-console, refs EC-1011
* refactor: (web) move people to admin-console, refs EC-1011
* refactor: (web) move reset-password to admin-console, refs EC-1011
* refactor: (web) move organization-routing and module to admin-console, refs EC-1011
* refactor: move admin-console and billing within app scope, refs EC-1011
* fix: update leftover merge conflicts, refs EC-1011
* refactor: (web) member-dialog to admin-console, refs EC-1011
* refactor: (web) move policies to admin-console, refs EC-1011
* refactor: (web) move reporting to admin-console, refs EC-1011
* refactor: (web) move settings to admin-console, refs EC-1011
* refactor: (web) move sponsorships to admin-console, refs EC-1011
* refactor: (web) move tools to admin-console, refs EC-1011
* refactor: (web) move users to admin-console, refs EC-1011
* refactor: (web) move collections to admin-console, refs EC-1011
* refactor: (web) move create-organization to admin-console, refs EC-1011
* refactor: (web) move licensed components to admin-console, refs EC-1011
* refactor: (web) move bit organization modules to admin-console, refs EC-1011
* fix: update leftover import statements for organizations.module, refs EC-1011
* refactor: (web) move personal vault and max timeout to admin-console, refs EC-1011
* refactor: (web) move providers to admin-console, refs EC-1011
* refactor: (libs) move organization service to admin-console, refs EC-1011
* refactor: (libs) move profile org/provider responses and other misc org responses to admin-console, refs EC-1011
* refactor: (libs) move provider request and selectionion-read-only request to admin-console, refs EC-1011
* fix: update missed import path for provider-user-update request, refs EC-1011
* refactor: (libs) move abstractions to admin-console, refs EC-1011
* refactor: (libs) move org/provider enums to admin-console, refs EC-1011
* fix: update downstream import statements from libs changes, refs EC-1011
* refactor: (libs) move data files to admin-console, refs EC-1011
* refactor: (libs) move domain to admin-console, refs EC-1011
* refactor: (libs) move request objects to admin-console, refs EC-1011
* fix: update downstream import changes from libs, refs EC-1011
* refactor: move leftover provider files to admin-console, refs EC-1011
* refactor: (browser) move group policy environment to admin-console, refs EC-1011
* fix: (browser) update downstream import statements, refs EC-1011
* fix: (desktop) update downstream libs moves, refs EC-1011
* fix: (cli) update downstream import changes from libs, refs EC-1011
* refactor: move org-auth related files to admin-console, refs EC-1011
* refactor: (libs) move request objects to admin-console, refs EC-1011
* refactor: move persmissions to admin-console, refs EC-1011
* refactor: move sponsored families to admin-console and fix libs changes, refs EC-1011
* refactor: move collections to admin-console, refs EC-1011
* refactor: move spec file back to spec scope, refs EC-1011
* fix: update downstream imports due to libs changes, refs EC-1011
* fix: udpate downstream import changes due to libs, refs EC-1011
* fix: update downstream imports due to libs changes, refs EC-1011
* fix: update downstream imports from libs changes, refs EC-1011
* fix: update path malformation in jslib-services.module, refs EC-1011
* fix: lint errors from improper casing, refs AC-1011
* fix: update downstream filename changes, refs AC-1011
* fix: (cli) update downstream filename changes, refs AC-1011
* fix: (desktop) update downstream filename changes, refs AC-1011
* fix: (browser) update downstream filename changes, refs AC-1011
* fix: lint errors, refs AC-1011
* fix: prettier, refs AC-1011
* fix: lint fixes for import order, refs AC-1011
* fix: update import path for provider user type, refs AC-1011
* fix: update new codes import paths for admin console structure, refs AC-1011
* fix: lint/prettier, refs AC-1011
* fix: update layout stories path, refs AC-1011
* fix: update comoponents card icons base variable in styles, refs AC-1011
* fix: update provider service path in permissions guard spec, refs AC-1011
* fix: update provider permission guard path, refs AC-1011
* fix: remove unecessary TODO for shared index export statement, refs AC-1011
* refactor: move browser-organization service and cli organization-user response out of admin-console, refs AC-1011
* refactor: move web/browser/desktop collections component to vault domain, refs AC-1011
* refactor: move organization.module out of admin-console scope, refs AC-1011
* fix: prettier, refs AC-1011
* refactor: move organizations-api-key.request out of admin-console scope, refs AC-1011
2023-03-22 10:03:50 -05:00
|
|
|
import { ConfirmCommand } from "./admin-console/commands/confirm.command";
|
|
|
|
|
import { ShareCommand } from "./admin-console/commands/share.command";
|
2024-05-27 11:03:23 +10:00
|
|
|
import { BaseProgram } from "./base-program";
|
2021-02-03 11:44:33 -06:00
|
|
|
import { EditCommand } from "./commands/edit.command";
|
|
|
|
|
import { GetCommand } from "./commands/get.command";
|
|
|
|
|
import { ListCommand } from "./commands/list.command";
|
|
|
|
|
import { RestoreCommand } from "./commands/restore.command";
|
2022-11-18 13:20:19 +01:00
|
|
|
import { Response } from "./models/response";
|
2023-04-19 11:30:46 +02:00
|
|
|
import { ExportCommand } from "./tools/export.command";
|
2023-03-23 11:43:27 +01:00
|
|
|
import { ImportCommand } from "./tools/import.command";
|
2022-03-03 18:24:41 +01:00
|
|
|
import { CliUtils } from "./utils";
|
2025-09-30 09:45:04 -05:00
|
|
|
import { ArchiveCommand } from "./vault/archive.command";
|
2023-01-31 16:08:37 -05:00
|
|
|
import { CreateCommand } from "./vault/create.command";
|
|
|
|
|
import { DeleteCommand } from "./vault/delete.command";
|
2021-02-03 11:44:33 -06:00
|
|
|
|
|
|
|
|
const writeLn = CliUtils.writeLn;
|
|
|
|
|
|
2024-05-27 11:03:23 +10:00
|
|
|
export class VaultProgram extends BaseProgram {
|
2025-09-30 09:45:04 -05:00
|
|
|
async register() {
|
|
|
|
|
const isArchivedEnabled = await this.serviceContainer.configService.getFeatureFlag(
|
|
|
|
|
FeatureFlag.PM19148_InnovationArchive,
|
|
|
|
|
);
|
|
|
|
|
|
2021-02-03 11:44:33 -06:00
|
|
|
program
|
2025-09-30 09:45:04 -05:00
|
|
|
.addCommand(this.listCommand(isArchivedEnabled))
|
2021-06-21 20:26:28 -04:00
|
|
|
.addCommand(this.getCommand())
|
|
|
|
|
.addCommand(this.createCommand())
|
|
|
|
|
.addCommand(this.editCommand())
|
|
|
|
|
.addCommand(this.deleteCommand())
|
2025-09-30 09:45:04 -05:00
|
|
|
.addCommand(this.restoreCommand(isArchivedEnabled))
|
2021-06-21 20:26:28 -04:00
|
|
|
.addCommand(this.shareCommand("move", false))
|
|
|
|
|
.addCommand(this.confirmCommand())
|
|
|
|
|
.addCommand(this.importCommand())
|
|
|
|
|
.addCommand(this.exportCommand())
|
|
|
|
|
.addCommand(this.shareCommand("share", true));
|
2025-09-30 09:45:04 -05:00
|
|
|
|
|
|
|
|
if (isArchivedEnabled) {
|
|
|
|
|
program.addCommand(this.archiveCommand());
|
|
|
|
|
}
|
2021-06-21 20:26:28 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private validateObject(requestedObject: string, validObjects: string[]): boolean {
|
|
|
|
|
let success = true;
|
|
|
|
|
if (!validObjects.includes(requestedObject)) {
|
|
|
|
|
success = false;
|
|
|
|
|
this.processResponse(
|
|
|
|
|
Response.badRequest(
|
|
|
|
|
'Unknown object "' +
|
|
|
|
|
requestedObject +
|
2025-09-30 09:45:04 -05:00
|
|
|
'". Allowed objects are: ' +
|
2021-06-21 20:26:28 -04:00
|
|
|
validObjects.join(", ") +
|
2021-12-20 18:04:00 +01:00
|
|
|
".",
|
|
|
|
|
),
|
2021-06-21 20:26:28 -04:00
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
return success;
|
2021-12-20 18:04:00 +01:00
|
|
|
}
|
2021-06-21 20:26:28 -04:00
|
|
|
|
2025-09-30 09:45:04 -05:00
|
|
|
private listCommand(isArchivedEnabled: boolean): Command {
|
2021-06-21 20:26:28 -04:00
|
|
|
const listObjects = [
|
|
|
|
|
"items",
|
|
|
|
|
"folders",
|
|
|
|
|
"collections",
|
|
|
|
|
"org-collections",
|
|
|
|
|
"org-members",
|
|
|
|
|
"organizations",
|
|
|
|
|
];
|
|
|
|
|
|
2025-09-30 09:45:04 -05:00
|
|
|
const command = new Command("list")
|
2024-01-31 17:17:04 -05:00
|
|
|
.argument("<object>", "Valid objects are: " + listObjects.join(", "))
|
|
|
|
|
.description("List an array of objects from the vault.")
|
2021-02-03 11:44:33 -06:00
|
|
|
.option("--search <search>", "Perform a search on the listed objects.")
|
|
|
|
|
.option("--url <url>", "Filter items of type login with a url-match search.")
|
|
|
|
|
.option("--folderid <folderid>", "Filter items by folder id.")
|
|
|
|
|
.option("--collectionid <collectionid>", "Filter items by collection id.")
|
|
|
|
|
.option(
|
|
|
|
|
"--organizationid <organizationid>",
|
|
|
|
|
"Filter items or collections by organization id.",
|
|
|
|
|
)
|
|
|
|
|
.option("--trash", "Filter items that are deleted and in the trash.")
|
|
|
|
|
.on("--help", () => {
|
2021-06-21 20:26:28 -04:00
|
|
|
writeLn("\n Notes:");
|
2021-02-03 11:44:33 -06:00
|
|
|
writeLn("");
|
|
|
|
|
writeLn(" Combining search with a filter performs a logical AND operation.");
|
|
|
|
|
writeLn("");
|
|
|
|
|
writeLn(" Combining multiple filters performs a logical OR operation.");
|
|
|
|
|
writeLn("");
|
|
|
|
|
writeLn(" Examples:");
|
|
|
|
|
writeLn("");
|
|
|
|
|
writeLn(" bw list items");
|
|
|
|
|
writeLn(" bw list items --folderid 60556c31-e649-4b5d-8daf-fc1c391a1bf2");
|
|
|
|
|
writeLn(
|
|
|
|
|
" bw list items --search google --folderid 60556c31-e649-4b5d-8daf-fc1c391a1bf2",
|
|
|
|
|
);
|
|
|
|
|
writeLn(" bw list items --url https://google.com");
|
|
|
|
|
writeLn(" bw list items --folderid null");
|
|
|
|
|
writeLn(" bw list items --organizationid notnull");
|
|
|
|
|
writeLn(
|
|
|
|
|
" bw list items --folderid 60556c31-e649-4b5d-8daf-fc1c391a1bf2 --organizationid notnull",
|
|
|
|
|
);
|
|
|
|
|
writeLn(" bw list items --trash");
|
2025-09-30 09:45:04 -05:00
|
|
|
if (isArchivedEnabled) {
|
|
|
|
|
writeLn(" bw list items --archived");
|
|
|
|
|
}
|
2021-02-03 11:44:33 -06:00
|
|
|
writeLn(" bw list folders --search email");
|
|
|
|
|
writeLn(" bw list org-members --organizationid 60556c31-e649-4b5d-8daf-fc1c391a1bf2");
|
|
|
|
|
writeLn("", true);
|
|
|
|
|
})
|
|
|
|
|
.action(async (object, cmd) => {
|
2021-06-21 20:26:28 -04:00
|
|
|
if (!this.validateObject(object, listObjects)) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
2021-02-03 11:44:33 -06:00
|
|
|
await this.exitIfLocked();
|
|
|
|
|
const command = new ListCommand(
|
2024-05-16 00:09:24 +10:00
|
|
|
this.serviceContainer.cipherService,
|
|
|
|
|
this.serviceContainer.folderService,
|
|
|
|
|
this.serviceContainer.collectionService,
|
|
|
|
|
this.serviceContainer.organizationService,
|
|
|
|
|
this.serviceContainer.searchService,
|
2024-09-05 08:21:26 +10:00
|
|
|
this.serviceContainer.organizationUserApiService,
|
2024-05-16 00:09:24 +10:00
|
|
|
this.serviceContainer.apiService,
|
|
|
|
|
this.serviceContainer.eventCollectionService,
|
2025-01-02 17:16:33 -05:00
|
|
|
this.serviceContainer.accountService,
|
[PM-12048] Wire up vNextCollectionService (#14871)
* remove derived state, add cache in service. Fix ts strict errors
* cleanup
* promote vNextCollectionService
* wip
* replace callers in web WIP
* refactor tests for web
* update callers to use vNextCollectionServcie methods in CLI
* WIP make decryptMany public again, fix callers, imports
* wip cli
* wip desktop
* update callers in browser, fix tests
* remove in service cache
* cleanup
* fix test
* clean up
* address cr feedback
* remove duplicate userId
* clean up
* remove unused import
* fix vault-settings-import-nudge.service
* fix caching issue
* clean up
* refactor decryption, cleanup, update callers
* clean up
* Use in-memory statedefinition
* Ac/pm 12048 v next collection service pairing (#15239)
* Draft from pairing with Gibson
* Add todos
* Add comment
* wip
* refactor upsert
---------
Co-authored-by: Brandon <btreston@bitwarden.com>
* clean up
* fix state definitions
* fix linter error
* cleanup
* add test, fix shareReplay
* fix item-more-options component
* fix desktop build
* refactor state to account for null as an initial value, remove caching
* add proper cache, add unit test, update callers
* clean up
* fix routing when deleting collections
* cleanup
* use combineLatest
* fix ts-strict errors, fix error handling
* refactor Collection and CollectionView properties for ts-strict
* Revert "refactor Collection and CollectionView properties for ts-strict"
This reverts commit a5c63aab76ba5663f4136000fe31fbb9171b8d4b.
---------
Co-authored-by: Thomas Rittson <trittson@bitwarden.com>
Co-authored-by: Thomas Rittson <31796059+eliykat@users.noreply.github.com>
2025-07-23 19:05:15 -04:00
|
|
|
this.serviceContainer.keyService,
|
2025-06-23 12:04:56 -04:00
|
|
|
this.serviceContainer.cliRestrictedItemTypesService,
|
2025-09-30 09:45:04 -05:00
|
|
|
this.serviceContainer.cipherArchiveService,
|
2021-02-03 11:44:33 -06:00
|
|
|
);
|
|
|
|
|
const response = await command.run(object, cmd);
|
2021-06-21 20:26:28 -04:00
|
|
|
|
2021-02-03 11:44:33 -06:00
|
|
|
this.processResponse(response);
|
|
|
|
|
});
|
2025-09-30 09:45:04 -05:00
|
|
|
|
|
|
|
|
if (isArchivedEnabled) {
|
|
|
|
|
command.option("--archived", "Filter items that are archived.");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return command;
|
2021-06-21 20:26:28 -04:00
|
|
|
}
|
2021-02-03 11:44:33 -06:00
|
|
|
|
2024-01-31 17:17:04 -05:00
|
|
|
private getCommand(): Command {
|
2021-06-21 20:26:28 -04:00
|
|
|
const getObjects = [
|
|
|
|
|
"item",
|
|
|
|
|
"username",
|
|
|
|
|
"password",
|
|
|
|
|
"uri",
|
|
|
|
|
"totp",
|
|
|
|
|
"notes",
|
|
|
|
|
"exposed",
|
|
|
|
|
"attachment",
|
|
|
|
|
"folder",
|
|
|
|
|
"collection",
|
|
|
|
|
"org-collection",
|
|
|
|
|
"organization",
|
|
|
|
|
"template",
|
|
|
|
|
"fingerprint",
|
|
|
|
|
"send",
|
|
|
|
|
];
|
2024-01-31 17:17:04 -05:00
|
|
|
return new Command("get")
|
|
|
|
|
.argument("<object>", "Valid objects are: " + getObjects.join(", "))
|
|
|
|
|
.argument("<id>", "Search term or object's globally unique `id`.")
|
|
|
|
|
.description("Get an object from the vault.")
|
2021-02-03 11:44:33 -06:00
|
|
|
.option("--itemid <itemid>", "Attachment's item id.")
|
|
|
|
|
.option("--output <output>", "Output directory or filename for attachment.")
|
|
|
|
|
.option("--organizationid <organizationid>", "Organization id for an organization object.")
|
|
|
|
|
.on("--help", () => {
|
2021-06-21 20:26:28 -04:00
|
|
|
writeLn("\n If raw output is specified and no output filename or directory is given for");
|
|
|
|
|
writeLn(" an attachment query, the attachment content is written to stdout.");
|
2021-02-03 11:44:33 -06:00
|
|
|
writeLn("");
|
|
|
|
|
writeLn(" Examples:");
|
|
|
|
|
writeLn("");
|
|
|
|
|
writeLn(" bw get item 99ee88d2-6046-4ea7-92c2-acac464b1412");
|
|
|
|
|
writeLn(" bw get password https://google.com");
|
|
|
|
|
writeLn(" bw get totp google.com");
|
2021-05-12 05:19:47 +03:00
|
|
|
writeLn(" bw get notes google.com");
|
2021-02-03 11:44:33 -06:00
|
|
|
writeLn(" bw get exposed yahoo.com");
|
|
|
|
|
writeLn(
|
|
|
|
|
" bw get attachment b857igwl1dzrs2 --itemid 99ee88d2-6046-4ea7-92c2-acac464b1412 " +
|
|
|
|
|
"--output ./photo.jpg",
|
|
|
|
|
);
|
|
|
|
|
writeLn(
|
|
|
|
|
" bw get attachment photo.jpg --itemid 99ee88d2-6046-4ea7-92c2-acac464b1412 --raw",
|
|
|
|
|
);
|
|
|
|
|
writeLn(" bw get folder email");
|
|
|
|
|
writeLn(" bw get template folder");
|
|
|
|
|
writeLn("", true);
|
|
|
|
|
})
|
|
|
|
|
.action(async (object, id, cmd) => {
|
2021-06-21 20:26:28 -04:00
|
|
|
if (!this.validateObject(object, getObjects)) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
2021-02-03 11:44:33 -06:00
|
|
|
await this.exitIfLocked();
|
|
|
|
|
const command = new GetCommand(
|
2024-05-16 00:09:24 +10:00
|
|
|
this.serviceContainer.cipherService,
|
|
|
|
|
this.serviceContainer.folderService,
|
|
|
|
|
this.serviceContainer.collectionService,
|
|
|
|
|
this.serviceContainer.totpService,
|
|
|
|
|
this.serviceContainer.auditService,
|
2024-10-24 19:41:30 +02:00
|
|
|
this.serviceContainer.keyService,
|
2024-09-24 11:28:33 +02:00
|
|
|
this.serviceContainer.encryptService,
|
2024-05-16 00:09:24 +10:00
|
|
|
this.serviceContainer.searchService,
|
|
|
|
|
this.serviceContainer.apiService,
|
|
|
|
|
this.serviceContainer.organizationService,
|
|
|
|
|
this.serviceContainer.eventCollectionService,
|
|
|
|
|
this.serviceContainer.billingAccountProfileStateService,
|
2024-08-20 12:00:48 -04:00
|
|
|
this.serviceContainer.accountService,
|
2025-06-23 12:04:56 -04:00
|
|
|
this.serviceContainer.cliRestrictedItemTypesService,
|
2021-02-03 11:44:33 -06:00
|
|
|
);
|
|
|
|
|
const response = await command.run(object, id, cmd);
|
|
|
|
|
this.processResponse(response);
|
|
|
|
|
});
|
2021-06-21 20:26:28 -04:00
|
|
|
}
|
2021-02-03 11:44:33 -06:00
|
|
|
|
2021-06-21 20:26:28 -04:00
|
|
|
private createCommand() {
|
|
|
|
|
const createObjects = ["item", "attachment", "folder", "org-collection"];
|
2024-01-31 17:17:04 -05:00
|
|
|
return new Command("create")
|
|
|
|
|
.argument("<object>", "Valid objects are: " + createObjects.join(", "))
|
|
|
|
|
.argument(
|
|
|
|
|
"[encodedJson]",
|
|
|
|
|
"Encoded json of the object to create. Can also be piped into stdin.",
|
|
|
|
|
)
|
|
|
|
|
.description("Create an object in the vault.")
|
2021-02-03 11:44:33 -06:00
|
|
|
.option("--file <file>", "Path to file for attachment.")
|
|
|
|
|
.option("--itemid <itemid>", "Attachment's item id.")
|
|
|
|
|
.option("--organizationid <organizationid>", "Organization id for an organization object.")
|
|
|
|
|
.on("--help", () => {
|
2021-06-21 20:26:28 -04:00
|
|
|
writeLn("\n Examples:");
|
2021-02-03 11:44:33 -06:00
|
|
|
writeLn("");
|
|
|
|
|
writeLn(" bw create folder eyJuYW1lIjoiTXkgRm9sZGVyIn0K");
|
|
|
|
|
writeLn(" echo 'eyJuYW1lIjoiTXkgRm9sZGVyIn0K' | bw create folder");
|
|
|
|
|
writeLn(
|
|
|
|
|
" bw create attachment --file ./myfile.csv " +
|
|
|
|
|
"--itemid 16b15b89-65b3-4639-ad2a-95052a6d8f66",
|
|
|
|
|
);
|
|
|
|
|
writeLn("", true);
|
|
|
|
|
})
|
|
|
|
|
.action(async (object, encodedJson, cmd) => {
|
2021-06-21 20:26:28 -04:00
|
|
|
if (!this.validateObject(object, createObjects)) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
2021-02-03 11:44:33 -06:00
|
|
|
await this.exitIfLocked();
|
|
|
|
|
const command = new CreateCommand(
|
2024-05-16 00:09:24 +10:00
|
|
|
this.serviceContainer.cipherService,
|
|
|
|
|
this.serviceContainer.folderService,
|
2024-10-24 19:41:30 +02:00
|
|
|
this.serviceContainer.keyService,
|
2024-09-24 11:28:33 +02:00
|
|
|
this.serviceContainer.encryptService,
|
2024-05-16 00:09:24 +10:00
|
|
|
this.serviceContainer.apiService,
|
|
|
|
|
this.serviceContainer.folderApiService,
|
|
|
|
|
this.serviceContainer.billingAccountProfileStateService,
|
2024-06-07 20:14:21 +01:00
|
|
|
this.serviceContainer.organizationService,
|
2024-08-20 12:00:48 -04:00
|
|
|
this.serviceContainer.accountService,
|
2025-06-23 12:04:56 -04:00
|
|
|
this.serviceContainer.cliRestrictedItemTypesService,
|
2021-02-03 11:44:33 -06:00
|
|
|
);
|
|
|
|
|
const response = await command.run(object, encodedJson, cmd);
|
|
|
|
|
this.processResponse(response);
|
|
|
|
|
});
|
2021-06-21 20:26:28 -04:00
|
|
|
}
|
2021-02-03 11:44:33 -06:00
|
|
|
|
2024-01-31 17:17:04 -05:00
|
|
|
private editCommand(): Command {
|
2021-06-21 20:26:28 -04:00
|
|
|
const editObjects = ["item", "item-collections", "folder", "org-collection"];
|
2024-01-31 17:17:04 -05:00
|
|
|
return new Command("edit")
|
|
|
|
|
.argument("<object>", "Valid objects are: " + editObjects.join(", "))
|
|
|
|
|
.argument("<id>", "Object's globally unique `id`.")
|
|
|
|
|
.argument(
|
|
|
|
|
"[encodedJson]",
|
|
|
|
|
"Encoded json of the object to create. Can also be piped into stdin.",
|
|
|
|
|
)
|
|
|
|
|
.description("Edit an object from the vault.")
|
2021-02-03 11:44:33 -06:00
|
|
|
.option("--organizationid <organizationid>", "Organization id for an organization object.")
|
|
|
|
|
.on("--help", () => {
|
2021-06-21 20:26:28 -04:00
|
|
|
writeLn("\n Examples:");
|
2021-02-03 11:44:33 -06:00
|
|
|
writeLn("");
|
|
|
|
|
writeLn(
|
|
|
|
|
" bw edit folder 5cdfbd80-d99f-409b-915b-f4c5d0241b02 eyJuYW1lIjoiTXkgRm9sZGVyMiJ9Cg==",
|
|
|
|
|
);
|
|
|
|
|
writeLn(
|
|
|
|
|
" echo 'eyJuYW1lIjoiTXkgRm9sZGVyMiJ9Cg==' | " +
|
|
|
|
|
"bw edit folder 5cdfbd80-d99f-409b-915b-f4c5d0241b02",
|
|
|
|
|
);
|
|
|
|
|
writeLn(
|
|
|
|
|
" bw edit item-collections 78307355-fd25-416b-88b8-b33fd0e88c82 " +
|
|
|
|
|
"WyI5NzQwNTNkMC0zYjMzLTRiOTgtODg2ZS1mZWNmNWM4ZGJhOTYiXQ==",
|
|
|
|
|
);
|
|
|
|
|
writeLn("", true);
|
|
|
|
|
})
|
|
|
|
|
.action(async (object, id, encodedJson, cmd) => {
|
2021-06-21 20:26:28 -04:00
|
|
|
if (!this.validateObject(object, editObjects)) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
2021-02-03 11:44:33 -06:00
|
|
|
await this.exitIfLocked();
|
|
|
|
|
const command = new EditCommand(
|
2024-05-16 00:09:24 +10:00
|
|
|
this.serviceContainer.cipherService,
|
|
|
|
|
this.serviceContainer.folderService,
|
2024-10-24 19:41:30 +02:00
|
|
|
this.serviceContainer.keyService,
|
2024-09-24 11:28:33 +02:00
|
|
|
this.serviceContainer.encryptService,
|
2024-05-16 00:09:24 +10:00
|
|
|
this.serviceContainer.apiService,
|
|
|
|
|
this.serviceContainer.folderApiService,
|
2024-08-20 12:00:48 -04:00
|
|
|
this.serviceContainer.accountService,
|
2025-06-23 12:04:56 -04:00
|
|
|
this.serviceContainer.cliRestrictedItemTypesService,
|
2025-07-24 10:59:29 -07:00
|
|
|
this.serviceContainer.policyService,
|
2025-09-30 09:45:04 -05:00
|
|
|
this.serviceContainer.billingAccountProfileStateService,
|
2021-02-03 11:44:33 -06:00
|
|
|
);
|
|
|
|
|
const response = await command.run(object, id, encodedJson, cmd);
|
|
|
|
|
this.processResponse(response);
|
|
|
|
|
});
|
2021-06-21 20:26:28 -04:00
|
|
|
}
|
2021-02-03 11:44:33 -06:00
|
|
|
|
2024-01-31 17:17:04 -05:00
|
|
|
private deleteCommand(): Command {
|
2021-06-21 20:26:28 -04:00
|
|
|
const deleteObjects = ["item", "attachment", "folder", "org-collection"];
|
2024-01-31 17:17:04 -05:00
|
|
|
return new Command("delete")
|
|
|
|
|
.argument("<object>", "Valid objects are: " + deleteObjects.join(", "))
|
|
|
|
|
.argument("<id>", "Object's globally unique `id`.")
|
|
|
|
|
.description("Delete an object from the vault.")
|
2021-02-03 11:44:33 -06:00
|
|
|
.option("--itemid <itemid>", "Attachment's item id.")
|
|
|
|
|
.option("--organizationid <organizationid>", "Organization id for an organization object.")
|
|
|
|
|
.option(
|
|
|
|
|
"-p, --permanent",
|
|
|
|
|
"Permanently deletes the item instead of soft-deleting it (item only).",
|
|
|
|
|
)
|
|
|
|
|
.on("--help", () => {
|
2021-06-21 20:26:28 -04:00
|
|
|
writeLn("\n Examples:");
|
2021-02-03 11:44:33 -06:00
|
|
|
writeLn("");
|
|
|
|
|
writeLn(" bw delete item 7063feab-4b10-472e-b64c-785e2b870b92");
|
|
|
|
|
writeLn(" bw delete item 89c21cd2-fab0-4f69-8c6e-ab8a0168f69a --permanent");
|
|
|
|
|
writeLn(" bw delete folder 5cdfbd80-d99f-409b-915b-f4c5d0241b02");
|
|
|
|
|
writeLn(
|
|
|
|
|
" bw delete attachment b857igwl1dzrs2 --itemid 310d5ffd-e9a2-4451-af87-ea054dce0f78",
|
|
|
|
|
);
|
|
|
|
|
writeLn("", true);
|
|
|
|
|
})
|
|
|
|
|
.action(async (object, id, cmd) => {
|
2021-06-21 20:26:28 -04:00
|
|
|
if (!this.validateObject(object, deleteObjects)) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
2021-02-03 11:44:33 -06:00
|
|
|
await this.exitIfLocked();
|
|
|
|
|
const command = new DeleteCommand(
|
2024-05-16 00:09:24 +10:00
|
|
|
this.serviceContainer.cipherService,
|
|
|
|
|
this.serviceContainer.folderService,
|
|
|
|
|
this.serviceContainer.apiService,
|
|
|
|
|
this.serviceContainer.folderApiService,
|
|
|
|
|
this.serviceContainer.billingAccountProfileStateService,
|
2024-10-22 15:15:15 +02:00
|
|
|
this.serviceContainer.cipherAuthorizationService,
|
2025-01-02 17:16:33 -05:00
|
|
|
this.serviceContainer.accountService,
|
2025-06-23 12:04:56 -04:00
|
|
|
this.serviceContainer.cliRestrictedItemTypesService,
|
2021-02-03 11:44:33 -06:00
|
|
|
);
|
|
|
|
|
const response = await command.run(object, id, cmd);
|
|
|
|
|
this.processResponse(response);
|
|
|
|
|
});
|
2021-06-21 20:26:28 -04:00
|
|
|
}
|
2021-02-03 11:44:33 -06:00
|
|
|
|
2025-09-30 09:45:04 -05:00
|
|
|
private archiveCommand(): Command {
|
|
|
|
|
const archiveObjects = ["item"];
|
|
|
|
|
return new Command("archive")
|
|
|
|
|
.argument("<object>", "Valid objects are: " + archiveObjects.join(", "))
|
|
|
|
|
.argument("<id>", "Object's globally unique `id`.")
|
|
|
|
|
.description("Archive an object from the vault.")
|
|
|
|
|
.on("--help", () => {
|
|
|
|
|
writeLn("\n Examples:");
|
|
|
|
|
writeLn("");
|
|
|
|
|
writeLn(" bw archive item 7063feab-4b10-472e-b64c-785e2b870b92");
|
|
|
|
|
writeLn("", true);
|
|
|
|
|
})
|
|
|
|
|
.action(async (object, id) => {
|
|
|
|
|
if (!this.validateObject(object, archiveObjects)) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
await this.exitIfLocked();
|
|
|
|
|
const command = new ArchiveCommand(
|
|
|
|
|
this.serviceContainer.cipherService,
|
|
|
|
|
this.serviceContainer.accountService,
|
|
|
|
|
this.serviceContainer.configService,
|
|
|
|
|
this.serviceContainer.cipherArchiveService,
|
|
|
|
|
this.serviceContainer.billingAccountProfileStateService,
|
|
|
|
|
);
|
|
|
|
|
const response = await command.run(object, id);
|
|
|
|
|
this.processResponse(response);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private restoreCommand(isArchivedEnabled: boolean): Command {
|
2021-06-21 20:26:28 -04:00
|
|
|
const restoreObjects = ["item"];
|
2025-09-30 09:45:04 -05:00
|
|
|
const command = new Command("restore")
|
2024-01-31 17:17:04 -05:00
|
|
|
.argument("<object>", "Valid objects are: " + restoreObjects.join(", "))
|
|
|
|
|
.argument("<id>", "Object's globally unique `id`.")
|
2021-02-03 11:44:33 -06:00
|
|
|
.on("--help", () => {
|
2021-06-21 20:26:28 -04:00
|
|
|
writeLn("\n Examples:");
|
2021-02-03 11:44:33 -06:00
|
|
|
writeLn("");
|
|
|
|
|
writeLn(" bw restore item 7063feab-4b10-472e-b64c-785e2b870b92");
|
|
|
|
|
writeLn("", true);
|
|
|
|
|
})
|
|
|
|
|
.action(async (object, id, cmd) => {
|
2021-06-21 20:26:28 -04:00
|
|
|
if (!this.validateObject(object, restoreObjects)) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
2021-02-03 11:44:33 -06:00
|
|
|
await this.exitIfLocked();
|
2025-02-12 08:53:31 -05:00
|
|
|
const command = new RestoreCommand(
|
|
|
|
|
this.serviceContainer.cipherService,
|
|
|
|
|
this.serviceContainer.accountService,
|
2025-04-02 12:49:08 -04:00
|
|
|
this.serviceContainer.cipherAuthorizationService,
|
2025-09-30 09:45:04 -05:00
|
|
|
this.serviceContainer.cipherArchiveService,
|
|
|
|
|
this.serviceContainer.configService,
|
2025-02-12 08:53:31 -05:00
|
|
|
);
|
2022-01-19 10:45:14 -05:00
|
|
|
const response = await command.run(object, id);
|
2021-02-03 11:44:33 -06:00
|
|
|
this.processResponse(response);
|
|
|
|
|
});
|
2025-09-30 09:45:04 -05:00
|
|
|
|
|
|
|
|
if (isArchivedEnabled) {
|
|
|
|
|
command.description("Restores an object from the trash or archive.");
|
|
|
|
|
} else {
|
|
|
|
|
command.description("Restores an object from the trash.");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return command;
|
2021-06-21 20:26:28 -04:00
|
|
|
}
|
2021-02-03 11:44:33 -06:00
|
|
|
|
2024-01-31 17:17:04 -05:00
|
|
|
private shareCommand(commandName: string, deprecated: boolean): Command {
|
|
|
|
|
return new Command(commandName)
|
|
|
|
|
.argument("<id>", "Object's globally unique `id`.")
|
|
|
|
|
.argument("<organizationId>", "Organization's globally unique `id`.")
|
|
|
|
|
.argument(
|
|
|
|
|
"[encodedJson]",
|
|
|
|
|
"Encoded json of an array of collection ids. Can also be piped into stdin.",
|
|
|
|
|
)
|
|
|
|
|
.description((deprecated ? "--DEPRECATED-- " : "") + "Move an item to an organization.")
|
2021-02-03 11:44:33 -06:00
|
|
|
.on("--help", () => {
|
2021-06-21 20:26:28 -04:00
|
|
|
writeLn("\n Examples:");
|
2021-02-03 11:44:33 -06:00
|
|
|
writeLn("");
|
2021-06-21 20:26:28 -04:00
|
|
|
writeLn(
|
|
|
|
|
" bw " +
|
|
|
|
|
commandName +
|
|
|
|
|
" 4af958ce-96a7-45d9-beed-1e70fabaa27a " +
|
|
|
|
|
"6d82949b-b44d-468a-adae-3f3bacb0ea32 WyI5NzQwNTNkMC0zYjMzLTRiOTgtODg2ZS1mZWNmNWM4ZGJhOTYiXQ==",
|
|
|
|
|
);
|
2021-02-03 11:44:33 -06:00
|
|
|
writeLn(
|
|
|
|
|
" echo '[\"974053d0-3b33-4b98-886e-fecf5c8dba96\"]' | bw encode | " +
|
2021-06-21 20:26:28 -04:00
|
|
|
"bw " +
|
|
|
|
|
commandName +
|
|
|
|
|
" 4af958ce-96a7-45d9-beed-1e70fabaa27a 6d82949b-b44d-468a-adae-3f3bacb0ea32",
|
|
|
|
|
);
|
|
|
|
|
if (deprecated) {
|
|
|
|
|
writeLn("");
|
|
|
|
|
writeLn('--DEPRECATED See "bw move" for the current implementation--');
|
|
|
|
|
}
|
2021-02-03 11:44:33 -06:00
|
|
|
writeLn("", true);
|
|
|
|
|
})
|
|
|
|
|
.action(async (id, organizationId, encodedJson, cmd) => {
|
|
|
|
|
await this.exitIfLocked();
|
2024-08-20 12:00:48 -04:00
|
|
|
const command = new ShareCommand(
|
|
|
|
|
this.serviceContainer.cipherService,
|
|
|
|
|
this.serviceContainer.accountService,
|
|
|
|
|
);
|
2022-01-19 10:45:14 -05:00
|
|
|
const response = await command.run(id, organizationId, encodedJson);
|
2021-02-03 11:44:33 -06:00
|
|
|
this.processResponse(response);
|
|
|
|
|
});
|
2021-06-21 20:26:28 -04:00
|
|
|
}
|
2021-02-03 11:44:33 -06:00
|
|
|
|
2024-01-31 17:17:04 -05:00
|
|
|
private confirmCommand(): Command {
|
2021-06-21 20:26:28 -04:00
|
|
|
const confirmObjects = ["org-member"];
|
2024-01-31 17:17:04 -05:00
|
|
|
return new Command("confirm")
|
|
|
|
|
.argument("<object>", "Valid objects are: " + confirmObjects.join(", "))
|
|
|
|
|
.argument("<id>", "Object's globally unique `id`.")
|
|
|
|
|
.description("Confirm an object to the organization.")
|
2021-02-03 11:44:33 -06:00
|
|
|
.option("--organizationid <organizationid>", "Organization id for an organization object.")
|
|
|
|
|
.on("--help", () => {
|
2021-06-21 20:26:28 -04:00
|
|
|
writeLn("\n Examples:");
|
2021-02-03 11:44:33 -06:00
|
|
|
writeLn("");
|
|
|
|
|
writeLn(
|
|
|
|
|
" bw confirm org-member 7063feab-4b10-472e-b64c-785e2b870b92 " +
|
|
|
|
|
"--organizationid 310d5ffd-e9a2-4451-af87-ea054dce0f78",
|
|
|
|
|
);
|
|
|
|
|
writeLn("", true);
|
|
|
|
|
})
|
|
|
|
|
.action(async (object, id, cmd) => {
|
2021-06-21 20:26:28 -04:00
|
|
|
if (!this.validateObject(object, confirmObjects)) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
2021-02-03 11:44:33 -06:00
|
|
|
await this.exitIfLocked();
|
2022-12-19 10:56:16 -08:00
|
|
|
const command = new ConfirmCommand(
|
2024-05-16 00:09:24 +10:00
|
|
|
this.serviceContainer.apiService,
|
2024-10-24 19:41:30 +02:00
|
|
|
this.serviceContainer.keyService,
|
2024-10-01 08:47:41 -07:00
|
|
|
this.serviceContainer.encryptService,
|
2024-09-05 08:21:26 +10:00
|
|
|
this.serviceContainer.organizationUserApiService,
|
2025-08-12 12:06:55 -04:00
|
|
|
this.serviceContainer.accountService,
|
2025-08-08 13:53:27 +01:00
|
|
|
this.serviceContainer.configService,
|
|
|
|
|
this.serviceContainer.i18nService,
|
2022-12-19 10:56:16 -08:00
|
|
|
);
|
2021-02-03 11:44:33 -06:00
|
|
|
const response = await command.run(object, id, cmd);
|
|
|
|
|
this.processResponse(response);
|
|
|
|
|
});
|
2021-06-21 20:26:28 -04:00
|
|
|
}
|
2021-02-03 11:44:33 -06:00
|
|
|
|
2024-01-31 17:17:04 -05:00
|
|
|
private importCommand(): Command {
|
|
|
|
|
return new Command("import")
|
|
|
|
|
.argument("[format]", "The format of [input]")
|
|
|
|
|
.argument("[input]", "Filepath to data to import")
|
|
|
|
|
.description("Import vault data from a file.")
|
2021-02-03 11:44:33 -06:00
|
|
|
.option("--formats", "List formats")
|
2021-06-16 08:50:29 -05:00
|
|
|
.option("--organizationid <organizationid>", "ID of the organization to import to.")
|
2021-02-03 11:44:33 -06:00
|
|
|
.on("--help", () => {
|
|
|
|
|
writeLn("\n Examples:");
|
|
|
|
|
writeLn("");
|
|
|
|
|
writeLn(" bw import --formats");
|
|
|
|
|
writeLn(" bw import bitwardencsv ./from/source.csv");
|
|
|
|
|
writeLn(" bw import keepass2xml keepass_backup.xml");
|
2021-06-16 08:50:29 -05:00
|
|
|
writeLn(
|
|
|
|
|
" bw import --organizationid cf14adc3-aca5-4573-890a-f6fa231436d9 keepass2xml keepass_backup.xml",
|
|
|
|
|
);
|
2021-02-03 11:44:33 -06:00
|
|
|
})
|
|
|
|
|
.action(async (format, filepath, options) => {
|
|
|
|
|
await this.exitIfLocked();
|
2023-05-30 23:05:45 +02:00
|
|
|
const command = new ImportCommand(
|
2024-05-16 00:09:24 +10:00
|
|
|
this.serviceContainer.importService,
|
|
|
|
|
this.serviceContainer.organizationService,
|
|
|
|
|
this.serviceContainer.syncService,
|
2025-01-22 15:20:25 -05:00
|
|
|
this.serviceContainer.accountService,
|
2023-05-30 23:05:45 +02:00
|
|
|
);
|
2021-02-03 11:44:33 -06:00
|
|
|
const response = await command.run(format, filepath, options);
|
|
|
|
|
this.processResponse(response);
|
|
|
|
|
});
|
2021-06-21 20:26:28 -04:00
|
|
|
}
|
2021-02-03 11:44:33 -06:00
|
|
|
|
2024-01-31 17:17:04 -05:00
|
|
|
private exportCommand(): Command {
|
|
|
|
|
return new Command("export")
|
2025-04-17 14:58:16 +02:00
|
|
|
.description("Export vault data to a CSV, JSON or ZIP file.")
|
2021-02-03 11:44:33 -06:00
|
|
|
.option("--output <output>", "Output directory or filename.")
|
|
|
|
|
.option("--format <format>", "Export file format.")
|
2022-02-23 15:47:32 -06:00
|
|
|
.option(
|
|
|
|
|
"--password [password]",
|
|
|
|
|
"Use password to encrypt instead of your Bitwarden account encryption key. Only applies to the encrypted_json format.",
|
|
|
|
|
)
|
2021-02-03 11:44:33 -06:00
|
|
|
.option("--organizationid <organizationid>", "Organization id for an organization.")
|
|
|
|
|
.on("--help", () => {
|
|
|
|
|
writeLn("\n Notes:");
|
|
|
|
|
writeLn("");
|
2022-02-23 15:47:32 -06:00
|
|
|
writeLn(
|
2025-04-17 14:58:16 +02:00
|
|
|
" Valid formats are `csv`, `json`, `encrypted_json` and zip. Default format is `csv`.",
|
2022-02-23 15:47:32 -06:00
|
|
|
);
|
2021-02-03 11:44:33 -06:00
|
|
|
writeLn("");
|
|
|
|
|
writeLn(
|
|
|
|
|
" If --raw option is specified and no output filename or directory is given, the",
|
|
|
|
|
);
|
|
|
|
|
writeLn(" result is written to stdout.");
|
|
|
|
|
writeLn("");
|
|
|
|
|
writeLn(" Examples:");
|
|
|
|
|
writeLn("");
|
|
|
|
|
writeLn(" bw export");
|
|
|
|
|
writeLn(" bw --raw export");
|
|
|
|
|
writeLn(" bw export myPassword321");
|
|
|
|
|
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);
|
|
|
|
|
})
|
2022-02-23 15:47:32 -06:00
|
|
|
.action(async (options) => {
|
2021-02-03 11:44:33 -06:00
|
|
|
await this.exitIfLocked();
|
2023-11-09 15:17:25 -05:00
|
|
|
const command = new ExportCommand(
|
2024-05-16 00:09:24 +10:00
|
|
|
this.serviceContainer.exportService,
|
|
|
|
|
this.serviceContainer.policyService,
|
|
|
|
|
this.serviceContainer.eventCollectionService,
|
2025-03-25 11:30:47 -04:00
|
|
|
this.serviceContainer.accountService,
|
2023-11-09 15:17:25 -05:00
|
|
|
);
|
2022-02-23 15:47:32 -06:00
|
|
|
const response = await command.run(options);
|
2021-02-03 11:44:33 -06:00
|
|
|
this.processResponse(response);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|