@pdfbutler/migration-cli 0.0.13 → 0.0.15
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
CHANGED
|
@@ -10,6 +10,9 @@ v0.0.11 updates: <br/>
|
|
|
10
10
|
- New '-l --logs' flag. Use this flag to enable a more detailed log of the migration process.
|
|
11
11
|
- New '-p --partial' flag. Use this flag to ignore invalid document configurations and allow the export of document configuration files with the backend part.
|
|
12
12
|
|
|
13
|
+
v0.0.14 updates: <br/>
|
|
14
|
+
- The '-i --id' flag has been added to the import command to specify the IDs of the PDF Butler document configurations that require importing. This is a required flag.
|
|
15
|
+
|
|
13
16
|
## About
|
|
14
17
|
|
|
15
18
|
@pdfbutler/migration-cli is a Salesforce plugin designed to simplify and automate the process of migrating configurations within the PDF Butler system in the Salesforce environment. PDF Butler is a powerful tool for generating and automating documents in the Salesforce platform, and the use of this CLI plugin allows users to easily manage configurations and transfer them between different Salesforce instances or projects.
|
|
@@ -66,6 +69,15 @@ $ sf butler pb export [options]
|
|
|
66
69
|
$ sf butler pb import [options]
|
|
67
70
|
```
|
|
68
71
|
|
|
72
|
+
## Recommended CLI Shell:
|
|
73
|
+
```
|
|
74
|
+
Windows - PowerShell
|
|
75
|
+
MacOS - zsh
|
|
76
|
+
Linux - bash
|
|
77
|
+
|
|
78
|
+
One of the common errors in Windows Command Prompt is incorrectly parsing command parameters within quotes.
|
|
79
|
+
```
|
|
80
|
+
|
|
69
81
|
## Commands
|
|
70
82
|
|
|
71
83
|
## butler pb export
|
|
@@ -78,7 +90,8 @@ $ sf butler pb export [--target | -t <value>] [--id | -i <value>] [--out | -o <v
|
|
|
78
90
|
|
|
79
91
|
FLAGS
|
|
80
92
|
-t, --target=<value> The Salesforce org username credentials to connect to the target org. (Required)
|
|
81
|
-
-i, --id=<value> The ID of the PDF Butler docuemnt configuration to export.
|
|
93
|
+
-i, --id=<value> The ID of the PDF Butler docuemnt configuration to export.
|
|
94
|
+
For bulk export, enter multiple docuemnt configuration IDs separated by whitespaces. (Required)
|
|
82
95
|
-o, --out=<value> The value specifies the path to the folder with the exported configuration and archive name. (Required)
|
|
83
96
|
-s, --stage=<value> The CADMUS stage. (Required)
|
|
84
97
|
-a, --auth-env-var=<value> The PDF Butler credentials for backend authentication. (Required)
|
|
@@ -260,7 +273,7 @@ EXAMPLES
|
|
|
260
273
|
}
|
|
261
274
|
}
|
|
262
275
|
|
|
263
|
-
Run with --partial flag only
|
|
276
|
+
Run with --partial flag only (bulk export)
|
|
264
277
|
|
|
265
278
|
$ sf butler pb export -t sfusername@sandbox.com -i 'document_configuration_id_1, invalid_document_configuration_id_2'
|
|
266
279
|
-o 'export_folder_name/archive_or_folder_name' -s 'TEST' -e 'https://eu1.pdfbutler.com'
|
|
@@ -282,7 +295,7 @@ EXAMPLES
|
|
|
282
295
|
}
|
|
283
296
|
}
|
|
284
297
|
|
|
285
|
-
Run without --partial flag
|
|
298
|
+
Run without --partial flag (bulk export)
|
|
286
299
|
|
|
287
300
|
$ sf butler pb export -t sfusername@sandbox.com -i 'document_configuration_id_1, invalid_document_configuration_id_2'
|
|
288
301
|
-o 'export_folder_name/archive_or_folder_name' -s 'TEST' -e 'https://eu1.pdfbutler.com'
|
|
@@ -290,6 +303,32 @@ EXAMPLES
|
|
|
290
303
|
|
|
291
304
|
# Console output:
|
|
292
305
|
Error (1): One or more docConfigs have no backend.
|
|
306
|
+
|
|
307
|
+
Run without --partial flag (bulk export)
|
|
308
|
+
|
|
309
|
+
$ sf butler pb export -t sfusername@sandbox.com -i 'document_configuration_id_1, document_configuration_id_2'
|
|
310
|
+
-o 'export_folder_name/archive_or_folder_name' -s 'TEST' -e 'https://eu1.pdfbutler.com'
|
|
311
|
+
-a 'pdf_butler_user_name-ADMIN:admin_password'
|
|
312
|
+
|
|
313
|
+
# Created:
|
|
314
|
+
Directory 'export_folder_name/archive_or_folder_name'{
|
|
315
|
+
Directory 'sfdc'{
|
|
316
|
+
file 'docconfig_id_1.json',
|
|
317
|
+
file 'docconfig_id_2.json',
|
|
318
|
+
},
|
|
319
|
+
zip file'docconfig_id_1.zip'{
|
|
320
|
+
Directory 'ConfigTypes',
|
|
321
|
+
Directory 'DataSources',
|
|
322
|
+
file 'doc-config.json',
|
|
323
|
+
file 'TemplateName.docx'
|
|
324
|
+
},
|
|
325
|
+
zip file'docconfig_id_2.zip'{
|
|
326
|
+
Directory 'ConfigTypes',
|
|
327
|
+
Directory 'DataSources',
|
|
328
|
+
file 'doc-config.json',
|
|
329
|
+
file 'TemplateName.docx'
|
|
330
|
+
}
|
|
331
|
+
}
|
|
293
332
|
|
|
294
333
|
Run with --backend flag and other optional flags
|
|
295
334
|
|
|
@@ -360,7 +399,7 @@ FLAG DESCRIPTIONS
|
|
|
360
399
|
This flag is required to authenticate and access the PDF Butler configurations.
|
|
361
400
|
|
|
362
401
|
-i, --id <value>
|
|
363
|
-
Specifies the unique ID of the PDF Butler document configuration to be exported.
|
|
402
|
+
Specifies the unique ID of the PDF Butler document configuration to be exported. For bulk export, enter multiple docuemnt configuration IDs separated by whitespaces.
|
|
364
403
|
This ID uniquely identifies the configuration you want to export. It is a required parameter.
|
|
365
404
|
|
|
366
405
|
-o, --out <value>
|
|
@@ -402,10 +441,12 @@ Import PDF Butler document configurations and related DataSource files.
|
|
|
402
441
|
|
|
403
442
|
```
|
|
404
443
|
USAGE
|
|
405
|
-
$ sf butler pb import [--target | -t <value>] [--auth-env-var | -a <value>] [--endpoint | -e <value>] [--stage | -s <value>] [--config | -f <value>]
|
|
444
|
+
$ sf butler pb import [--target | -t <value>] [--id | -i <value>] [--auth-env-var | -a <value>] [--endpoint | -e <value>] [--stage | -s <value>] [--config | -f <value>]
|
|
406
445
|
|
|
407
446
|
FLAGS
|
|
408
447
|
-t, --target=<value> The Salesforce org username credentials to connect to the target org. (Required)
|
|
448
|
+
-i, --id=<value> The ID of the PDF Butler docuemnt configurations to import.
|
|
449
|
+
For bulk import, enter multiple docuemnt configuration IDs separated by whitespaces.(Required)
|
|
409
450
|
-a, --auth-env-var=<value> The PDF Butler credentials for backend authentication. (Required)
|
|
410
451
|
-e, --endpoint=<value> The URL PDF Butler endpoint for import. (Required)
|
|
411
452
|
Please use the following region-specific URLs on the region in which you registered:
|
|
@@ -430,13 +471,25 @@ DESCRIPTION
|
|
|
430
471
|
EXAMPLE
|
|
431
472
|
Import configurations to the organization:
|
|
432
473
|
|
|
433
|
-
$ sf butler pb import -t sfusername@sandbox.com -f .export_folder_name/archive_or_folder_name
|
|
474
|
+
$ sf butler pb import -t sfusername@sandbox.com -i 'document_configuration_id' -f .export_folder_name/archive_or_folder_name
|
|
475
|
+
-e 'https://eu1.pdfbutler.com' -a 'pdf_butler_user_name-ADMIN:admin_password' -s 'UAT'
|
|
476
|
+
|
|
477
|
+
Import configurations to the organization:
|
|
478
|
+
|
|
479
|
+
|
|
480
|
+
Bulk import configurations to the organization:
|
|
481
|
+
|
|
482
|
+
$ sf butler pb import -t sfusername@sandbox.com -i 'document_configuration_id document_configuration_id2' -f .export_folder_name/archive_or_folder_name
|
|
434
483
|
-e 'https://eu1.pdfbutler.com' -a 'pdf_butler_user_name-ADMIN:admin_password' -s 'UAT'
|
|
435
484
|
|
|
436
485
|
FLAG DESCRIPTIONS
|
|
437
486
|
-t, --target <value>
|
|
438
487
|
Specifies the Salesforce org username credentials to connect to the target
|
|
439
488
|
org where the PDF Butler configurations will be imported. This flag is required for authentication.
|
|
489
|
+
|
|
490
|
+
-i, --id <value>
|
|
491
|
+
Specifies the unique ID of the PDF Butler document configuration to be imported.
|
|
492
|
+
This ID uniquely identifies the configuration you want to import. It is a required parameter.
|
|
440
493
|
|
|
441
494
|
-a, --auth-env-var <value>
|
|
442
495
|
Specifies the PDF Butler credentials for backend authentication. For authenification should be used PDF butler username and admin password.
|
|
@@ -447,8 +500,8 @@ FLAG DESCRIPTIONS
|
|
|
447
500
|
Specifies a URL endpoint for import. Use this flag if you need to specify a custom import endpoint.
|
|
448
501
|
|
|
449
502
|
-s, --stage <value>
|
|
450
|
-
|
|
451
|
-
This flag helps in categorizing or labeling the
|
|
503
|
+
Specifies the stage or environment for the import process.
|
|
504
|
+
This flag helps in categorizing or labeling the imported data according to different stages. For example: TEST, UAT, PROD.
|
|
452
505
|
It is a required parameter.
|
|
453
506
|
|
|
454
507
|
-f, --config <value>
|
|
@@ -500,6 +553,7 @@ SOLUTION: When using the --id flag, make sure to provide a valid value after the
|
|
|
500
553
|
```
|
|
501
554
|
SOLUTION: Verify that the Doc Config IDs you provided are correct and exist in the system.
|
|
502
555
|
|
|
556
|
+
|
|
503
557
|
```
|
|
504
558
|
|
|
505
559
|
- Error (1): One or more docConfigs have no backend.
|
|
@@ -15,8 +15,10 @@ export default class ButlerPbImport extends SfCommand<ButlerPbImportResult> {
|
|
|
15
15
|
stage: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
16
16
|
config: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
17
17
|
logs: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
18
|
+
id: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
18
19
|
};
|
|
19
20
|
private static getTargetPath;
|
|
20
21
|
private static getFiles;
|
|
22
|
+
private static getDocConfigIds;
|
|
21
23
|
run(): Promise<ButlerPbImportResult>;
|
|
22
24
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const path = require("path");
|
|
3
4
|
const fs = require("graceful-fs");
|
|
4
5
|
const sf_plugins_core_1 = require("@salesforce/sf-plugins-core");
|
|
5
6
|
const core_1 = require("@salesforce/core");
|
|
@@ -26,24 +27,42 @@ class ButlerPbImport extends sf_plugins_core_1.SfCommand {
|
|
|
26
27
|
}
|
|
27
28
|
throw new Error('Unsupported record type');
|
|
28
29
|
}
|
|
29
|
-
static getFiles(dir, files) {
|
|
30
|
+
static getFiles(dir, docConfigIds, files) {
|
|
30
31
|
const fileList = fs.readdirSync(dir, { withFileTypes: true });
|
|
31
32
|
for (const file of fileList) {
|
|
32
33
|
const name = `${dir}/${file.name}`;
|
|
33
34
|
if (fs.statSync(name).isDirectory() && file.name === 'sfdc') {
|
|
34
|
-
ButlerPbImport.getFiles(name, files);
|
|
35
|
+
ButlerPbImport.getFiles(name, docConfigIds, files);
|
|
35
36
|
}
|
|
36
37
|
else {
|
|
38
|
+
if (!docConfigIds.includes(path.parse(file.name).name))
|
|
39
|
+
continue;
|
|
37
40
|
files.push(name);
|
|
38
41
|
}
|
|
39
42
|
}
|
|
43
|
+
if (files.length <= 0) {
|
|
44
|
+
throw new Error('No matching files found');
|
|
45
|
+
}
|
|
40
46
|
return files;
|
|
41
47
|
}
|
|
48
|
+
static getDocConfigIds(id) {
|
|
49
|
+
const docConfigIds = id.split(/([\w-]{36})/).filter((n) => n);
|
|
50
|
+
docConfigIds.forEach((docId) => {
|
|
51
|
+
if (!docId.trim()) {
|
|
52
|
+
docConfigIds.splice(docConfigIds.indexOf(docId), 1);
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
if (docConfigIds.length <= 0) {
|
|
56
|
+
throw new Error('No matching Doc Configs ids found');
|
|
57
|
+
}
|
|
58
|
+
return docConfigIds;
|
|
59
|
+
}
|
|
42
60
|
async run() {
|
|
43
61
|
const { flags } = await this.parse(ButlerPbImport);
|
|
62
|
+
const docConfigIds = ButlerPbImport.getDocConfigIds(flags.id);
|
|
44
63
|
const zipArray = [];
|
|
45
64
|
const jsonArray = [];
|
|
46
|
-
const files = ButlerPbImport.getFiles(
|
|
65
|
+
const files = ButlerPbImport.getFiles(flags.config, docConfigIds, []);
|
|
47
66
|
await Promise.all(files.map((fileName) => {
|
|
48
67
|
const fullPath = fileName;
|
|
49
68
|
if (fileName.endsWith('.json')) {
|
|
@@ -118,6 +137,8 @@ class ButlerPbImport extends sf_plugins_core_1.SfCommand {
|
|
|
118
137
|
stage: flags.stage,
|
|
119
138
|
version: 'v10.0',
|
|
120
139
|
}), { contentType: 'application/json' });
|
|
140
|
+
this.log(fd.getBuffer().toString());
|
|
141
|
+
this.log(fd.getHeaders().toString());
|
|
121
142
|
try {
|
|
122
143
|
await got_1.default.post(finalUrl, {
|
|
123
144
|
body: fd.getBuffer(),
|
|
@@ -172,6 +193,11 @@ ButlerPbImport.flags = {
|
|
|
172
193
|
summary: messages.getMessage('flags.logs.summary'),
|
|
173
194
|
char: 'l',
|
|
174
195
|
}),
|
|
196
|
+
id: sf_plugins_core_1.Flags.string({
|
|
197
|
+
summary: messages.getMessage('flags.id.summary'),
|
|
198
|
+
char: 'i',
|
|
199
|
+
required: true,
|
|
200
|
+
}),
|
|
175
201
|
};
|
|
176
202
|
exports.default = ButlerPbImport;
|
|
177
203
|
//# sourceMappingURL=import.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"import.js","sourceRoot":"","sources":["../../../../src/commands/butler/pb/import.ts"],"names":[],"mappings":";;AAAA,kCAAmC;AACnC,iEAA+D;AAC/D,2CAAkE;AAClE,sCAAuC;AACvC,kCAAmC;AACnC,6BAAsB;AAEtB,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,0BAA0B,EAAE,kBAAkB,CAAC,CAAC;AAMvF,MAAqB,cAAe,SAAQ,2BAA+B;
|
|
1
|
+
{"version":3,"file":"import.js","sourceRoot":"","sources":["../../../../src/commands/butler/pb/import.ts"],"names":[],"mappings":";;AAAA,6BAA8B;AAC9B,kCAAmC;AACnC,iEAA+D;AAC/D,2CAAkE;AAClE,sCAAuC;AACvC,kCAAmC;AACnC,6BAAsB;AAEtB,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ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AAE,QAAQ,CAAC,UAAU,CAAC,qBAAqB,CAAC;QACnD,IAAI,EAAE,GAAG;KACV,CAAC;IACF,MAAM,EAAE,uBAAK,CAAC,MAAM,CAAC;QACnB,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,sBAAsB,CAAC;QACpD,IAAI,EAAE,GAAG;QACT,QAAQ,EAAE,IAAI;KACf,CAAC;IACF,IAAI,EAAE,uBAAK,CAAC,OAAO,CAAC;QAClB,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,oBAAoB,CAAC;QAClD,IAAI,EAAE,GAAG;KACV,CAAC;IACF,EAAE,EAAE,uBAAK,CAAC,MAAM,CAAC;QACf,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,kBAAkB,CAAC;QAChD,IAAI,EAAE,GAAG;QACT,QAAQ,EAAE,IAAI;KACf,CAAC;CACH,CAAC;kBA3CiB,cAAc"}
|
package/oclif.manifest.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.0.
|
|
2
|
+
"version": "0.0.15",
|
|
3
3
|
"commands": {
|
|
4
4
|
"butler:pb:export": {
|
|
5
5
|
"id": "butler:pb:export",
|
|
@@ -179,6 +179,14 @@
|
|
|
179
179
|
"char": "l",
|
|
180
180
|
"summary": "Summary for logs.",
|
|
181
181
|
"allowNo": false
|
|
182
|
+
},
|
|
183
|
+
"id": {
|
|
184
|
+
"name": "id",
|
|
185
|
+
"type": "option",
|
|
186
|
+
"char": "i",
|
|
187
|
+
"summary": "Summary for id.",
|
|
188
|
+
"required": true,
|
|
189
|
+
"multiple": false
|
|
182
190
|
}
|
|
183
191
|
},
|
|
184
192
|
"args": {}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pdfbutler/migration-cli",
|
|
3
3
|
"description": "[](https://www.npmjs.com/package/pdfbutler-migration-cli) [](https://npmjs.org/package/pdfbutler-migration-cli) [](https://raw.githubusercontent.com/salesforcecli/pdfbutler-migration-cli/main/LICENSE.txt)",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.15",
|
|
5
5
|
"script": {
|
|
6
6
|
"postinstall": "sf plugins link @pdfbutler/migration-cli"
|
|
7
7
|
},
|