prodlysfcli 1.2.1 → 1.2.3
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 +18 -16
- package/lib/commands/prodly/version.d.ts +2 -1
- package/lib/commands/prodly/version.js +23 -3
- package/lib/commands/prodly/version.js.map +1 -1
- package/lib/services/manage-instances.d.ts +3 -2
- package/lib/services/manage-instances.js +9 -1
- package/lib/services/manage-instances.js.map +1 -1
- package/lib/services/manage-instances.types.d.ts +8 -0
- package/messages/prodly.checkin.md +1 -1
- package/messages/prodly.checkout.md +1 -1
- package/messages/prodly.deploy.md +2 -2
- package/messages/prodly.json +1 -0
- package/messages/prodly.manage.md +1 -1
- package/messages/prodly.version.md +3 -0
- package/npm-shrinkwrap.json +1017 -896
- package/oclif.lock +1003 -975
- package/oclif.manifest.json +16 -8
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -81,7 +81,7 @@ EXAMPLES
|
|
|
81
81
|
Save managed data to the branch associated with the managed instance identified by the target username.
|
|
82
82
|
The instance should be managed by the Prodly account associated with the provided DevHub control org.
|
|
83
83
|
|
|
84
|
-
$ sf prodly:checkin -
|
|
84
|
+
$ sf prodly:checkin --target-org test-utxac7gbati9@example.com
|
|
85
85
|
Save managed data to the branch associated with the managed instance identified by the target username.
|
|
86
86
|
The instance should be managed by the Prodly account associated with the default DevHub control org.
|
|
87
87
|
|
|
@@ -120,16 +120,16 @@ DESCRIPTION
|
|
|
120
120
|
Deploy data from a VCS repository branch to a Salesforce environment.
|
|
121
121
|
|
|
122
122
|
EXAMPLES
|
|
123
|
-
$ sf prodly:
|
|
124
|
-
|
|
123
|
+
$ sf prodly:checkout --target-org test-utxac7gbati9@example.com --target-dev-hub jsmith@acme.com
|
|
124
|
+
Deploy managed data to the managed instance identified by the target org from the associated branch.
|
|
125
125
|
The instance should be managed by the Prodly account associated with the provided DevHub control org.
|
|
126
126
|
|
|
127
|
-
$ sf prodly:
|
|
128
|
-
|
|
127
|
+
$ sf prodly:checkout --target-org test-utxac7gbati9@example.com
|
|
128
|
+
Deploy managed data to the managed instance org identified by the target username from the associated branch.
|
|
129
129
|
The instance should be managed by the Prodly account associated with the default DevHub control org.
|
|
130
130
|
|
|
131
|
-
$ sf prodly:
|
|
132
|
-
|
|
131
|
+
$ sf prodly:checkout -i f50616b6-57b1-4941-802f-ee0e2506f217
|
|
132
|
+
Deploy managed data to the managed instance org from the associated branch.
|
|
133
133
|
The instance should be managed by the Prodly account associated with the default DevHub control org.
|
|
134
134
|
```
|
|
135
135
|
|
|
@@ -165,14 +165,14 @@ DESCRIPTION
|
|
|
165
165
|
Deploy data from one Salesforce environment directly to another Salesforce environment.
|
|
166
166
|
|
|
167
167
|
EXAMPLES
|
|
168
|
-
$ sf prodly:deploy -n scratchorg -
|
|
168
|
+
$ sf prodly:deploy -n scratchorg --target-org FixesScratchOrg -v MainDevHub
|
|
169
169
|
Command output... deploying from the dev hub, the control org, to the scratch org, auto managed with provided name.
|
|
170
170
|
Command output...
|
|
171
171
|
|
|
172
172
|
$ sf prodly:deploy --target-org test-utxac7gbati9@example.com --target-dev-hub jsmith@acme.com
|
|
173
173
|
Command output... deploying from the dev hub, the control org, to the scratch org. Long param names.
|
|
174
174
|
|
|
175
|
-
$ sf prodly:deploy -
|
|
175
|
+
$ sf prodly:deploy --target-org test-utxac7gbati9@example.com -v jsmith@acme.com -d "UAT Sandbox Connection"
|
|
176
176
|
Command output... deploying from the scratch org to the UAT sandbox, using the named connection record in the dev hub, control org.
|
|
177
177
|
|
|
178
178
|
$ sf prodly:deploy --target-org test-utxac7gbati9@example.com --target-dev-hub jsmith@acme.com --source "UAT Sandbox Connection"
|
|
@@ -217,7 +217,7 @@ EXAMPLES
|
|
|
217
217
|
$ sf prodly:manage -m --target-org test-utxac7gbati9@example.com --target-dev-hub jsmith@acme.com
|
|
218
218
|
Manage the org associated with the target username under the Prodly account associated with the provided DevHub control org.
|
|
219
219
|
|
|
220
|
-
$ sf prodly:manage -m -
|
|
220
|
+
$ sf prodly:manage -m --target-org test-utxac7gbati9@example.com -n dev7sbx
|
|
221
221
|
Manage and version the org associated with the target username under the Prodly account associated with the default DevHub control org.
|
|
222
222
|
|
|
223
223
|
```
|
|
@@ -250,17 +250,19 @@ EXAMPLES
|
|
|
250
250
|
|
|
251
251
|
```
|
|
252
252
|
USAGE
|
|
253
|
-
$ sf prodly:version -
|
|
253
|
+
$ sf prodly:version -v <value> -o <value> [--json] [-b <value>] [-s <value>] [-i <value>]
|
|
254
|
+
[-x]
|
|
254
255
|
|
|
255
256
|
FLAGS
|
|
256
257
|
-b, --new-branch=<value> if provided it creates a new branch based on the source branch that will be used for
|
|
257
258
|
version control
|
|
258
259
|
-i, --instance=<value> managed instance ID on which to perform the action
|
|
259
|
-
-o, --target-org=<value> (required)
|
|
260
|
-
|
|
261
|
-
-s, --source-branch=<value>
|
|
262
|
-
-v, --target-dev-hub=<value> (required)
|
|
263
|
-
|
|
260
|
+
-o, --target-org=<value> (required) Username or alias of the target org. Not required if the `target-org`
|
|
261
|
+
configuration variable is already set.
|
|
262
|
+
-s, --source-branch=<value> the version control branch or the base for the new branch (if provided)
|
|
263
|
+
-v, --target-dev-hub=<value> (required) Username or alias of the Dev Hub org. Not required if the `target-dev-hub`
|
|
264
|
+
configuration variable is already set.
|
|
265
|
+
-x, --unlink unlink the branch from the managed instance
|
|
264
266
|
|
|
265
267
|
GLOBAL FLAGS
|
|
266
268
|
--json Format output as json.
|
|
@@ -6,10 +6,11 @@ export default class ProdlyVersion extends SfCommand<JSONObject> {
|
|
|
6
6
|
static readonly examples: string[];
|
|
7
7
|
static readonly flags: {
|
|
8
8
|
'new-branch': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
|
-
'source-branch': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
|
+
'source-branch': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
10
|
'target-dev-hub': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
11
|
'target-org': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
12
|
instance: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
|
+
unlink: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
13
14
|
};
|
|
14
15
|
run(): Promise<JSONObject>;
|
|
15
16
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Messages, SfError } from '@salesforce/core';
|
|
2
2
|
import { Flags, SfCommand } from '@salesforce/sf-plugins-core';
|
|
3
|
-
import { getManagedInstance, getManagedInstances, postInstances } from '../../services/manage-instances.js';
|
|
3
|
+
import { getManagedInstance, getManagedInstances, postInstances, putInstances, } from '../../services/manage-instances.js';
|
|
4
4
|
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
|
|
5
5
|
const messages = Messages.loadMessages('prodlysfcli', 'prodly.version');
|
|
6
6
|
const prodlyMessages = Messages.loadMessages('prodlysfcli', 'prodly');
|
|
@@ -17,7 +17,7 @@ export default class ProdlyVersion extends SfCommand {
|
|
|
17
17
|
'source-branch': Flags.string({
|
|
18
18
|
summary: prodlyMessages.getMessage('sourceBranchFlagSummary'),
|
|
19
19
|
char: 's',
|
|
20
|
-
required:
|
|
20
|
+
required: false,
|
|
21
21
|
}),
|
|
22
22
|
'target-dev-hub': Flags.requiredHub(),
|
|
23
23
|
'target-org': Flags.requiredOrg(),
|
|
@@ -26,6 +26,7 @@ export default class ProdlyVersion extends SfCommand {
|
|
|
26
26
|
char: 'i',
|
|
27
27
|
required: false,
|
|
28
28
|
}),
|
|
29
|
+
unlink: Flags.boolean({ char: 'x', summary: prodlyMessages.getMessage('unlinkBranchFlagDescription') }),
|
|
29
30
|
};
|
|
30
31
|
async run() {
|
|
31
32
|
const { flags } = await this.parse(ProdlyVersion);
|
|
@@ -33,7 +34,10 @@ export default class ProdlyVersion extends SfCommand {
|
|
|
33
34
|
const hubOrg = flags['target-dev-hub'];
|
|
34
35
|
const hubConn = hubOrg.getConnection();
|
|
35
36
|
const print = (message, ...args) => this.log(message, ...args);
|
|
36
|
-
const { instance } = flags;
|
|
37
|
+
const { instance, unlink } = flags;
|
|
38
|
+
if (!unlink && !flags['source-branch']) {
|
|
39
|
+
throw new SfError('Flag source-branch is required to version control managed environment');
|
|
40
|
+
}
|
|
37
41
|
let managedInstance;
|
|
38
42
|
// Check if managed instance Id is provided else get the managed instance from the target org
|
|
39
43
|
if (instance) {
|
|
@@ -49,6 +53,22 @@ export default class ProdlyVersion extends SfCommand {
|
|
|
49
53
|
if (!managedInstance) {
|
|
50
54
|
throw new SfError(prodlyMessages.getMessage('errorManagedInstaceNotFound'));
|
|
51
55
|
}
|
|
56
|
+
if (unlink) {
|
|
57
|
+
await putInstances({
|
|
58
|
+
hubConn,
|
|
59
|
+
body: {
|
|
60
|
+
options: { checkin: false, checkout: false, commitMessage: '', environmentExists: true },
|
|
61
|
+
platformInstance: {
|
|
62
|
+
branchName: null,
|
|
63
|
+
connectionId: managedInstance.connectionId,
|
|
64
|
+
platformInstanceId: managedInstance.platformInstanceId,
|
|
65
|
+
sourceBranchName: null,
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
});
|
|
69
|
+
print('Version control managed environment unlinked');
|
|
70
|
+
return {};
|
|
71
|
+
}
|
|
52
72
|
const { jobId } = await postInstances({
|
|
53
73
|
hubConn,
|
|
54
74
|
body: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../../src/commands/prodly/version.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,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tD,gBAAgB,EAAE,KAAK,CAAC,eAAe,CAAC;iBACzC;aACF;SACF,CAAC,CAAC;QAEH,KAAK,CAAC,6DAA6D,KAAK,EAAE,CAAC,CAAC;QAC5E,OAAO,EAAE,KAAK,EAAE,CAAC;IACnB,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { GetManagedInstanceFn, GetManagedInstancesFn, ManageInstanceAsyncFn, ManageInstanceFn, PostInstancesFn, UnmanageInstanceFn } from './manage-instances.types.js';
|
|
1
|
+
import { GetManagedInstanceFn, GetManagedInstancesFn, ManageInstanceAsyncFn, ManageInstanceFn, PostInstancesFn, PutInstancesFn, UnmanageInstanceFn } from './manage-instances.types.js';
|
|
2
2
|
declare const getManagedInstances: GetManagedInstancesFn;
|
|
3
3
|
declare const getManagedInstance: GetManagedInstanceFn;
|
|
4
4
|
declare const manageInstance: ManageInstanceFn;
|
|
5
5
|
declare const manageInstanceAsync: ManageInstanceAsyncFn;
|
|
6
6
|
declare const postInstances: PostInstancesFn;
|
|
7
|
+
declare const putInstances: PutInstancesFn;
|
|
7
8
|
declare const unmanageInstance: UnmanageInstanceFn;
|
|
8
|
-
export { getManagedInstance, getManagedInstances, manageInstance, manageInstanceAsync, postInstances, unmanageInstance, };
|
|
9
|
+
export { getManagedInstance, getManagedInstances, manageInstance, manageInstanceAsync, postInstances, putInstances, unmanageInstance, };
|
|
@@ -93,6 +93,14 @@ const postInstances = async ({ body, hubConn }) => {
|
|
|
93
93
|
}
|
|
94
94
|
return { jobId };
|
|
95
95
|
};
|
|
96
|
+
const putInstances = async ({ body, hubConn }) => {
|
|
97
|
+
const request = {
|
|
98
|
+
body: JSON.stringify(body),
|
|
99
|
+
method: 'PUT',
|
|
100
|
+
url: BASE_PATH,
|
|
101
|
+
};
|
|
102
|
+
await hubConn.request(request);
|
|
103
|
+
};
|
|
96
104
|
const unmanageInstance = async ({ hubConn, instanceId, print }) => {
|
|
97
105
|
if (print)
|
|
98
106
|
print(`Unmanaging instance with ID ${instanceId}.`);
|
|
@@ -104,5 +112,5 @@ const unmanageInstance = async ({ hubConn, instanceId, print }) => {
|
|
|
104
112
|
await hubConn.request(request);
|
|
105
113
|
return;
|
|
106
114
|
};
|
|
107
|
-
export { getManagedInstance, getManagedInstances, manageInstance, manageInstanceAsync, postInstances, unmanageInstance, };
|
|
115
|
+
export { getManagedInstance, getManagedInstances, manageInstance, manageInstanceAsync, postInstances, putInstances, unmanageInstance, };
|
|
108
116
|
//# sourceMappingURL=manage-instances.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manage-instances.js","sourceRoot":"","sources":["../../src/services/manage-instances.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"manage-instances.js","sourceRoot":"","sources":["../../src/services/manage-instances.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAW1C,MAAM,SAAS,GAAG,sCAAsC,CAAC;AAEzD,MAAM,mBAAmB,GAA0B,KAAK,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE;IAC9E,IAAI,KAAK;QAAE,KAAK,CAAC,mCAAmC,CAAC,CAAC;IAEtD,MAAM,gBAAgB,GAAqB,MAAM,OAAO,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC,WAAW,GAAG,SAAS,EAAE,CAAC,CAAC;IACvG,OAAO,gBAAgB,CAAC;AAC1B,CAAC,CAAC;AAEF,MAAM,kBAAkB,GAAyB,KAAK,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,E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CAAC,CAAC;AAEF,MAAM,gBAAgB,GAAuB,KAAK,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,EAAE,EAAE;IACpF,IAAI,KAAK;QAAE,KAAK,CAAC,+BAA+B,UAAU,GAAG,CAAC,CAAC;IAE/D,MAAM,IAAI,GAAG,GAAG,SAAS,IAAI,UAAU,EAAE,CAAC;IAE1C,MAAM,OAAO,GAAG;QACd,MAAM,EAAE,QAAiB;QACzB,GAAG,EAAE,IAAI;KACV,CAAC;IACF,MAAM,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAE/B,OAAO;AACT,CAAC,CAAC;AAEF,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,cAAc,EACd,mBAAmB,EACnB,aAAa,EACb,YAAY,EACZ,gBAAgB,GACjB,CAAC"}
|
|
@@ -47,4 +47,12 @@ export type PostInstancesFn = ({ body, hubConn, }: {
|
|
|
47
47
|
}) => Promise<{
|
|
48
48
|
jobId: string;
|
|
49
49
|
}>;
|
|
50
|
+
export type PutInstancesFn = ({ body, hubConn, }: {
|
|
51
|
+
hubConn: Connection;
|
|
52
|
+
body: {
|
|
53
|
+
[key: string]: {
|
|
54
|
+
[key: string]: unknown;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
}) => Promise<void>;
|
|
50
58
|
export {};
|
|
@@ -7,7 +7,7 @@ prodly:checkin command
|
|
|
7
7
|
- <%= config.bin %> prodly:checkin --target-org test-utxac7gbati9@example.com --target-dev-hub jsmith@acme.com
|
|
8
8
|
Save managed data to the branch associated with the managed instance identified by the target username.
|
|
9
9
|
The instance should be managed by the Prodly account associated with the provided DevHub control org.
|
|
10
|
-
- <%= config.bin %> prodly:checkin -
|
|
10
|
+
- <%= config.bin %> prodly:checkin --target-org test-utxac7gbati9@example.com
|
|
11
11
|
Save managed data to the branch associated with the managed instance identified by the target username.
|
|
12
12
|
The instance should be managed by the Prodly account associated with the default DevHub control org.
|
|
13
13
|
- <%= config.bin %> prodly:checkin -i f50616b6-57b1-4941-802f-ee0e2506f217
|
|
@@ -7,7 +7,7 @@ prodly:checkout command
|
|
|
7
7
|
- <%= config.bin %> prodly:checkout --target-org test-utxac7gbati9@example.com --target-dev-hub jsmith@acme.com
|
|
8
8
|
Deploy managed data to the managed instance identified by the target org from the associated branch.
|
|
9
9
|
The instance should be managed by the Prodly account associated with the provided DevHub control org.
|
|
10
|
-
- <%= config.bin %> prodly:checkout -
|
|
10
|
+
- <%= config.bin %> prodly:checkout --target-org test-utxac7gbati9@example.com
|
|
11
11
|
Deploy managed data to the managed instance org identified by the target username from the associated branch.
|
|
12
12
|
The instance should be managed by the Prodly account associated with the default DevHub control org.
|
|
13
13
|
- <%= config.bin %> prodly:checkout -i f50616b6-57b1-4941-802f-ee0e2506f217
|
|
@@ -4,11 +4,11 @@ prodly:deploy command
|
|
|
4
4
|
|
|
5
5
|
# examples
|
|
6
6
|
|
|
7
|
-
- <%= config.bin %> prodly:deploy -n scratchorg -
|
|
7
|
+
- <%= config.bin %> prodly:deploy -n scratchorg --target-org FixesScratchOrg -v MainDevHub
|
|
8
8
|
Command output... deploying from the dev hub, the control org, to the scratch org, auto managed with provided name.
|
|
9
9
|
- <%= config.bin %> prodly:deploy --target-org test-utxac7gbati9@example.com --target-dev-hub jsmith@acme.com
|
|
10
10
|
Command output... deploying from the dev hub, the control org, to the scratch org. Long param names.
|
|
11
|
-
- <%= config.bin %> prodly:deploy -
|
|
11
|
+
- <%= config.bin %> prodly:deploy --target-org test-utxac7gbati9@example.com -v jsmith@acme.com -d "UAT Sandbox Connection"
|
|
12
12
|
Command output... deploying from the scratch org to the UAT sandbox, using the named connection record in the dev hub, control org.
|
|
13
13
|
- <%= config.bin %> prodly:deploy --target-org test-utxac7gbati9@example.com --target-dev-hub jsmith@acme.com --source "UAT Sandbox Connection"
|
|
14
14
|
Command output... deploying to the scratch org from the UAT sandbox, using the named connection record in the dev hub, control org. Long param names.
|
package/messages/prodly.json
CHANGED
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
"simulationFlagDescription": "perform a data simulation",
|
|
20
20
|
"sourceBranchFlagSummary": "the version control branch or the base for the new branch (if provided)",
|
|
21
21
|
"sourceFlagDescription": "source managed instance ID",
|
|
22
|
+
"unlinkBranchFlagDescription": "unlink the branch from the managed instance",
|
|
22
23
|
"unmanageFlagDescription": "unmanage the specified instance",
|
|
23
24
|
"versionFlagDescription": "version the new managed instance, branch created and data deployed to the org",
|
|
24
25
|
|
|
@@ -8,5 +8,5 @@ prodly:manage command
|
|
|
8
8
|
List and print all of the managed instances for the Prodly account associated with the default DevHub control org.
|
|
9
9
|
- <%= config.bin %> prodly:manage -m --target-org test-utxac7gbati9@example.com --target-dev-hub jsmith@acme.com
|
|
10
10
|
Manage the org associated with the target username under the Prodly account associated with the provided DevHub control org.
|
|
11
|
-
- <%= config.bin %> prodly:manage -m -
|
|
11
|
+
- <%= config.bin %> prodly:manage -m --target-org test-utxac7gbati9@example.com -n dev7sbx
|
|
12
12
|
Manage and version the org associated with the target username under the Prodly account associated with the default DevHub control org.
|
|
@@ -10,3 +10,6 @@ prodly:version command
|
|
|
10
10
|
- <%= config.bin %> prodly:version -s main -b cli-branch -i f50616b6-57b1-4941-802f-ee0e2506f217
|
|
11
11
|
Add version control to the managed instance identified by the provided ID. Use the "main" branch as a base for a new branch called "cli-branch"
|
|
12
12
|
The instance should be managed by the Prodly account associated with the default DevHub control org.
|
|
13
|
+
- <%= config.bin %> prodly:version -x -i f50616b6-57b1-4941-802f-ee0e2506f217
|
|
14
|
+
Remove version control from the managed instance identified by the provided ID.
|
|
15
|
+
The instance should be managed by the Prodly account associated with the default DevHub control org.
|