@pdfbutler/migration-cli 0.0.14 → 0.0.16
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 +55 -9
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -69,6 +69,15 @@ $ sf butler pb export [options]
|
|
|
69
69
|
$ sf butler pb import [options]
|
|
70
70
|
```
|
|
71
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
|
+
|
|
72
81
|
## Commands
|
|
73
82
|
|
|
74
83
|
## butler pb export
|
|
@@ -81,7 +90,8 @@ $ sf butler pb export [--target | -t <value>] [--id | -i <value>] [--out | -o <v
|
|
|
81
90
|
|
|
82
91
|
FLAGS
|
|
83
92
|
-t, --target=<value> The Salesforce org username credentials to connect to the target org. (Required)
|
|
84
|
-
-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)
|
|
85
95
|
-o, --out=<value> The value specifies the path to the folder with the exported configuration and archive name. (Required)
|
|
86
96
|
-s, --stage=<value> The CADMUS stage. (Required)
|
|
87
97
|
-a, --auth-env-var=<value> The PDF Butler credentials for backend authentication. (Required)
|
|
@@ -263,7 +273,7 @@ EXAMPLES
|
|
|
263
273
|
}
|
|
264
274
|
}
|
|
265
275
|
|
|
266
|
-
Run with --partial flag only
|
|
276
|
+
Run with --partial flag only (bulk export)
|
|
267
277
|
|
|
268
278
|
$ sf butler pb export -t sfusername@sandbox.com -i 'document_configuration_id_1, invalid_document_configuration_id_2'
|
|
269
279
|
-o 'export_folder_name/archive_or_folder_name' -s 'TEST' -e 'https://eu1.pdfbutler.com'
|
|
@@ -285,7 +295,7 @@ EXAMPLES
|
|
|
285
295
|
}
|
|
286
296
|
}
|
|
287
297
|
|
|
288
|
-
Run without --partial flag
|
|
298
|
+
Run without --partial flag (bulk export)
|
|
289
299
|
|
|
290
300
|
$ sf butler pb export -t sfusername@sandbox.com -i 'document_configuration_id_1, invalid_document_configuration_id_2'
|
|
291
301
|
-o 'export_folder_name/archive_or_folder_name' -s 'TEST' -e 'https://eu1.pdfbutler.com'
|
|
@@ -293,6 +303,32 @@ EXAMPLES
|
|
|
293
303
|
|
|
294
304
|
# Console output:
|
|
295
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
|
+
}
|
|
296
332
|
|
|
297
333
|
Run with --backend flag and other optional flags
|
|
298
334
|
|
|
@@ -363,7 +399,7 @@ FLAG DESCRIPTIONS
|
|
|
363
399
|
This flag is required to authenticate and access the PDF Butler configurations.
|
|
364
400
|
|
|
365
401
|
-i, --id <value>
|
|
366
|
-
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.
|
|
367
403
|
This ID uniquely identifies the configuration you want to export. It is a required parameter.
|
|
368
404
|
|
|
369
405
|
-o, --out <value>
|
|
@@ -409,7 +445,8 @@ $ sf butler pb import [--target | -t <value>] [--id | -i <value>] [--auth-env-va
|
|
|
409
445
|
|
|
410
446
|
FLAGS
|
|
411
447
|
-t, --target=<value> The Salesforce org username credentials to connect to the target org. (Required)
|
|
412
|
-
-i, --id=<value> The ID of the PDF Butler docuemnt configurations to import.
|
|
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)
|
|
413
450
|
-a, --auth-env-var=<value> The PDF Butler credentials for backend authentication. (Required)
|
|
414
451
|
-e, --endpoint=<value> The URL PDF Butler endpoint for import. (Required)
|
|
415
452
|
Please use the following region-specific URLs on the region in which you registered:
|
|
@@ -436,6 +473,14 @@ EXAMPLE
|
|
|
436
473
|
|
|
437
474
|
$ sf butler pb import -t sfusername@sandbox.com -i 'document_configuration_id' -f .export_folder_name/archive_or_folder_name
|
|
438
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
|
|
483
|
+
-e 'https://eu1.pdfbutler.com' -a 'pdf_butler_user_name-ADMIN:admin_password' -s 'UAT'
|
|
439
484
|
|
|
440
485
|
FLAG DESCRIPTIONS
|
|
441
486
|
-t, --target <value>
|
|
@@ -443,8 +488,8 @@ FLAG DESCRIPTIONS
|
|
|
443
488
|
org where the PDF Butler configurations will be imported. This flag is required for authentication.
|
|
444
489
|
|
|
445
490
|
-i, --id <value>
|
|
446
|
-
Specifies the unique ID of the PDF Butler document configuration to be
|
|
447
|
-
This ID uniquely identifies the configuration you want to
|
|
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.
|
|
448
493
|
|
|
449
494
|
-a, --auth-env-var <value>
|
|
450
495
|
Specifies the PDF Butler credentials for backend authentication. For authenification should be used PDF butler username and admin password.
|
|
@@ -455,8 +500,8 @@ FLAG DESCRIPTIONS
|
|
|
455
500
|
Specifies a URL endpoint for import. Use this flag if you need to specify a custom import endpoint.
|
|
456
501
|
|
|
457
502
|
-s, --stage <value>
|
|
458
|
-
|
|
459
|
-
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.
|
|
460
505
|
It is a required parameter.
|
|
461
506
|
|
|
462
507
|
-f, --config <value>
|
|
@@ -508,6 +553,7 @@ SOLUTION: When using the --id flag, make sure to provide a valid value after the
|
|
|
508
553
|
```
|
|
509
554
|
SOLUTION: Verify that the Doc Config IDs you provided are correct and exist in the system.
|
|
510
555
|
|
|
556
|
+
|
|
511
557
|
```
|
|
512
558
|
|
|
513
559
|
- Error (1): One or more docConfigs have no backend.
|
package/oclif.manifest.json
CHANGED
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.16",
|
|
5
5
|
"script": {
|
|
6
6
|
"postinstall": "sf plugins link @pdfbutler/migration-cli"
|
|
7
7
|
},
|