@@ -87,20 +87,20 @@ Happy debugging!
8787
8888<!-- commands -->
8989
90- - [ ` sfdx apex: get: log` ] ( #sfdx-apexgetlog )
91- - [ ` sfdx apex: get: test` ] ( #sfdx-apexgettest )
92- - [ ` sfdx apex: list: log` ] ( #sfdx-apexlistlog )
93- - [ ` sfdx apex: run` ] ( #sfdx-apexrun )
94- - [ ` sfdx apex: run: test` ] ( #sfdx-apexruntest )
95- - [ ` sfdx apex: tail: log` ] ( #sfdx-apextaillog )
90+ - [ ` sf apex get log` ] ( #sf-apex-get-log )
91+ - [ ` sf apex get test` ] ( #sf-apex-get-test )
92+ - [ ` sf apex list log` ] ( #sf-apex-list-log )
93+ - [ ` sf apex run` ] ( #sf-apex-run )
94+ - [ ` sf apex run test` ] ( #sf-apex-run-test )
95+ - [ ` sf apex tail log` ] ( #sf-apex-tail-log )
9696
97- ## ` sfdx apex: get: log`
97+ ## ` sf apex get log`
9898
9999Fetch the specified log or given number of most recent logs from the org.
100100
101101```
102102USAGE
103- $ sfdx apex: get: log -o <value> [--json] [--api-version <value>] [-i <value>] [-n <value>] [-d <value>]
103+ $ sf apex get log -o <value> [--json] [--api-version <value>] [-i <value>] [-n <value>] [-d <value>]
104104
105105FLAGS
106106 -d, --output-dir=<value> Directory for saving the log files.
@@ -115,28 +115,28 @@ GLOBAL FLAGS
115115DESCRIPTION
116116 Fetch the specified log or given number of most recent logs from the org.
117117
118- To get the IDs for your debug logs, run "sfdx apex log list". Executing this command without flags returns the most
118+ To get the IDs for your debug logs, run "sf apex log list". Executing this command without flags returns the most
119119 recent log.
120120
121121ALIASES
122- $ sfdx force: apex: log: get
122+ $ sf force apex log get
123123
124124EXAMPLES
125125 Fetch the log in your default org using an ID:
126126
127- $ sfdx apex: get: log --log-id <log id>
127+ $ sf apex get log --log-id <log id>
128128
129129 Fetch the log in the org with the specified username using an ID:
130130
131- $ sfdx apex: get: log --log-id <log id> --target-org [email protected] 131+ $ sf apex get log --log-id <log id> --target-org [email protected] 132132
133133 Fetch the two most recent logs in your default org:
134134
135- $ sfdx apex: get: log --number 2
135+ $ sf apex get log --number 2
136136
137137 Similar to previous example, but save the two log files in the specified directory:
138138
139- $ sfdx apex: get: log --output-dir /Users/sfdxUser/logs --number 2
139+ $ sf apex get log --output-dir /Users/sfdxUser/logs --number 2
140140
141141FLAG DESCRIPTIONS
142142 -d, --output-dir=<value> Directory for saving the log files.
@@ -145,15 +145,15 @@ FLAG DESCRIPTIONS
145145 directory.
146146```
147147
148- _ See code: [ src/commands/apex/get/log.ts] ( https://github.com/salesforcecli/plugin-apex/blob/2.3.20 /src/commands/apex/get/log.ts ) _
148+ _ See code: [ src/commands/apex/get/log.ts] ( https://github.com/salesforcecli/plugin-apex/blob/2.3.21 /src/commands/apex/get/log.ts ) _
149149
150- ## ` sfdx apex: get: test`
150+ ## ` sf apex get test`
151151
152152Display test results for a specific asynchronous test run.
153153
154154```
155155USAGE
156- $ sfdx apex: get: test -o <value> -i <value> [--json] [--api-version <value>] [-c] [-d <value>] [-r
156+ $ sf apex get test -o <value> -i <value> [--json] [--api-version <value>] [-c] [-d <value>] [-r
157157 human|tap|junit|json]
158158
159159FLAGS
@@ -172,40 +172,40 @@ DESCRIPTION
172172 Display test results for a specific asynchronous test run.
173173
174174 Provide a test run ID to display test results for an enqueued or completed asynchronous test run. The test run ID is
175- displayed after running the "sfdx apex test run" command.
175+ displayed after running the "sf apex test run" command.
176176
177177ALIASES
178- $ sfdx force: apex: test: report
178+ $ sf force apex test report
179179
180180EXAMPLES
181181 Display test results for your default org using a test run ID:
182182
183- $ sfdx apex: get: test --test-run-id <test run id>
183+ $ sf apex get test --test-run-id <test run id>
184184
185185 Similar to previous example, but output the result in JUnit format:
186186
187- $ sfdx apex: get: test --test-run-id <test run id> --result-format junit
187+ $ sf apex get test --test-run-id <test run id> --result-format junit
188188
189189 Also retrieve code coverage results and output in JSON format:
190190
191- $ sfdx apex: get: test --test-run-id <test run id> --code-coverage --json
191+ $ sf apex get test --test-run-id <test run id> --code-coverage --json
192192
193193 Specify a directory in which to save the test results from the org with the specified username (rather than your
194194 default org):
195195
196- $ sfdx apex: get: test --test-run-id <test run id> --code-coverage --output-dir <path to outputdir> --target-org \
196+ $ sf apex get test --test-run-id <test run id> --code-coverage --output-dir <path to outputdir> --target-org \
197197 me@myorg',
198198```
199199
200- _ See code: [ src/commands/apex/get/test.ts] ( https://github.com/salesforcecli/plugin-apex/blob/2.3.20 /src/commands/apex/get/test.ts ) _
200+ _ See code: [ src/commands/apex/get/test.ts] ( https://github.com/salesforcecli/plugin-apex/blob/2.3.21 /src/commands/apex/get/test.ts ) _
201201
202- ## ` sfdx apex: list: log`
202+ ## ` sf apex list log`
203203
204204Display a list of IDs and general information about debug logs.
205205
206206```
207207USAGE
208- $ sfdx apex: list: log -o <value> [--json] [--api-version <value>]
208+ $ sf apex list log -o <value> [--json] [--api-version <value>]
209209
210210FLAGS
211211 -o, --target-org=<value> (required) Username or alias of the target org.
@@ -219,31 +219,31 @@ DESCRIPTION
219219
220220 Run this command in a project to list the IDs and general information for all debug logs in your default org.
221221
222- To fetch a specific log from your org, obtain the ID from this command's output, then run the “sfdx apex log get”
222+ To fetch a specific log from your org, obtain the ID from this command's output, then run the “sf apex log get”
223223 command.
224224
225225ALIASES
226- $ sfdx force: apex: log: list
226+ $ sf force apex log list
227227
228228EXAMPLES
229229 List the IDs and information about the debug logs in your default org:
230230
231- $ sfdx apex: list: log
231+ $ sf apex list log
232232
233233 Similar to previous example, but use the org with the specified username:
234234
235- $ sfdx apex: list: log --target-org [email protected] 235+ $ sf apex list log --target-org [email protected] 236236```
237237
238- _ See code: [ src/commands/apex/list/log.ts] ( https://github.com/salesforcecli/plugin-apex/blob/2.3.20 /src/commands/apex/list/log.ts ) _
238+ _ See code: [ src/commands/apex/list/log.ts] ( https://github.com/salesforcecli/plugin-apex/blob/2.3.21 /src/commands/apex/list/log.ts ) _
239239
240- ## ` sfdx apex: run`
240+ ## ` sf apex run`
241241
242242Execute anonymous Apex code entered on the command line or from a local file.
243243
244244```
245245USAGE
246- $ sfdx apex: run -o <value> [--json] [--api-version <value>] [-f <value>]
246+ $ sf apex run -o <value> [--json] [--api-version <value>] [-f <value>]
247247
248248FLAGS
249249 -f, --file=<value> Path to a local file that contains Apex code.
@@ -263,32 +263,32 @@ DESCRIPTION
263263 For more information, see "Anonymous Blocks" in the Apex Developer Guide.
264264
265265ALIASES
266- $ sfdx force: apex: execute
266+ $ sf force apex execute
267267
268268EXAMPLES
269269 Execute the Apex code that's in the ~/test.apex file in the org with the specified username:
270270
271- $ sfdx apex: run --target-org [email protected] --file ~/test.apex 271+ $ sf apex run --target-org [email protected] --file ~/test.apex 272272
273273 Similar to previous example, but execute the code in your default org:
274274
275- $ sfdx apex: run --file ~/test.apex
275+ $ sf apex run --file ~/test.apex
276276
277277 Run the command with no flags to start interactive mode; the code will execute in your default org when you exit. At
278278 the prompt, start type Apex code and press the Enter key after each line. Press CTRL+D when finished.
279279
280- $ sfdx apex: run
280+ $ sf apex run
281281```
282282
283- _ See code: [ src/commands/apex/run.ts] ( https://github.com/salesforcecli/plugin-apex/blob/2.3.20 /src/commands/apex/run.ts ) _
283+ _ See code: [ src/commands/apex/run.ts] ( https://github.com/salesforcecli/plugin-apex/blob/2.3.21 /src/commands/apex/run.ts ) _
284284
285- ## ` sfdx apex: run: test`
285+ ## ` sf apex run test`
286286
287287Invoke Apex tests in an org.
288288
289289```
290290USAGE
291- $ sfdx apex: run: test -o <value> [--json] [--api-version <value>] [-d <value>] [-l
291+ $ sf apex run test -o <value> [--json] [--api-version <value>] [-d <value>] [-l
292292 RunLocalTests|RunAllTestsInOrg|RunSpecifiedTests] [-n <value> | -s <value> | -t <value>] [-r human|tap|junit|json]
293293 [-w <value>] [-y] [-v -c]
294294
@@ -326,37 +326,37 @@ DESCRIPTION
326326
327327 By default, Apex tests run asynchronously and immediately return a test run ID. You can use the --wait flag to specify
328328 the number of minutes to wait; if the tests finish in that timeframe, the command displays the results. If the tests
329- haven't finished by the end of the wait time, the command displays a test run ID. Use the "sfdx apex get test
329+ haven't finished by the end of the wait time, the command displays a test run ID. Use the "sf apex get test
330330 --test-run-id" command to get the results.
331331
332332 NOTE: The testRunCoverage value (JSON and JUnit result formats) is a percentage of the covered lines and total lines
333333 from all the Apex classes evaluated by the tests in this run.
334334
335335ALIASES
336- $ sfdx force: apex: test: run
336+ $ sf force apex test run
337337
338338EXAMPLES
339339 Run all Apex tests and suites in your default org:
340340
341- $ sfdx apex: run: test
341+ $ sf apex run test
342342
343343 Run the specified Apex test classes in your default org and display results in human-readable form:
344344
345- $ sfdx apex: run: test --class-names MyClassTest --class-names MyOtherClassTest --result-format human
345+ $ sf apex run test --class-names MyClassTest --class-names MyOtherClassTest --result-format human
346346
347347 Run the specified Apex test suites in your default org and include code coverage results and additional details:
348348
349- $ sfdx apex: run: test --suite-names MySuite --suite-names MyOtherSuite --code-coverage --detailed-coverage
349+ $ sf apex run test --suite-names MySuite --suite-names MyOtherSuite --code-coverage --detailed-coverage
350350
351351 Run the specified Apex tests in your default org and display results in human-readable output:
352352
353- $ sfdx apex: run: test --tests MyClassTest.testCoolFeature --tests MyClassTest.testAwesomeFeature --tests \
353+ $ sf apex run test --tests MyClassTest.testCoolFeature --tests MyClassTest.testAwesomeFeature --tests \
354354 AnotherClassTest --tests namespace.TheirClassTest.testThis --result-format human
355355
356356 Run all tests in the org with the specified username with the specified test level; save the output to the specified
357357 directory:
358358
359- $ sfdx apex: run: test --test-level RunLocalTests --output-dir <path to outputdir> --target-org [email protected] 359+ $ sf apex run test --test-level RunLocalTests --output-dir <path to outputdir> --target-org [email protected] 360360
361361FLAG DESCRIPTIONS
362362 -l, --test-level=RunLocalTests|RunAllTestsInOrg|RunSpecifiedTests Level of tests to run; default is RunLocalTests.
@@ -386,15 +386,15 @@ FLAG DESCRIPTIONS
386386 --tests Test1 --tests Test2
387387```
388388
389- _ See code: [ src/commands/apex/run/test.ts] ( https://github.com/salesforcecli/plugin-apex/blob/2.3.20 /src/commands/apex/run/test.ts ) _
389+ _ See code: [ src/commands/apex/run/test.ts] ( https://github.com/salesforcecli/plugin-apex/blob/2.3.21 /src/commands/apex/run/test.ts ) _
390390
391- ## ` sfdx apex: tail: log`
391+ ## ` sf apex tail log`
392392
393393Activate debug logging and display logs in the terminal.
394394
395395```
396396USAGE
397- $ sfdx apex: tail: log -o <value> [--json] [--api-version <value>] [-c] [-d <value> | -s]
397+ $ sf apex tail log -o <value> [--json] [--api-version <value>] [-c] [-d <value> | -s]
398398
399399FLAGS
400400 -c, --color Apply default colors to noteworthy log lines.
@@ -412,22 +412,22 @@ DESCRIPTION
412412 You can also pipe the logs to a file.
413413
414414ALIASES
415- $ sfdx force: apex: log: tail
415+ $ sf force apex log tail
416416
417417EXAMPLES
418418 Activate debug logging:
419419
420- $ sfdx apex: tail: log
420+ $ sf apex tail log
421421
422422 Specify a debug level:
423423
424- $ sfdx apex: tail: log --debug-level MyDebugLevel
424+ $ sf apex tail log --debug-level MyDebugLevel
425425
426426 Skip the trace flag setup and apply default colors:
427427
428- $ sfdx apex: tail: log --color --skip-trace-flag
428+ $ sf apex tail log --color --skip-trace-flag
429429```
430430
431- _ See code: [ src/commands/apex/tail/log.ts] ( https://github.com/salesforcecli/plugin-apex/blob/2.3.20 /src/commands/apex/tail/log.ts ) _
431+ _ See code: [ src/commands/apex/tail/log.ts] ( https://github.com/salesforcecli/plugin-apex/blob/2.3.21 /src/commands/apex/tail/log.ts ) _
432432
433433<!-- commandsstop -->
0 commit comments