@salesforce/plugin-packaging 2.19.9 → 2.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -29
- package/lib/commands/package/bundle/create.d.ts +20 -0
- package/lib/commands/package/bundle/create.js +56 -0
- package/lib/commands/package/bundle/create.js.map +1 -0
- package/lib/commands/package/bundle/delete.d.ts +19 -0
- package/lib/commands/package/bundle/delete.js +65 -0
- package/lib/commands/package/bundle/delete.js.map +1 -0
- package/lib/commands/package/bundle/install/list.d.ts +20 -0
- package/lib/commands/package/bundle/install/list.js +81 -0
- package/lib/commands/package/bundle/install/list.js.map +1 -0
- package/lib/commands/package/bundle/install/report.d.ts +19 -0
- package/lib/commands/package/bundle/install/report.js +93 -0
- package/lib/commands/package/bundle/install/report.js.map +1 -0
- package/lib/commands/package/bundle/install.d.ts +21 -0
- package/lib/commands/package/bundle/install.js +109 -0
- package/lib/commands/package/bundle/install.js.map +1 -0
- package/lib/commands/package/bundle/list.d.ts +18 -0
- package/lib/commands/package/bundle/list.js +64 -0
- package/lib/commands/package/bundle/list.js.map +1 -0
- package/lib/commands/package/bundle/version/create/list.d.ts +22 -0
- package/lib/commands/package/bundle/version/create/list.js +130 -0
- package/lib/commands/package/bundle/version/create/list.js.map +1 -0
- package/lib/commands/package/bundle/version/create/report.d.ts +18 -0
- package/lib/commands/package/bundle/version/create/report.js +82 -0
- package/lib/commands/package/bundle/version/create/report.js.map +1 -0
- package/lib/commands/package/bundle/version/create.d.ts +23 -0
- package/lib/commands/package/bundle/version/create.js +125 -0
- package/lib/commands/package/bundle/version/create.js.map +1 -0
- package/lib/commands/package/bundle/version/list.d.ts +18 -0
- package/lib/commands/package/bundle/version/list.js +75 -0
- package/lib/commands/package/bundle/version/list.js.map +1 -0
- package/lib/commands/package/bundle/version/report.d.ts +22 -0
- package/lib/commands/package/bundle/version/report.js +165 -0
- package/lib/commands/package/bundle/version/report.js.map +1 -0
- package/messages/bundle_create.md +42 -0
- package/messages/bundle_install.md +58 -0
- package/messages/bundle_install_list.md +69 -0
- package/messages/bundle_install_report.md +53 -0
- package/messages/bundle_list.md +45 -0
- package/messages/bundle_version_create.md +74 -0
- package/messages/bundle_version_create_list.md +73 -0
- package/messages/bundle_version_create_report.md +49 -0
- package/messages/bundle_version_list.md +45 -0
- package/messages/bundle_version_report.md +17 -0
- package/messages/package_bundle_delete.md +45 -0
- package/messages/package_delete.md +5 -5
- package/oclif.manifest.json +2927 -1376
- package/package.json +7 -6
- package/schemas/package-bundle-delete.json +72 -0
- package/schemas/package-bundle-install-list.json +58 -0
- package/schemas/package-bundle-install-report.json +58 -0
- package/schemas/package-bundle-install.json +52 -0
- package/schemas/package-bundle-list.json +58 -0
- package/schemas/package-bundle-version-create-list.json +73 -0
- package/schemas/package-bundle-version-create-report.json +73 -0
- package/schemas/package-bundle-version-create.json +67 -0
- package/schemas/package-bundle-version-list.json +113 -0
- package/schemas/package-bundle-version-report.json +446 -0
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2025, Salesforce, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { Flags, loglevel, orgApiVersionFlagWithDeprecations, SfCommand } from '@salesforce/sf-plugins-core';
|
|
17
|
+
import { PackageVersionEvents, BundleSObjects, PackageBundleVersion, } from '@salesforce/packaging';
|
|
18
|
+
import { Messages, Lifecycle } from '@salesforce/core';
|
|
19
|
+
import { camelCaseToTitleCase, Duration } from '@salesforce/kit';
|
|
20
|
+
import { requiredHubFlag } from '../../../../utils/hubFlag.js';
|
|
21
|
+
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
|
|
22
|
+
// TODO: Update messages
|
|
23
|
+
const messages = Messages.loadMessages('@salesforce/plugin-packaging', 'bundle_version_create');
|
|
24
|
+
export class PackageBundlesCreate extends SfCommand {
|
|
25
|
+
static hidden = true;
|
|
26
|
+
static state = 'beta';
|
|
27
|
+
static summary = messages.getMessage('summary');
|
|
28
|
+
static description = messages.getMessage('description');
|
|
29
|
+
static examples = messages.getMessages('examples');
|
|
30
|
+
static requiresProject = true;
|
|
31
|
+
static flags = {
|
|
32
|
+
loglevel,
|
|
33
|
+
bundle: Flags.string({
|
|
34
|
+
char: 'b',
|
|
35
|
+
summary: messages.getMessage('flags.bundle.summary'),
|
|
36
|
+
required: true,
|
|
37
|
+
}),
|
|
38
|
+
description: Flags.string({
|
|
39
|
+
char: 'd',
|
|
40
|
+
summary: messages.getMessage('flags.description.summary'),
|
|
41
|
+
}),
|
|
42
|
+
'definition-file': Flags.string({
|
|
43
|
+
char: 'p',
|
|
44
|
+
summary: messages.getMessage('flags.definition-file.summary'),
|
|
45
|
+
required: true,
|
|
46
|
+
}),
|
|
47
|
+
'target-dev-hub': requiredHubFlag,
|
|
48
|
+
'api-version': orgApiVersionFlagWithDeprecations,
|
|
49
|
+
wait: Flags.integer({
|
|
50
|
+
char: 'w',
|
|
51
|
+
summary: messages.getMessage('flags.wait.summary'),
|
|
52
|
+
default: 0,
|
|
53
|
+
}),
|
|
54
|
+
verbose: Flags.boolean({
|
|
55
|
+
summary: messages.getMessage('flags.verbose.summary'),
|
|
56
|
+
}),
|
|
57
|
+
'version-number': Flags.string({
|
|
58
|
+
char: 'n',
|
|
59
|
+
summary: messages.getMessage('flags.version-number.summary'),
|
|
60
|
+
}),
|
|
61
|
+
};
|
|
62
|
+
async run() {
|
|
63
|
+
const { flags } = await this.parse(PackageBundlesCreate);
|
|
64
|
+
// Parse version number if provided
|
|
65
|
+
let majorVersion = '';
|
|
66
|
+
let minorVersion = '';
|
|
67
|
+
if (flags['version-number']) {
|
|
68
|
+
const versionParts = flags['version-number'].split('.');
|
|
69
|
+
majorVersion = versionParts[0] || '';
|
|
70
|
+
minorVersion = versionParts[1] || '';
|
|
71
|
+
}
|
|
72
|
+
const options = {
|
|
73
|
+
connection: flags['target-dev-hub'].getConnection(flags['api-version']),
|
|
74
|
+
project: this.project,
|
|
75
|
+
PackageBundle: flags.bundle,
|
|
76
|
+
BundleVersionComponentsPath: flags['definition-file'],
|
|
77
|
+
Description: flags.description,
|
|
78
|
+
MajorVersion: majorVersion,
|
|
79
|
+
MinorVersion: minorVersion,
|
|
80
|
+
Ancestor: '',
|
|
81
|
+
};
|
|
82
|
+
Lifecycle.getInstance().on(PackageVersionEvents.create.progress,
|
|
83
|
+
// no async methods
|
|
84
|
+
// eslint-disable-next-line @typescript-eslint/require-await
|
|
85
|
+
async (data) => {
|
|
86
|
+
if (data.RequestStatus !== BundleSObjects.PkgBundleVersionCreateReqStatus.success &&
|
|
87
|
+
data.RequestStatus !== BundleSObjects.PkgBundleVersionCreateReqStatus.error) {
|
|
88
|
+
const status = messages.getMessage('bundleVersionCreateWaitingStatus', [
|
|
89
|
+
data.remainingWaitTime.minutes,
|
|
90
|
+
data.RequestStatus,
|
|
91
|
+
]);
|
|
92
|
+
if (flags.verbose) {
|
|
93
|
+
this.log(status);
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
this.spinner.status = status;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
const result = await PackageBundleVersion.create({
|
|
101
|
+
...options,
|
|
102
|
+
...(flags.wait && flags.wait > 0
|
|
103
|
+
? { polling: { timeout: Duration.minutes(flags.wait), frequency: Duration.seconds(5) } }
|
|
104
|
+
: undefined),
|
|
105
|
+
});
|
|
106
|
+
const finalStatusMsg = messages.getMessage('bundleVersionCreateFinalStatus', [result.RequestStatus]);
|
|
107
|
+
if (flags.verbose) {
|
|
108
|
+
this.log(finalStatusMsg);
|
|
109
|
+
}
|
|
110
|
+
else {
|
|
111
|
+
this.spinner.stop(finalStatusMsg);
|
|
112
|
+
}
|
|
113
|
+
switch (result.RequestStatus) {
|
|
114
|
+
case BundleSObjects.PkgBundleVersionCreateReqStatus.error:
|
|
115
|
+
throw messages.createError('multipleErrors', [result.Error?.join('\n') ?? 'Unknown error']);
|
|
116
|
+
case BundleSObjects.PkgBundleVersionCreateReqStatus.success:
|
|
117
|
+
this.log(messages.getMessage('bundleVersionCreateSuccess', [result.Id]));
|
|
118
|
+
break;
|
|
119
|
+
default:
|
|
120
|
+
this.log(messages.getMessage('InProgress', [camelCaseToTitleCase(result.RequestStatus), result.Id]));
|
|
121
|
+
}
|
|
122
|
+
return result;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
//# sourceMappingURL=create.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../../src/commands/package/bundle/version/create.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,iCAAiC,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAC5G,OAAO,EAEL,oBAAoB,EACpB,cAAc,EACd,oBAAoB,GACrB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE/D,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,wBAAwB;AACxB,MAAM,QAAQ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AAW,CAAC,gBAAgB,EAAE,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,eAAe,CAAC,CAAC,CAAC;YAC9F,KAAK,cAAc,CAAC,+BAA+B,CAAC,OAAO;gBACzD,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC,4BAA4B,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;gBACzE,MAAM;YACR;gBACE,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC,YAAY,EAAE,CAAC,oBAAoB,CAAC,MAAM,CAAC,aAAuB,CAAC,EAAE,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QACnH,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
2
|
+
import { BundleSObjects } from '@salesforce/packaging';
|
|
3
|
+
export type PackageBundleVersionResults = BundleSObjects.BundleVersion[];
|
|
4
|
+
export declare class PackageBundleVersionListCommand extends SfCommand<PackageBundleVersionResults> {
|
|
5
|
+
static readonly hidden = true;
|
|
6
|
+
static state: string;
|
|
7
|
+
static readonly summary: string;
|
|
8
|
+
static readonly description: string;
|
|
9
|
+
static readonly examples: string[];
|
|
10
|
+
static readonly flags: {
|
|
11
|
+
loglevel: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
|
+
'target-dev-hub': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
|
+
'api-version': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
14
|
+
verbose: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
15
|
+
};
|
|
16
|
+
private connection;
|
|
17
|
+
run(): Promise<PackageBundleVersionResults>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2025, Salesforce, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { Flags, loglevel, orgApiVersionFlagWithDeprecations, SfCommand } from '@salesforce/sf-plugins-core';
|
|
17
|
+
import { Messages } from '@salesforce/core';
|
|
18
|
+
import { PackageBundleVersion } from '@salesforce/packaging';
|
|
19
|
+
import chalk from 'chalk';
|
|
20
|
+
import { requiredHubFlag } from '../../../../utils/hubFlag.js';
|
|
21
|
+
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
|
|
22
|
+
const messages = Messages.loadMessages('@salesforce/plugin-packaging', 'bundle_version_list');
|
|
23
|
+
export class PackageBundleVersionListCommand extends SfCommand {
|
|
24
|
+
static hidden = true;
|
|
25
|
+
static state = 'beta';
|
|
26
|
+
static summary = messages.getMessage('summary');
|
|
27
|
+
static description = messages.getMessage('description');
|
|
28
|
+
static examples = messages.getMessages('examples');
|
|
29
|
+
static flags = {
|
|
30
|
+
loglevel,
|
|
31
|
+
'target-dev-hub': requiredHubFlag,
|
|
32
|
+
'api-version': orgApiVersionFlagWithDeprecations,
|
|
33
|
+
verbose: Flags.boolean({
|
|
34
|
+
summary: messages.getMessage('flags.verbose.summary'),
|
|
35
|
+
}),
|
|
36
|
+
};
|
|
37
|
+
connection;
|
|
38
|
+
async run() {
|
|
39
|
+
const { flags } = await this.parse(PackageBundleVersionListCommand);
|
|
40
|
+
this.connection = flags['target-dev-hub'].getConnection(flags['api-version']);
|
|
41
|
+
const results = await PackageBundleVersion.list(this.connection);
|
|
42
|
+
if (results.length === 0) {
|
|
43
|
+
this.warn('No results found');
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
const data = results.map((r) => ({
|
|
47
|
+
'Bundle Name': r.PackageBundle.BundleName,
|
|
48
|
+
'Bundle Id': r.PackageBundle.Id,
|
|
49
|
+
'Bundle Version Number': String(r.MajorVersion) + '.' + String(r.MinorVersion),
|
|
50
|
+
'Bundle Version Id': r.Id,
|
|
51
|
+
'Bundle Version Name': r.VersionName,
|
|
52
|
+
'Bundle Version Description': r.PackageBundle.Description,
|
|
53
|
+
...(flags.verbose
|
|
54
|
+
? {
|
|
55
|
+
'Ancestor Id': r.Ancestor?.Id,
|
|
56
|
+
'Ancestor Name': r.Ancestor?.PackageBundle.BundleName,
|
|
57
|
+
'Ancestor Version Name': r.Ancestor?.VersionName,
|
|
58
|
+
'Ancestor Version': String(r.Ancestor?.MajorVersion) + '.' + String(r.Ancestor?.MinorVersion),
|
|
59
|
+
'Created Date': r.CreatedDate,
|
|
60
|
+
'Created By': r.CreatedById,
|
|
61
|
+
'Last Modified Date': r.LastModifiedDate,
|
|
62
|
+
'Last Modified By': r.LastModifiedById,
|
|
63
|
+
}
|
|
64
|
+
: {}),
|
|
65
|
+
}));
|
|
66
|
+
this.table({
|
|
67
|
+
data,
|
|
68
|
+
overflow: 'wrap',
|
|
69
|
+
title: chalk.blue(`Package Bundle Version List [${results.length}]`),
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
return results;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../../../src/commands/package/bundle/version/list.ts"],"names":[],"mappings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oBACH,CAAC,CAAC,EAAE,CAAC;aACR,CAAC,CAAC,CAAC;YAEJ,IAAI,CAAC,KAAK,CAAC;gBACT,IAAI;gBACJ,QAAQ,EAAE,MAAM;gBAChB,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,gCAAgC,OAAO,CAAC,MAAM,GAAG,CAAC;aACrE,CAAC,CAAC;QACL,CAAC;QAED,OAAO,OAAO,CAAC;IACjB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
2
|
+
import { BundleSObjects, PackagingSObjects } from '@salesforce/packaging';
|
|
3
|
+
export type BundleVersionReportResult = BundleSObjects.BundleVersion & {
|
|
4
|
+
componentPackages: PackagingSObjects.SubscriberPackageVersion[];
|
|
5
|
+
};
|
|
6
|
+
export declare class PackageBundleVersionReportCommand extends SfCommand<BundleVersionReportResult> {
|
|
7
|
+
static readonly hidden = true;
|
|
8
|
+
static state: string;
|
|
9
|
+
static readonly summary: string;
|
|
10
|
+
static readonly examples: string[];
|
|
11
|
+
static readonly flags: {
|
|
12
|
+
loglevel: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
|
+
'target-dev-hub': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/interfaces").CustomOptions>;
|
|
14
|
+
'api-version': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
15
|
+
'bundle-version': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
16
|
+
verbose: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
17
|
+
};
|
|
18
|
+
run(): Promise<BundleVersionReportResult>;
|
|
19
|
+
private display;
|
|
20
|
+
private filterVerboseRecords;
|
|
21
|
+
private displayComponentPackages;
|
|
22
|
+
}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2025, Salesforce, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { Flags, loglevel, orgApiVersionFlagWithDeprecations, SfCommand } from '@salesforce/sf-plugins-core';
|
|
17
|
+
import { Messages } from '@salesforce/core/messages';
|
|
18
|
+
import { PackageBundleVersion } from '@salesforce/packaging';
|
|
19
|
+
import chalk from 'chalk';
|
|
20
|
+
import { requiredHubFlag } from '../../../../utils/hubFlag.js';
|
|
21
|
+
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
|
|
22
|
+
const messages = Messages.loadMessages('@salesforce/plugin-packaging', 'bundle_version_report');
|
|
23
|
+
export class PackageBundleVersionReportCommand extends SfCommand {
|
|
24
|
+
static hidden = true;
|
|
25
|
+
static state = 'beta';
|
|
26
|
+
static summary = messages.getMessage('summary');
|
|
27
|
+
static examples = messages.getMessages('examples');
|
|
28
|
+
static flags = {
|
|
29
|
+
loglevel,
|
|
30
|
+
'target-dev-hub': requiredHubFlag,
|
|
31
|
+
'api-version': orgApiVersionFlagWithDeprecations,
|
|
32
|
+
'bundle-version': Flags.string({
|
|
33
|
+
char: 'b',
|
|
34
|
+
summary: messages.getMessage('flags.bundle-version.summary'),
|
|
35
|
+
required: true,
|
|
36
|
+
}),
|
|
37
|
+
verbose: Flags.boolean({
|
|
38
|
+
summary: messages.getMessage('flags.verbose.summary'),
|
|
39
|
+
}),
|
|
40
|
+
};
|
|
41
|
+
async run() {
|
|
42
|
+
const { flags } = await this.parse(PackageBundleVersionReportCommand);
|
|
43
|
+
const connection = flags['target-dev-hub'].getConnection(flags['api-version']);
|
|
44
|
+
const results = await PackageBundleVersion.report(connection, flags['bundle-version']);
|
|
45
|
+
if (!results) {
|
|
46
|
+
throw new Error(`No bundle version found with ID: ${flags['bundle-version']}`);
|
|
47
|
+
}
|
|
48
|
+
this.display(results, flags.verbose);
|
|
49
|
+
const componentPackages = await PackageBundleVersion.getComponentPackages(connection, flags['bundle-version']);
|
|
50
|
+
this.displayComponentPackages(componentPackages);
|
|
51
|
+
return { ...results, componentPackages };
|
|
52
|
+
}
|
|
53
|
+
display(record, verbose) {
|
|
54
|
+
if (this.jsonEnabled()) {
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
// transform the results into a table
|
|
58
|
+
const displayRecords = [
|
|
59
|
+
{
|
|
60
|
+
key: 'Bundle Name',
|
|
61
|
+
value: record.PackageBundle.BundleName,
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
key: 'Bundle ID',
|
|
65
|
+
value: record.PackageBundle.Id,
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
key: 'Version ID',
|
|
69
|
+
value: record.Id,
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
key: 'Version Name',
|
|
73
|
+
value: record.VersionName,
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
key: 'Major Version',
|
|
77
|
+
value: record.MajorVersion,
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
key: 'Minor Version',
|
|
81
|
+
value: record.MinorVersion,
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
key: 'Description',
|
|
85
|
+
value: record.PackageBundle.Description ?? 'N/A',
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
key: 'Released',
|
|
89
|
+
value: record.IsReleased ? 'Yes' : 'No',
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
key: 'Created Date',
|
|
93
|
+
value: record.CreatedDate,
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
key: 'Created By',
|
|
97
|
+
value: record.CreatedById,
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
key: 'Last Modified Date',
|
|
101
|
+
value: record.LastModifiedDate,
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
key: 'Last Modified By',
|
|
105
|
+
value: record.LastModifiedById,
|
|
106
|
+
},
|
|
107
|
+
];
|
|
108
|
+
// Add ancestor information if available
|
|
109
|
+
if (record.Ancestor) {
|
|
110
|
+
displayRecords.push({
|
|
111
|
+
key: 'Ancestor ID',
|
|
112
|
+
value: record.Ancestor.Id,
|
|
113
|
+
}, {
|
|
114
|
+
key: 'Ancestor Version',
|
|
115
|
+
value: `${record.Ancestor.MajorVersion}.${record.Ancestor.MinorVersion}`,
|
|
116
|
+
}, {
|
|
117
|
+
key: 'Ancestor Bundle Name',
|
|
118
|
+
value: record.Ancestor.PackageBundle.BundleName,
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
else {
|
|
122
|
+
displayRecords.push({
|
|
123
|
+
key: 'Ancestor',
|
|
124
|
+
value: 'N/A',
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
// Add verbose information if requested
|
|
128
|
+
if (verbose) {
|
|
129
|
+
displayRecords.push({
|
|
130
|
+
key: 'Bundle Deleted',
|
|
131
|
+
value: record.PackageBundle.IsDeleted ? 'Yes' : 'No',
|
|
132
|
+
}, {
|
|
133
|
+
key: 'Bundle System Modstamp',
|
|
134
|
+
value: record.PackageBundle.SystemModstamp,
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
this.filterVerboseRecords(record, displayRecords, verbose);
|
|
138
|
+
this.table({ data: displayRecords, title: chalk.blue('Package Bundle Version') });
|
|
139
|
+
}
|
|
140
|
+
// eslint-disable-next-line class-methods-use-this
|
|
141
|
+
filterVerboseRecords(bundleRecord, displayRecords, verbose) {
|
|
142
|
+
if (!verbose) {
|
|
143
|
+
// Remove verbose fields for non-verbose output
|
|
144
|
+
const verboseKeys = ['Bundle Deleted', 'Bundle System Modstamp'];
|
|
145
|
+
displayRecords.splice(0, displayRecords.length, ...displayRecords.filter((displayRecord) => !verboseKeys.includes(displayRecord.key)));
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
displayComponentPackages(componentPackages) {
|
|
149
|
+
if (this.jsonEnabled()) {
|
|
150
|
+
return;
|
|
151
|
+
}
|
|
152
|
+
if (componentPackages.length === 0) {
|
|
153
|
+
this.log(chalk.yellow('No component packages found for this bundle version.'));
|
|
154
|
+
return;
|
|
155
|
+
}
|
|
156
|
+
const displayRecords = componentPackages.map((component) => ({
|
|
157
|
+
'Package Name': component.Name,
|
|
158
|
+
'Package Version Number': `${component.MajorVersion}.${component.MinorVersion}.${component.PatchVersion}.${component.BuildNumber}`,
|
|
159
|
+
'Package Version Id': component.Id,
|
|
160
|
+
'Package Id': component.SubscriberPackageId,
|
|
161
|
+
}));
|
|
162
|
+
this.table({ data: displayRecords, title: chalk.blue('Component Packages') });
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
//# sourceMappingURL=report.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"report.js","sourceRoot":"","sources":["../../../../../src/commands/package/bundle/version/report.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,iCAAiC,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAC5G,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAqC,MAAM,uBAAuB,CAAC;AAChG,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE/D,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAA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 -0,0 +1,42 @@
|
|
|
1
|
+
# summary
|
|
2
|
+
|
|
3
|
+
Create a package bundle in the Dev Hub org.
|
|
4
|
+
|
|
5
|
+
# description
|
|
6
|
+
|
|
7
|
+
A package bundle is an artifact that contains one or more 2GP managed packages.
|
|
8
|
+
A bundle can be listed on AppExchange, installed, or upgraded as a single artifact.
|
|
9
|
+
|
|
10
|
+
# examples
|
|
11
|
+
|
|
12
|
+
Create a package bundle in the Dev Hub org; uses the Dev Hub org with the username devhub@example.com:
|
|
13
|
+
|
|
14
|
+
sf package bundle create --name "Your bundle name" --description "Your bundle description" --target-dev-hub devhub@example.com
|
|
15
|
+
|
|
16
|
+
# flags.name.summary
|
|
17
|
+
|
|
18
|
+
Name of the package bundle.
|
|
19
|
+
|
|
20
|
+
# flags.description.summary
|
|
21
|
+
|
|
22
|
+
Description of the package bundle.
|
|
23
|
+
|
|
24
|
+
# flags.wait.summary
|
|
25
|
+
|
|
26
|
+
Number of minutes to wait for the bundle creation to complete.
|
|
27
|
+
|
|
28
|
+
# flags.verbose.summary
|
|
29
|
+
|
|
30
|
+
Display extended bundle creation detail.
|
|
31
|
+
|
|
32
|
+
# requestInProgress
|
|
33
|
+
|
|
34
|
+
Creating bundle.
|
|
35
|
+
|
|
36
|
+
# bundleCreateWaitingStatus
|
|
37
|
+
|
|
38
|
+
%d minutes remaining until timeout. Create bundle status: %s
|
|
39
|
+
|
|
40
|
+
# bundleCreateFinalStatus
|
|
41
|
+
|
|
42
|
+
Create bundle status: %s
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# summary
|
|
2
|
+
|
|
3
|
+
Install a package bundle version in the target org.
|
|
4
|
+
|
|
5
|
+
# description
|
|
6
|
+
|
|
7
|
+
Install a specific version of a package bundle in the target org. During developer preview, bundles can be installed only in scratch orgs.
|
|
8
|
+
|
|
9
|
+
# examples
|
|
10
|
+
|
|
11
|
+
Install a package bundle version in a scratch org:
|
|
12
|
+
|
|
13
|
+
sf package bundle install --bundle MyPkgBundle1@0.1 --target-org my-scratch-org --wait 10
|
|
14
|
+
|
|
15
|
+
# flags.bundle.summary
|
|
16
|
+
|
|
17
|
+
Package bundle version to install (format: BundleName@Version).
|
|
18
|
+
|
|
19
|
+
# flags.target-org.summary
|
|
20
|
+
|
|
21
|
+
Target org for the bundle installation.
|
|
22
|
+
|
|
23
|
+
# flags.target-dev-hub.summary
|
|
24
|
+
|
|
25
|
+
Username, alias, or org ID of the target dev hub org.
|
|
26
|
+
|
|
27
|
+
# flags.wait.summary
|
|
28
|
+
|
|
29
|
+
Number of minutes to wait for the installation to complete.
|
|
30
|
+
|
|
31
|
+
# flags.verbose.summary
|
|
32
|
+
|
|
33
|
+
Display extended installation detail.
|
|
34
|
+
|
|
35
|
+
# requestInProgress
|
|
36
|
+
|
|
37
|
+
Installing bundle.
|
|
38
|
+
|
|
39
|
+
# bundleInstallWaitingStatus
|
|
40
|
+
|
|
41
|
+
%d minutes remaining until timeout. Install status: %s
|
|
42
|
+
|
|
43
|
+
# bundleInstallFinalStatus
|
|
44
|
+
|
|
45
|
+
Install status: %s
|
|
46
|
+
|
|
47
|
+
# bundleInstallSuccess
|
|
48
|
+
|
|
49
|
+
Successfully installed bundle [%s]
|
|
50
|
+
|
|
51
|
+
# bundleInstallError
|
|
52
|
+
|
|
53
|
+
Encountered errors installing the bundle! %s
|
|
54
|
+
|
|
55
|
+
# bundleInstallInProgress
|
|
56
|
+
|
|
57
|
+
Bundle installation is currently %s. You can continue to query the status using
|
|
58
|
+
sf package bundle install:report -i %s -o %s
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# summary
|
|
2
|
+
|
|
3
|
+
List package bundle installation requests.
|
|
4
|
+
|
|
5
|
+
# description
|
|
6
|
+
|
|
7
|
+
Shows the details of each request to install a package bundle version in the target org.
|
|
8
|
+
|
|
9
|
+
All filter parameters are applied using the AND logical operator (not OR).
|
|
10
|
+
|
|
11
|
+
To get information about a specific request, run "<%= config.bin %> package bundle install report" and supply the request ID.
|
|
12
|
+
|
|
13
|
+
# flags.status.summary
|
|
14
|
+
|
|
15
|
+
Status of the installation request, used to filter the list.
|
|
16
|
+
|
|
17
|
+
# flags.verbose.summary
|
|
18
|
+
|
|
19
|
+
Displays additional information at a slight performance cost, such as validation text for each package bundle install request.
|
|
20
|
+
|
|
21
|
+
# flags.created-last-days.summary
|
|
22
|
+
|
|
23
|
+
Number of days since the request was created, starting at 00:00:00 of first day to now. Use 0 for today.
|
|
24
|
+
|
|
25
|
+
# examples
|
|
26
|
+
|
|
27
|
+
- List all package bundle installation requests in your default Dev Hub org:
|
|
28
|
+
|
|
29
|
+
<%= config.bin %> <%= command.id %>
|
|
30
|
+
|
|
31
|
+
- List package bundle installation requests from the last 3 days in the Dev Hub org with username devhub@example.com:
|
|
32
|
+
|
|
33
|
+
<%= config.bin %> <%= command.id %> --created-last-days 3 --target-dev-hub
|
|
34
|
+
|
|
35
|
+
- List package bundle installation requests with status Error:
|
|
36
|
+
|
|
37
|
+
<%= config.bin %> <%= command.id %> --status Error
|
|
38
|
+
|
|
39
|
+
- List package bundle installation requests with status Queued:
|
|
40
|
+
|
|
41
|
+
<%= config.bin %> <%= command.id %> --status Queued
|
|
42
|
+
|
|
43
|
+
- List package bundle installation requests with status Success that were created today:
|
|
44
|
+
|
|
45
|
+
<%= config.bin %> <%= command.id %> --created-last-days 0 --status Success
|
|
46
|
+
|
|
47
|
+
# id
|
|
48
|
+
|
|
49
|
+
ID
|
|
50
|
+
|
|
51
|
+
# status
|
|
52
|
+
|
|
53
|
+
Status
|
|
54
|
+
|
|
55
|
+
# package-bundle-version-id
|
|
56
|
+
|
|
57
|
+
Package Bundle Version ID
|
|
58
|
+
|
|
59
|
+
# development-organization
|
|
60
|
+
|
|
61
|
+
Development Organization
|
|
62
|
+
|
|
63
|
+
# created-by
|
|
64
|
+
|
|
65
|
+
Created By
|
|
66
|
+
|
|
67
|
+
# validation-error
|
|
68
|
+
|
|
69
|
+
Validation Error
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# summary
|
|
2
|
+
|
|
3
|
+
Report on the status of a package bundle installation request.
|
|
4
|
+
|
|
5
|
+
# description
|
|
6
|
+
|
|
7
|
+
Use this command to check the status of a package bundle installation request. The command returns information about the request, including its current status and details about the package bundle version being installed.
|
|
8
|
+
|
|
9
|
+
# examples
|
|
10
|
+
|
|
11
|
+
- Report on a package bundle installation request:
|
|
12
|
+
|
|
13
|
+
<%= config.bin %> <%= command.id %> --package-install-request-id 0Ho0x0000000000000
|
|
14
|
+
|
|
15
|
+
- Report on a package bundle installation request using an alias:
|
|
16
|
+
|
|
17
|
+
<%= config.bin %> force:package:bundle:install:report -i 0Ho0x0000000000000
|
|
18
|
+
|
|
19
|
+
# flags.package-install-request-id.summary
|
|
20
|
+
|
|
21
|
+
The ID of the package bundle installation request to report on.
|
|
22
|
+
|
|
23
|
+
# id
|
|
24
|
+
|
|
25
|
+
ID
|
|
26
|
+
|
|
27
|
+
# status
|
|
28
|
+
|
|
29
|
+
Status
|
|
30
|
+
|
|
31
|
+
# package-bundle-version-id
|
|
32
|
+
|
|
33
|
+
Package Bundle Version ID
|
|
34
|
+
|
|
35
|
+
# development-organization
|
|
36
|
+
|
|
37
|
+
Development Organization
|
|
38
|
+
|
|
39
|
+
# validation-error
|
|
40
|
+
|
|
41
|
+
Validation Error
|
|
42
|
+
|
|
43
|
+
# created-date
|
|
44
|
+
|
|
45
|
+
Created Date
|
|
46
|
+
|
|
47
|
+
# created-by
|
|
48
|
+
|
|
49
|
+
Created By
|
|
50
|
+
|
|
51
|
+
# flags.verbose.summary
|
|
52
|
+
|
|
53
|
+
Show verbose output.
|