UNPKG

31.1 kBMarkdownView Raw
1fonteva-sfdx
2============
3
4
5
6[![Version](https://img.shields.io/npm/v/fonteva-sfdx.svg)](https://npmjs.org/package/fonteva-sfdx)
7[![CircleCI](https://circleci.com/gh/parmarg/fonteva-sfdx/tree/master.svg?style=shield)](https://circleci.com/gh/parmarg/fonteva-sfdx/tree/master)
8[![Appveyor CI](https://ci.appveyor.com/api/projects/status/github/parmarg/fonteva-sfdx?branch=master&svg=true)](https://ci.appveyor.com/project/heroku/fonteva-sfdx/branch/master)
9[![Codecov](https://codecov.io/gh/parmarg/fonteva-sfdx/branch/master/graph/badge.svg)](https://codecov.io/gh/parmarg/fonteva-sfdx)
10[![Greenkeeper](https://badges.greenkeeper.io/parmarg/fonteva-sfdx.svg)](https://greenkeeper.io/)
11[![Known Vulnerabilities](https://snyk.io/test/github/parmarg/fonteva-sfdx/badge.svg)](https://snyk.io/test/github/parmarg/fonteva-sfdx)
12[![Downloads/week](https://img.shields.io/npm/dw/fonteva-sfdx.svg)](https://npmjs.org/package/fonteva-sfdx)
13[![License](https://img.shields.io/npm/l/fonteva-sfdx.svg)](https://github.com/parmarg/fonteva-sfdx/blob/master/package.json)
14
15<!-- toc -->
16* [Debugging your plugin](#debugging-your-plugin)
17<!-- tocstop -->
18<!-- install -->
19<!-- usage -->
20```sh-session
21$ npm install -g fonteva-sfdx
22$ sfdx COMMAND
23running command...
24$ sfdx (-v|--version|version)
25fonteva-sfdx/0.3.14 darwin-x64 node-v13.8.0
26$ sfdx --help [COMMAND]
27USAGE
28 $ sfdx COMMAND
29...
30```
31<!-- usagestop -->
32<!-- commands -->
33* [`sfdx fonteva:build:devorg -p <string> -t <string> -s <string> [-h] [-d] [-c] [-v <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-fontevabuilddevorg--p-string--t-string--s-string--h--d--c--v-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
34* [`sfdx fonteva:community:apply [-v <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-fontevacommunityapply--v-string--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
35* [`sfdx fonteva:deploy [-m <string>] [-p <string>] [-x <string>] [-q <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-fontevadeploy--m-string--p-string--x-string--q-string--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
36* [`sfdx fonteva:fls:run [-p <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-fontevaflsrun--p-string--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
37* [`sfdx fonteva:install:dependencies [-p <string>] [-d] [-P <string>] [-c] [--dryrun] [-v <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-fontevainstalldependencies--p-string--d--p-string--c---dryrun--v-string--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
38* [`sfdx fonteva:layouts:apply -p <string> [-v <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-fontevalayoutsapply--p-string--v-string--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
39* [`sfdx fonteva:ns:swap [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-fontevansswap--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
40* [`sfdx fonteva:ns:swapSfdx [-u] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-fontevansswapsfdx--u--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
41* [`sfdx fonteva:push [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-fontevapush--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
42* [`sfdx fonteva:sfpm:copy [-n <string>] [-d] [-v] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-fontevasfpmcopy--n-string--d--v---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
43* [`sfdx fonteva:sfpm:install [-s] [-n <string>] [-k] [-d] [-v] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-fontevasfpminstall--s--n-string--k--d--v---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
44* [`sfdx fonteva:sharingSets:deploy [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-fontevasharingsetsdeploy--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
45* [`sfdx fonteva:swapAndDeploy [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-fontevaswapanddeploy--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
46
47## `sfdx fonteva:build:devorg -p <string> -t <string> -s <string> [-h] [-d] [-c] [-v <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
48
49Setup an org for development. Deploy dependent packages, FLS, and deploy code.
50
51```
52USAGE
53 $ sfdx fonteva:build:devorg -p <string> -t <string> -s <string> [-h] [-d] [-c] [-v <string>] [--apiversion <string>]
54 [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
55
56OPTIONS
57 -c, --allcoredeps All Core Deps
58 -d, --isproduction If Is Production
59 -h, --pushsource Push Source
60
61 -p, --packagename=packagename (required) Package to install deps
62 for
63
64 -s, --scratchorgconfig=scratchorgconfig (required) Scratch Org Config
65
66 -t, --username=username (required) target user name
67
68 -v, --targetdevhubusername=targetdevhubusername username or alias for the dev hub
69 org; overrides default dev hub org
70
71 --apiversion=apiversion override the api version used for
72 api requests made by this command
73
74 --json format output as json
75
76 --loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
77 this command invocation
78
79EXAMPLE
80 $ sfdx install:dependencies --targetusername myOrg@example.com --targetdevhubusername devhub@org.com
81 Hello world! This is org: MyOrg and I will be around until Tue Mar 20 2018!
82 My hub org id is: 00Dxx000000001234
83```
84
85_See code: [src/commands/fonteva/build/devorg.ts](https://github.com/Fonteva/sfdx-plugin/blob/v0.3.14/src/commands/fonteva/build/devorg.ts)_
86
87## `sfdx fonteva:community:apply [-v <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
88
89Configure the community in an LTE DevOrg
90
91```
92USAGE
93 $ sfdx fonteva:community:apply [-v <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel
94 trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
95
96OPTIONS
97 -u, --targetusername=targetusername username or alias for the target
98 org; overrides default target org
99
100 -v, --targetdevhubusername=targetdevhubusername username or alias for the dev hub
101 org; overrides default dev hub org
102
103 --apiversion=apiversion override the api version used for
104 api requests made by this command
105
106 --json format output as json
107
108 --loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
109 this command invocation
110```
111
112_See code: [src/commands/fonteva/community/apply.ts](https://github.com/Fonteva/sfdx-plugin/blob/v0.3.14/src/commands/fonteva/community/apply.ts)_
113
114## `sfdx fonteva:deploy [-m <string>] [-p <string>] [-x <string>] [-q <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
115
116Meta-target for installs. Runs sfpm, then deploy
117
118```
119USAGE
120 $ sfdx fonteva:deploy [-m <string>] [-p <string>] [-x <string>] [-q <string>] [-u <string>] [--apiversion <string>]
121 [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
122
123OPTIONS
124 -m, --metadata=metadata comma-separated list of metadata
125 component names
126
127 -p, --sourcepath=sourcepath comma-separated list of paths to the
128 local source files to deploy
129
130 -q, --validateddeployrequestid=validateddeployrequestid request ID of the validated
131 deployment to run a Quick Deploy
132
133 -u, --targetusername=targetusername username or alias for the target
134 org; overrides default target org
135
136 -x, --manifest=manifest file path for manifest (package.xml)
137 of components to deploy
138
139 --apiversion=apiversion override the api version used for
140 api requests made by this command
141
142 --json format output as json
143
144 --loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
145 this command invocation
146```
147
148_See code: [src/commands/fonteva/deploy.ts](https://github.com/Fonteva/sfdx-plugin/blob/v0.3.14/src/commands/fonteva/deploy.ts)_
149
150## `sfdx fonteva:fls:run [-p <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
151
152Run the FLS utility, granting access to Fonteva custom objects.
153
154```
155USAGE
156 $ sfdx fonteva:fls:run [-p <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel
157 trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
158
159OPTIONS
160 -p, --profile=profile Profile
161
162 -u, --targetusername=targetusername username or alias for the target
163 org; overrides default target org
164
165 --apiversion=apiversion override the api version used for
166 api requests made by this command
167
168 --json format output as json
169
170 --loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
171 this command invocation
172
173EXAMPLE
174 $ sfdx fonteva:fls:run --targetusername=myOrg@example.com
175```
176
177_See code: [src/commands/fonteva/fls/run.ts](https://github.com/Fonteva/sfdx-plugin/blob/v0.3.14/src/commands/fonteva/fls/run.ts)_
178
179## `sfdx fonteva:install:dependencies [-p <string>] [-d] [-P <string>] [-c] [--dryrun] [-v <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
180
181Install dependent packages.
182
183```
184USAGE
185 $ sfdx fonteva:install:dependencies [-p <string>] [-d] [-P <string>] [-c] [--dryrun] [-v <string>] [-u <string>]
186 [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
187
188ARGUMENTS
189 PACKAGE (Optional) The Fonteva package to install (e.g. 'Framework')
190
191OPTIONS
192 -P, --patch=patch If Is Patch - provide the patch args
193 (e.g. --patch=2019.1)
194
195 -c, --allcoredeps All Core Deps
196
197 -d, --isproduction If Is Production
198
199 -p, --packagename=packagename Package to install deps for (e.g.
200 "OrderApi" will install PagesApi &
201 Framework)
202
203 -u, --targetusername=targetusername username or alias for the target
204 org; overrides default target org
205
206 -v, --targetdevhubusername=targetdevhubusername username or alias for the dev hub
207 org; overrides default dev hub org
208
209 --apiversion=apiversion override the api version used for
210 api requests made by this command
211
212 --dryrun Dry Run - don't install anything
213
214 --json format output as json
215
216 --loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
217 this command invocation
218
219EXAMPLE
220 $ sfdx install:dependencies --targetusername myOrg@example.com --targetdevhubusername devhub@org.com
221 Hello world! This is org: MyOrg and I will be around until Tue Mar 20 2018!
222 My hub org id is: 00Dxx000000001234
223```
224
225_See code: [src/commands/fonteva/install/dependencies.ts](https://github.com/Fonteva/sfdx-plugin/blob/v0.3.14/src/commands/fonteva/install/dependencies.ts)_
226
227## `sfdx fonteva:layouts:apply -p <string> [-v <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
228
229Apply useful layouts for Fonteva custom objects.
230
231```
232USAGE
233 $ sfdx fonteva:layouts:apply -p <string> [-v <string>] [-u <string>] [--apiversion <string>] [--json] [--loglevel
234 trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
235
236OPTIONS
237 -p, --packagename=packagename (required) Package to install
238 layouts for
239
240 -u, --targetusername=targetusername username or alias for the target
241 org; overrides default target org
242
243 -v, --targetdevhubusername=targetdevhubusername username or alias for the dev hub
244 org; overrides default dev hub org
245
246 --apiversion=apiversion override the api version used for
247 api requests made by this command
248
249 --json format output as json
250
251 --loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
252 this command invocation
253
254EXAMPLE
255 $ sfdx install:dependencies --targetusername myOrg@example.com --targetdevhubusername devhub@org.com
256 Hello world! This is org: MyOrg and I will be around until Tue Mar 20 2018!
257 My hub org id is: 00Dxx000000001234
258```
259
260_See code: [src/commands/fonteva/layouts/apply.ts](https://github.com/Fonteva/sfdx-plugin/blob/v0.3.14/src/commands/fonteva/layouts/apply.ts)_
261
262## `sfdx fonteva:ns:swap [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
263
264Do a namespace swap for a source-format project
265
266```
267USAGE
268 $ sfdx fonteva:ns:swap [-u <string>] [--apiversion <string>] [--json] [--loglevel
269 trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
270
271ARGUMENTS
272 NS The namespace to swap to (takes precedence over the detected org namespace)
273
274OPTIONS
275 -u, --targetusername=targetusername username or alias for the target
276 org; overrides default target org
277
278 --apiversion=apiversion override the api version used for
279 api requests made by this command
280
281 --json format output as json
282
283 --loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
284 this command invocation
285
286EXAMPLES
287 $ sfdx fonteva:ns:swap qa1234 // swaps to namespace "qa1234"
288 $ sfdx fonteva:ns:swap -u devorg123 // connects to the org specified, determines the namespace, then swaps
289```
290
291_See code: [src/commands/fonteva/ns/swap.ts](https://github.com/Fonteva/sfdx-plugin/blob/v0.3.14/src/commands/fonteva/ns/swap.ts)_
292
293## `sfdx fonteva:ns:swapSfdx [-u] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
294
295Do a namespace swap for a source-format project
296
297```
298USAGE
299 $ sfdx fonteva:ns:swapSfdx [-u] [-u <string>] [--apiversion <string>] [--json] [--loglevel
300 trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
301
302ARGUMENTS
303 NS The namespace to swap to (takes precedence over the detected org namespace)
304
305OPTIONS
306 -u, --targetusername=targetusername username or alias for the target
307 org; overrides default target org
308
309 -u, --unpackaged Deploy unpackaged code, not the main
310 codebase.
311
312 --apiversion=apiversion override the api version used for
313 api requests made by this command
314
315 --json format output as json
316
317 --loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
318 this command invocation
319
320EXAMPLES
321 $ sfdx fonteva:ns:swap qa1234 // swaps to namespace "qa1234"
322 $ sfdx fonteva:ns:swap -u devorg123 // connects to the org specified, determines the namespace, then swaps
323```
324
325_See code: [src/commands/fonteva/ns/swapSfdx.ts](https://github.com/Fonteva/sfdx-plugin/blob/v0.3.14/src/commands/fonteva/ns/swapSfdx.ts)_
326
327## `sfdx fonteva:push [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
328
329Meta-target for pushing code. Runs sfpm, then deploy
330
331```
332USAGE
333 $ sfdx fonteva:push [-u <string>] [--apiversion <string>] [--json] [--loglevel
334 trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
335
336OPTIONS
337 -u, --targetusername=targetusername username or alias for the target
338 org; overrides default target org
339
340 --apiversion=apiversion override the api version used for
341 api requests made by this command
342
343 --json format output as json
344
345 --loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
346 this command invocation
347```
348
349_See code: [src/commands/fonteva/push.ts](https://github.com/Fonteva/sfdx-plugin/blob/v0.3.14/src/commands/fonteva/push.ts)_
350
351## `sfdx fonteva:sfpm:copy [-n <string>] [-d] [-v] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
352
353Salesforce Package Manager
354
355```
356USAGE
357 $ sfdx fonteva:sfpm:copy [-n <string>] [-d] [-v] [--json] [--loglevel
358 trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
359
360OPTIONS
361 -d, --debug debug mode - don't clean up & print
362 console messages
363
364 -n, --namespace=namespace passed on to webpack as
365 output.library. Use to namespace
366 javascript libraries.
367
368 -v, --verbose verbose mode - don't clean up &
369 print _extra_ console messages
370
371 --json format output as json
372
373 --loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
374 this command invocation
375```
376
377_See code: [src/commands/fonteva/sfpm/copy.ts](https://github.com/Fonteva/sfdx-plugin/blob/v0.3.14/src/commands/fonteva/sfpm/copy.ts)_
378
379## `sfdx fonteva:sfpm:install [-s] [-n <string>] [-k] [-d] [-v] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
380
381Salesforce Package Manager
382
383```
384USAGE
385 $ sfdx fonteva:sfpm:install [-s] [-n <string>] [-k] [-d] [-v] [--json] [--loglevel
386 trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
387
388OPTIONS
389 -d, --debug debug mode - don't clean up & print
390 console messages
391
392 -k, --skip-npm Skip the npm step. You probably
393 shouldn't set this
394
395 -n, --namespace=namespace passed on to webpack as
396 output.library. Use to namespace
397 javascript libraries.
398
399 -s, --save pass-thru to npm
400
401 -v, --verbose verbose mode - don't clean up &
402 print _extra_ console messages
403
404 --json format output as json
405
406 --loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
407 this command invocation
408```
409
410_See code: [src/commands/fonteva/sfpm/install.ts](https://github.com/Fonteva/sfdx-plugin/blob/v0.3.14/src/commands/fonteva/sfpm/install.ts)_
411
412## `sfdx fonteva:sharingSets:deploy [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
413
414Deploys sharing sets to your org
415
416```
417USAGE
418 $ sfdx fonteva:sharingSets:deploy [-u <string>] [--apiversion <string>] [--json] [--loglevel
419 trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
420
421OPTIONS
422 -u, --targetusername=targetusername username or alias for the target
423 org; overrides default target org
424
425 --apiversion=apiversion override the api version used for
426 api requests made by this command
427
428 --json format output as json
429
430 --loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
431 this command invocation
432```
433
434_See code: [src/commands/fonteva/sharingSets/deploy.ts](https://github.com/Fonteva/sfdx-plugin/blob/v0.3.14/src/commands/fonteva/sharingSets/deploy.ts)_
435
436## `sfdx fonteva:swapAndDeploy [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`
437
438Do a namespace swap for a source-format project and deploy
439
440```
441USAGE
442 $ sfdx fonteva:swapAndDeploy [-u <string>] [--apiversion <string>] [--json] [--loglevel
443 trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
444
445OPTIONS
446 -u, --targetusername=targetusername username or alias for the target
447 org; overrides default target org
448
449 --apiversion=apiversion override the api version used for
450 api requests made by this command
451
452 --json format output as json
453
454 --loglevel=(trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL) [default: warn] logging level for
455 this command invocation
456
457EXAMPLE
458 $ sfdx fonteva:swapAndDeploy -u devorg123 // connects to the org specified, determines the namespace, swaps namespace
459 into a temp folder, then deploys
460```
461
462_See code: [src/commands/fonteva/swapAndDeploy.ts](https://github.com/Fonteva/sfdx-plugin/blob/v0.3.14/src/commands/fonteva/swapAndDeploy.ts)_
463<!-- commandsstop -->
464<!-- debugging-your-plugin -->
465# Debugging your plugin
466We recommend using the Visual Studio Code (VS Code) IDE for your plugin development. Included in the `.vscode` directory of this plugin is a `launch.json` config file, which allows you to attach a debugger to the node process when running your commands.
467
468To debug the `hello:org` command:
4691. Start the inspector
470
471If you linked your plugin to the sfdx cli, call your command with the `dev-suspend` switch:
472```sh-session
473$ sfdx hello:org -u myOrg@example.com --dev-suspend
474```
475
476Alternatively, to call your command using the `bin/run` script, set the `NODE_OPTIONS` environment variable to `--inspect-brk` when starting the debugger:
477```sh-session
478$ NODE_OPTIONS=--inspect-brk bin/run hello:org -u myOrg@example.com
479```
480
4812. Set some breakpoints in your command code
4823. Click on the Debug icon in the Activity Bar on the side of VS Code to open up the Debug view.
4834. In the upper left hand corner of VS Code, verify that the "Attach to Remote" launch configuration has been chosen.
4845. Hit the green play button to the left of the "Attach to Remote" launch configuration window. The debugger should now be suspended on the first line of the program.
4856. Hit the green play button at the top middle of VS Code (this play button will be to the right of the play button that you clicked in step #5).
486<br><img src=".images/vscodeScreenshot.png" width="480" height="278"><br>
487Congrats, you are debugging!