Skip to content

Commit cd07918

Browse files
Merge pull request #990 from salesforcecli/t/packaging-distribution/W-18854587/Package-Bundle-Version-Report-command
T/packaging distribution/w 18854587/package bundle version report command
2 parents 0535646 + efddd73 commit cd07918

15 files changed

Lines changed: 682 additions & 19 deletions

command-snapshot.json

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,23 +56,23 @@
5656
"plugin": "@salesforce/plugin-packaging"
5757
},
5858
{
59-
"alias": ["force:package:bundle:create"],
59+
"alias": [],
6060
"command": "package:bundle:create",
6161
"flagAliases": ["apiversion", "target-hub-org", "targetdevhubusername"],
6262
"flagChars": ["d", "n", "v"],
6363
"flags": ["api-version", "description", "flags-dir", "json", "loglevel", "name", "target-dev-hub"],
6464
"plugin": "@salesforce/plugin-packaging"
6565
},
6666
{
67-
"alias": ["force:package:bundle:list"],
67+
"alias": [],
6868
"command": "package:bundle:list",
6969
"flagAliases": ["apiversion", "target-hub-org", "targetdevhubusername"],
7070
"flagChars": ["v"],
7171
"flags": ["api-version", "flags-dir", "json", "loglevel", "target-dev-hub", "verbose"],
7272
"plugin": "@salesforce/plugin-packaging"
7373
},
7474
{
75-
"alias": ["force:package:bundle:version:create"],
75+
"alias": [],
7676
"command": "package:bundle:version:create",
7777
"flagAliases": ["apiversion", "target-hub-org", "targetdevhubusername"],
7878
"flagChars": ["b", "d", "p", "v", "w"],
@@ -91,7 +91,7 @@
9191
"plugin": "@salesforce/plugin-packaging"
9292
},
9393
{
94-
"alias": ["force:package:bundle:version:create:list"],
94+
"alias": [],
9595
"command": "package:bundle:version:create:list",
9696
"flagAliases": ["apiversion", "createdlastdays", "target-hub-org", "targetdevhubusername"],
9797
"flagChars": ["c", "s", "v"],
@@ -109,7 +109,7 @@
109109
"plugin": "@salesforce/plugin-packaging"
110110
},
111111
{
112-
"alias": ["force:package:bundle:version:create:report"],
112+
"alias": [],
113113
"command": "package:bundle:version:create:report",
114114
"flagAliases": ["apiversion", "packagecreaterequestid", "target-hub-org", "targetdevhubusername"],
115115
"flagChars": ["i", "v"],
@@ -124,6 +124,14 @@
124124
"flags": ["api-version", "flags-dir", "json", "loglevel", "target-dev-hub", "verbose"],
125125
"plugin": "@salesforce/plugin-packaging"
126126
},
127+
{
128+
"alias": [],
129+
"command": "package:bundle:version:report",
130+
"flagAliases": ["apiversion", "target-hub-org", "targetdevhubusername"],
131+
"flagChars": ["p", "v"],
132+
"flags": ["api-version", "bundle-version", "flags-dir", "json", "loglevel", "target-dev-hub", "verbose"],
133+
"plugin": "@salesforce/plugin-packaging"
134+
},
127135
{
128136
"alias": ["force:package:convert"],
129137
"command": "package:convert",

messages/bundle_version_list.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ List all package bundle versions in the Dev Hub org.
44

55
# examples
66

7-
List all package bundle versions in the specified Dev Hub org; uses the Dev Hub org with the username devhub@example.com:
7+
List package bundle versions in the Dev Hub org with the username devhub@example.com:
88

9-
sf package bundle version list --target-dev-hub <dev_hub_alias>
9+
sf package bundle version list --bundle “Your bundle name or ID” --target-dev-hub devhub@example.com
1010

1111
# namespace
1212

messages/bundle_version_report.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# summary
2+
3+
Retrieve details about a package bundle version in the Dev Hub org.
4+
5+
# examples
6+
7+
Retrieve details about the package bundle version; uses the Dev Hub org with the username devhub@example.com:
8+
9+
sf package bundle version report --bundle-version "Your bundle version name or ID" --target-dev-hub devhub@example.com
10+
11+
# flags.bundle-version.summary
12+
13+
ID of the package bundle version to retrieve details for.
14+
15+
# flags.verbose.summary
16+
17+
Display extended package bundle version details.
Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"$ref": "#/definitions/BundleSObjects.BundleVersion",
4+
"definitions": {
5+
"BundleSObjects.BundleVersion": {
6+
"type": "object",
7+
"properties": {
8+
"Id": {
9+
"type": "string"
10+
},
11+
"PackageBundle": {
12+
"$ref": "#/definitions/BundleSObjects.Bundle"
13+
},
14+
"VersionName": {
15+
"type": "string"
16+
},
17+
"MajorVersion": {
18+
"type": "string"
19+
},
20+
"MinorVersion": {
21+
"type": "string"
22+
},
23+
"Ancestor": {
24+
"anyOf": [
25+
{
26+
"$ref": "#/definitions/BundleSObjects.BundleVersion"
27+
},
28+
{
29+
"type": "null"
30+
}
31+
]
32+
},
33+
"IsReleased": {
34+
"type": "boolean"
35+
},
36+
"CreatedDate": {
37+
"type": "string"
38+
},
39+
"CreatedById": {
40+
"type": "string"
41+
},
42+
"LastModifiedDate": {
43+
"type": "string"
44+
},
45+
"LastModifiedById": {
46+
"type": "string"
47+
}
48+
},
49+
"required": [
50+
"Id",
51+
"PackageBundle",
52+
"VersionName",
53+
"MajorVersion",
54+
"MinorVersion",
55+
"IsReleased",
56+
"CreatedDate",
57+
"CreatedById",
58+
"LastModifiedDate",
59+
"LastModifiedById"
60+
],
61+
"additionalProperties": false
62+
},
63+
"BundleSObjects.Bundle": {
64+
"type": "object",
65+
"properties": {
66+
"BundleName": {
67+
"type": "string"
68+
},
69+
"Description": {
70+
"type": "string"
71+
},
72+
"Id": {
73+
"type": "string"
74+
},
75+
"IsDeleted": {
76+
"type": "boolean"
77+
},
78+
"CreatedDate": {
79+
"type": "string"
80+
},
81+
"CreatedById": {
82+
"type": "string"
83+
},
84+
"LastModifiedDate": {
85+
"type": "string"
86+
},
87+
"LastModifiedById": {
88+
"type": "string"
89+
},
90+
"SystemModstamp": {
91+
"type": "string"
92+
}
93+
},
94+
"required": [
95+
"BundleName",
96+
"Id",
97+
"IsDeleted",
98+
"CreatedDate",
99+
"CreatedById",
100+
"LastModifiedDate",
101+
"LastModifiedById",
102+
"SystemModstamp"
103+
],
104+
"additionalProperties": false
105+
}
106+
}
107+
}

src/commands/package/bundle/create.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ export class PackageBundlesCreate extends SfCommand<BundleCreate> {
1818
public static readonly summary = messages.getMessage('summary');
1919
public static readonly description = messages.getMessage('description');
2020
public static readonly examples = messages.getMessages('examples');
21-
public static readonly aliases = ['force:package:bundle:create'];
2221
public static readonly requiresProject = true;
2322
public static readonly flags = {
2423
loglevel,

src/commands/package/bundle/list.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ export type BundleListCommandResults = BundleListCommandResult[];
2222
export class BundleListCommand extends SfCommand<BundleListCommandResults> {
2323
public static readonly summary = messages.getMessage('summary');
2424
public static readonly examples = messages.getMessages('examples');
25-
public static readonly deprecateAliases = true;
26-
public static readonly aliases = ['force:package:bundle:list'];
2725
public static readonly flags = {
2826
loglevel,
2927
'target-dev-hub': requiredHubFlag,

src/commands/package/bundle/version/create.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ export class PackageBundlesCreate extends SfCommand<BundleSObjects.PackageBundle
2525
public static readonly summary = messages.getMessage('summary');
2626
public static readonly description = messages.getMessage('description');
2727
public static readonly examples = messages.getMessages('examples');
28-
public static readonly aliases = ['force:package:bundle:version:create'];
2928
public static readonly requiresProject = true;
3029
public static readonly flags = {
3130
loglevel,

src/commands/package/bundle/version/create/list.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ export class PackageBundleVersionCreateListCommand extends SfCommand<PackageBund
2626
public static readonly summary = messages.getMessage('summary');
2727
public static readonly description = messages.getMessage('description');
2828
public static readonly examples = messages.getMessages('examples');
29-
public static readonly deprecateAliases = true;
30-
public static readonly aliases = ['force:package:bundle:version:create:list'];
3129
public static readonly flags = {
3230
loglevel,
3331
'target-dev-hub': requiredHubFlag,

src/commands/package/bundle/version/create/report.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ export class PackageBundleVersionCreateReportCommand extends SfCommand<ReportCom
2121
public static readonly summary = messages.getMessage('summary');
2222
public static readonly description = messages.getMessage('description');
2323
public static readonly examples = messages.getMessages('examples');
24-
public static readonly deprecateAliases = true;
25-
public static readonly aliases = ['force:package:bundle:version:create:report'];
2624
public static readonly flags = {
2725
loglevel,
2826
'target-dev-hub': requiredHubFlag,

0 commit comments

Comments
 (0)