@pdfbutler/migration-cli 0.0.7 → 0.0.9
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
|
@@ -21,25 +21,32 @@ yarn install
|
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
If you've installed Node.js on your computer, you can use npm to install Salesforce CLI:
|
|
24
|
+
|
|
24
25
|
```
|
|
25
26
|
npm install @salesforce/cli --global
|
|
26
27
|
```
|
|
27
28
|
|
|
28
29
|
For install the plugin run:
|
|
30
|
+
|
|
29
31
|
```
|
|
30
32
|
sf plugins install @pdfbutler/migration-cli
|
|
31
33
|
```
|
|
34
|
+
|
|
32
35
|
To see your installed plugins and their versions, run:
|
|
36
|
+
|
|
33
37
|
```
|
|
34
38
|
sf plugins
|
|
35
39
|
```
|
|
40
|
+
|
|
36
41
|
To see which versions of the core Salesforce-provided plugins are installed on your computer, run:
|
|
42
|
+
|
|
37
43
|
```
|
|
38
44
|
sf plugins --core
|
|
39
45
|
```
|
|
40
46
|
|
|
41
47
|
Before running commands that require access to the Salesforce org, you must be [authorized](https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_auth.htm) in the target org.
|
|
42
48
|
One of the options to authorize an org is by running a CLI command and entering your credentials in the browser that automatically opens:
|
|
49
|
+
|
|
43
50
|
```
|
|
44
51
|
sf org login web
|
|
45
52
|
```
|
|
@@ -70,7 +77,7 @@ FLAGS
|
|
|
70
77
|
-e, --endpoint=<value> The URL PDF Butler endpoint for export. (Required)
|
|
71
78
|
|
|
72
79
|
-u, --unzip Use this flag to unzip the exported configuration. (Optional)
|
|
73
|
-
-b, --backend Use this flag to specify PDF Butler backend export. (Optional)
|
|
80
|
+
-b, --backend Use this flag to specify PDF Butler backend export. By default, this option is set to 'true,' enabling backend export. When specified, it would be set to 'false' to disable backend export. (Optional)
|
|
74
81
|
|
|
75
82
|
DESCRIPTION
|
|
76
83
|
Export DocConfigs and related DataSource files from your organization.
|
|
@@ -93,13 +100,7 @@ EXAMPLES
|
|
|
93
100
|
|
|
94
101
|
# Created:
|
|
95
102
|
Directory 'sfdc/export_folder_name'{
|
|
96
|
-
file 'docconfig.json'
|
|
97
|
-
Unziped directory 'archive_name'{
|
|
98
|
-
Directory 'ConfigTypes',
|
|
99
|
-
Directory 'DataSources',
|
|
100
|
-
file 'doc-config.json',
|
|
101
|
-
file 'TemplateName.docx'
|
|
102
|
-
}
|
|
103
|
+
file 'docconfig.json'
|
|
103
104
|
}
|
|
104
105
|
|
|
105
106
|
Run with --backend flag only
|
|
@@ -110,13 +111,7 @@ EXAMPLES
|
|
|
110
111
|
|
|
111
112
|
# Created:
|
|
112
113
|
Directory 'sfdc/export_folder_name'{
|
|
113
|
-
file 'docconfig.json'
|
|
114
|
-
zip file'archive_name.zip'{
|
|
115
|
-
Directory 'ConfigTypes',
|
|
116
|
-
Directory 'DataSources',
|
|
117
|
-
file 'doc-config.json',
|
|
118
|
-
file 'TemplateName.docx'
|
|
119
|
-
}
|
|
114
|
+
file 'docconfig.json'
|
|
120
115
|
}
|
|
121
116
|
|
|
122
117
|
Run with --unzip flag only
|
|
@@ -128,6 +123,12 @@ EXAMPLES
|
|
|
128
123
|
# Created:
|
|
129
124
|
Directory 'sfdc/export_folder_name'{
|
|
130
125
|
file 'docconfig.json',
|
|
126
|
+
Unziped directory 'archive_name'{
|
|
127
|
+
Directory 'ConfigTypes',
|
|
128
|
+
Directory 'DataSources',
|
|
129
|
+
file 'doc-config.json',
|
|
130
|
+
file 'TemplateName.docx'
|
|
131
|
+
}
|
|
131
132
|
}
|
|
132
133
|
|
|
133
134
|
Run without optional flags
|
|
@@ -139,8 +140,11 @@ EXAMPLES
|
|
|
139
140
|
# Created:
|
|
140
141
|
Directory 'sfdc/export_folder_name'{
|
|
141
142
|
file 'docconfig.json',
|
|
142
|
-
zip file
|
|
143
|
-
|
|
143
|
+
zip file'archive_name.zip'{
|
|
144
|
+
Directory 'ConfigTypes',
|
|
145
|
+
Directory 'DataSources',
|
|
146
|
+
file 'doc-config.json',
|
|
147
|
+
file 'TemplateName.docx'
|
|
144
148
|
}
|
|
145
149
|
}
|
|
146
150
|
|
|
@@ -155,7 +159,7 @@ FLAG DESCRIPTIONS
|
|
|
155
159
|
|
|
156
160
|
-o, --out <value>
|
|
157
161
|
Specifies the path to the folder with the exported configuration and the archive or folder name for data sources. By default, a sfdc folder is created which will contain folders with exported files.
|
|
158
|
-
For example, if the flag is defined with the following values '-o export/out', the result will be the following path: ./sfdc/export/out .
|
|
162
|
+
For example, if the flag is defined with the following values '-o export/out', the result will be the following path: ./sfdc/export/out .
|
|
159
163
|
This flag is required to determine where the exported configuration will be saved.
|
|
160
164
|
|
|
161
165
|
-s, --stage <value>
|
|
@@ -20,7 +20,7 @@ class ButlerPbExport extends sf_plugins_core_1.SfCommand {
|
|
|
20
20
|
const docConfigResponse = await connection.apex.get(`/cadmus_core/DocConfig/Export2/${flags.id}`);
|
|
21
21
|
let zip;
|
|
22
22
|
let result = Buffer.from('');
|
|
23
|
-
if (flags.backend) {
|
|
23
|
+
if (!flags.backend) {
|
|
24
24
|
const auth = flags['auth-env-var'];
|
|
25
25
|
let base64Auth = auth;
|
|
26
26
|
if (auth?.indexOf(':')) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"export.js","sourceRoot":"","sources":["../../../../src/commands/butler/pb/export.ts"],"names":[],"mappings":";;AAAA,2BAAoC;AACpC,6BAA8B;AAC9B,iEAA+D;AAC/D,2CAAkE;AAClE,kCAAmC;AACnC,6BAAsB;AAEtB,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,yFAAyF;AACzF,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,0BAA0B,EAAE,kBAAkB,CAAC,CAAC;AAMvF,MAAqB,cAAe,SAAQ,2BAAiB;IAkDpD,KAAK,CAAC,GAAG;QACd,MAAM,EAAE,KAAK,EAAE,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AqB,CAAC;QACnD,IAAI,EAAE,GAAG;QACT,QAAQ,EAAE,IAAI;KACf,CAAC;IACF,KAAK,EAAE,uBAAK,CAAC,OAAO,CAAC;QACnB,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,qBAAqB,CAAC;QACnD,IAAI,EAAE,GAAG;KACV,CAAC;CACH,CAAC;kBAhDiB,cAAc"}
|
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.9",
|
|
5
5
|
"script": {
|
|
6
6
|
"postinstall": "sf plugins link @pdfbutler/migration-cli"
|
|
7
7
|
},
|
|
@@ -62,7 +62,8 @@
|
|
|
62
62
|
"salesforcedx",
|
|
63
63
|
"sfdx-plugin",
|
|
64
64
|
"sf-plugin",
|
|
65
|
-
"sf"
|
|
65
|
+
"sf",
|
|
66
|
+
"pdfbutler"
|
|
66
67
|
],
|
|
67
68
|
"license": "BSD-3-Clause",
|
|
68
69
|
"main": "lib/index.js",
|