UNPKG

@salesforce/plugin-org

Version:

Commands to interact with Salesforce orgs

55 lines 2.44 kB
/* * Copyright 2026, Salesforce, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import { Flags } from '@salesforce/sf-plugins-core'; import { Messages } from '@salesforce/core'; import { OrgOpenCommandBase } from '../../../shared/orgOpenCommandBase.js'; Messages.importMessagesDirectoryFromMetaUrl(import.meta.url); const messages = Messages.loadMessages('@salesforce/plugin-org', 'open.authoring-bundle'); export class OrgOpenAuthoringBundle extends OrgOpenCommandBase { static summary = messages.getMessage('summary'); static description = messages.getMessage('description'); static examples = messages.getMessages('examples'); static state = 'deprecated'; static deprecationOptions = { to: 'org open agent --authoring-bundle' }; static flags = { ...OrgOpenCommandBase.flags, 'target-org': Flags.requiredOrg(), 'api-version': Flags.orgApiVersion(), private: Flags.boolean({ summary: messages.getMessage('flags.private.summary'), exclusive: ['url-only', 'browser'], }), browser: Flags.option({ char: 'b', summary: messages.getMessage('flags.browser.summary'), options: ['chrome', 'edge', 'firefox'], // These are ones supported by "open" package exclusive: ['url-only', 'private'], })(), 'url-only': Flags.boolean({ char: 'r', summary: messages.getMessage('flags.url-only.summary'), aliases: ['urlonly'], deprecateAliases: true, }), }; async run() { const { flags } = await this.parse(OrgOpenAuthoringBundle); this.org = flags['target-org']; this.connection = this.org.getConnection(flags['api-version']); return this.openOrgUI(flags, await this.org.getFrontDoorUrl('lightning/n/standard-AgentforceStudio')); } } //# sourceMappingURL=authoring-bundle.js.map