@autifyhq/autify-cli 0.46.0 → 0.48.0

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
@@ -76,7 +76,7 @@ EXAMPLES
76
76
  $ autify connect access-point create --name NAME --web-workspace-id ID
77
77
  ```
78
78
 
79
- _See code: [src/commands/connect/access-point/create.ts](https://github.com/autifyhq/autify-cli/blob/v0.46.0/src/commands/connect/access-point/create.ts)_
79
+ _See code: [src/commands/connect/access-point/create.ts](https://github.com/autifyhq/autify-cli/blob/v0.48.0/src/commands/connect/access-point/create.ts)_
80
80
 
81
81
  ## `autify connect access-point set`
82
82
 
@@ -102,7 +102,7 @@ EXAMPLES
102
102
  $ autify connect access-point set --name=NAME < key.txt
103
103
  ```
104
104
 
105
- _See code: [src/commands/connect/access-point/set.ts](https://github.com/autifyhq/autify-cli/blob/v0.46.0/src/commands/connect/access-point/set.ts)_
105
+ _See code: [src/commands/connect/access-point/set.ts](https://github.com/autifyhq/autify-cli/blob/v0.48.0/src/commands/connect/access-point/set.ts)_
106
106
 
107
107
  ## `autify connect client install [VERSION]`
108
108
 
@@ -132,7 +132,7 @@ EXAMPLES
132
132
  $ autify connect client install stable
133
133
  ```
134
134
 
135
- _See code: [src/commands/connect/client/install.ts](https://github.com/autifyhq/autify-cli/blob/v0.46.0/src/commands/connect/client/install.ts)_
135
+ _See code: [src/commands/connect/client/install.ts](https://github.com/autifyhq/autify-cli/blob/v0.48.0/src/commands/connect/client/install.ts)_
136
136
 
137
137
  ## `autify connect client start`
138
138
 
@@ -166,7 +166,7 @@ EXAMPLES
166
166
  $ autify connect client start --web-workspace-id 000
167
167
  ```
168
168
 
169
- _See code: [src/commands/connect/client/start.ts](https://github.com/autifyhq/autify-cli/blob/v0.46.0/src/commands/connect/client/start.ts)_
169
+ _See code: [src/commands/connect/client/start.ts](https://github.com/autifyhq/autify-cli/blob/v0.48.0/src/commands/connect/client/start.ts)_
170
170
 
171
171
  ## `autify help [COMMAND]`
172
172
 
@@ -186,7 +186,7 @@ DESCRIPTION
186
186
  Display help for autify.
187
187
  ```
188
188
 
189
- _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.4/src/commands/help.ts)_
189
+ _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.7/src/commands/help.ts)_
190
190
 
191
191
  ## `autify mobile api describe-test-result`
192
192
 
@@ -207,7 +207,7 @@ EXAMPLES
207
207
  $ autify mobile api describe-test-result
208
208
  ```
209
209
 
210
- _See code: [src/commands/mobile/api/describe-test-result.ts](https://github.com/autifyhq/autify-cli/blob/v0.46.0/src/commands/mobile/api/describe-test-result.ts)_
210
+ _See code: [src/commands/mobile/api/describe-test-result.ts](https://github.com/autifyhq/autify-cli/blob/v0.48.0/src/commands/mobile/api/describe-test-result.ts)_
211
211
 
212
212
  ## `autify mobile api list-test-results`
213
213
 
@@ -231,7 +231,7 @@ EXAMPLES
231
231
  $ autify mobile api list-test-results
232
232
  ```
233
233
 
234
- _See code: [src/commands/mobile/api/list-test-results.ts](https://github.com/autifyhq/autify-cli/blob/v0.46.0/src/commands/mobile/api/list-test-results.ts)_
234
+ _See code: [src/commands/mobile/api/list-test-results.ts](https://github.com/autifyhq/autify-cli/blob/v0.48.0/src/commands/mobile/api/list-test-results.ts)_
235
235
 
236
236
  ## `autify mobile api run-test-plan`
237
237
 
@@ -242,7 +242,8 @@ USAGE
242
242
  $ autify mobile api run-test-plan --test-plan-id <value> --run-test-plan-request <value>
243
243
 
244
244
  FLAGS
245
- --run-test-plan-request=<value> (required) The build_id to execute the test plan.
245
+ --run-test-plan-request=<value> (required) A JSON object with the build_id to execute the test plan. e.g.
246
+ {"build_id":"string"}
246
247
  --test-plan-id=<value> (required) The ID of the test plan to run.
247
248
 
248
249
  DESCRIPTION
@@ -252,7 +253,7 @@ EXAMPLES
252
253
  $ autify mobile api run-test-plan
253
254
  ```
254
255
 
255
- _See code: [src/commands/mobile/api/run-test-plan.ts](https://github.com/autifyhq/autify-cli/blob/v0.46.0/src/commands/mobile/api/run-test-plan.ts)_
256
+ _See code: [src/commands/mobile/api/run-test-plan.ts](https://github.com/autifyhq/autify-cli/blob/v0.48.0/src/commands/mobile/api/run-test-plan.ts)_
256
257
 
257
258
  ## `autify mobile api upload-build`
258
259
 
@@ -273,7 +274,7 @@ EXAMPLES
273
274
  $ autify mobile api upload-build
274
275
  ```
275
276
 
276
- _See code: [src/commands/mobile/api/upload-build.ts](https://github.com/autifyhq/autify-cli/blob/v0.46.0/src/commands/mobile/api/upload-build.ts)_
277
+ _See code: [src/commands/mobile/api/upload-build.ts](https://github.com/autifyhq/autify-cli/blob/v0.48.0/src/commands/mobile/api/upload-build.ts)_
277
278
 
278
279
  ## `autify mobile auth login`
279
280
 
@@ -296,7 +297,7 @@ EXAMPLES
296
297
  $ autify mobile auth login < token.txt
297
298
  ```
298
299
 
299
- _See code: [src/commands/mobile/auth/login.ts](https://github.com/autifyhq/autify-cli/blob/v0.46.0/src/commands/mobile/auth/login.ts)_
300
+ _See code: [src/commands/mobile/auth/login.ts](https://github.com/autifyhq/autify-cli/blob/v0.48.0/src/commands/mobile/auth/login.ts)_
300
301
 
301
302
  ## `autify mobile build upload BUILD-PATH`
302
303
 
@@ -330,7 +331,7 @@ EXAMPLES
330
331
  $ autify mobile build upload --workspace-id AAA ./my.app --json
331
332
  ```
332
333
 
333
- _See code: [src/commands/mobile/build/upload.ts](https://github.com/autifyhq/autify-cli/blob/v0.46.0/src/commands/mobile/build/upload.ts)_
334
+ _See code: [src/commands/mobile/build/upload.ts](https://github.com/autifyhq/autify-cli/blob/v0.48.0/src/commands/mobile/build/upload.ts)_
334
335
 
335
336
  ## `autify mobile test run TEST-PLAN-URL`
336
337
 
@@ -370,7 +371,7 @@ EXAMPLES
370
371
  --timeout 600
371
372
  ```
372
373
 
373
- _See code: [src/commands/mobile/test/run.ts](https://github.com/autifyhq/autify-cli/blob/v0.46.0/src/commands/mobile/test/run.ts)_
374
+ _See code: [src/commands/mobile/test/run.ts](https://github.com/autifyhq/autify-cli/blob/v0.48.0/src/commands/mobile/test/run.ts)_
374
375
 
375
376
  ## `autify mobile test wait TEST-RESULT-URL`
376
377
 
@@ -394,7 +395,7 @@ EXAMPLES
394
395
  $ autify mobile test wait https://mobile-app.autify.com/projects/AAA/results/BBB
395
396
  ```
396
397
 
397
- _See code: [src/commands/mobile/test/wait.ts](https://github.com/autifyhq/autify-cli/blob/v0.46.0/src/commands/mobile/test/wait.ts)_
398
+ _See code: [src/commands/mobile/test/wait.ts](https://github.com/autifyhq/autify-cli/blob/v0.48.0/src/commands/mobile/test/wait.ts)_
398
399
 
399
400
  ## `autify update [CHANNEL]`
400
401
 
@@ -431,7 +432,7 @@ EXAMPLES
431
432
  $ autify update --available
432
433
  ```
433
434
 
434
- _See code: [@oclif/plugin-update](https://github.com/oclif/plugin-update/blob/v4.4.6/src/commands/update.ts)_
435
+ _See code: [@oclif/plugin-update](https://github.com/oclif/plugin-update/blob/v4.4.16/src/commands/update.ts)_
435
436
 
436
437
  ## `autify web api create-access-point`
437
438
 
@@ -442,7 +443,8 @@ USAGE
442
443
  $ autify web api create-access-point --project-id <value> --create-access-point-request <value>
443
444
 
444
445
  FLAGS
445
- --create-access-point-request=<value> (required) The name of the access point to be created
446
+ --create-access-point-request=<value> (required) A JSON object with the name of the access point to be created e.g.
447
+ {"name":"string"}
446
448
  --project-id=<value> (required) For example, 1 for the following URL:
447
449
  https://app.autify.com/projects/1/scenarios
448
450
 
@@ -453,7 +455,7 @@ EXAMPLES
453
455
  $ autify web api create-access-point
454
456
  ```
455
457
 
456
- _See code: [src/commands/web/api/create-access-point.ts](https://github.com/autifyhq/autify-cli/blob/v0.46.0/src/commands/web/api/create-access-point.ts)_
458
+ _See code: [src/commands/web/api/create-access-point.ts](https://github.com/autifyhq/autify-cli/blob/v0.48.0/src/commands/web/api/create-access-point.ts)_
457
459
 
458
460
  ## `autify web api create-test-plan-variable`
459
461
 
@@ -464,7 +466,8 @@ USAGE
464
466
  $ autify web api create-test-plan-variable --test-plan-id <value> --create-test-plan-variable-request <value>
465
467
 
466
468
  FLAGS
467
- --create-test-plan-variable-request=<value> (required) The new variable key and default value to use in the test plan
469
+ --create-test-plan-variable-request=<value> (required) A JSON object with the new variable key and default value to
470
+ use in the test plan e.g. {"key":"string","default_value":"string"}
468
471
  --test-plan-id=<value> (required) For example, 15 for the following URL:
469
472
  https://app.autify.com/projects/1/test_plans/15
470
473
 
@@ -475,7 +478,7 @@ EXAMPLES
475
478
  $ autify web api create-test-plan-variable
476
479
  ```
477
480
 
478
- _See code: [src/commands/web/api/create-test-plan-variable.ts](https://github.com/autifyhq/autify-cli/blob/v0.46.0/src/commands/web/api/create-test-plan-variable.ts)_
481
+ _See code: [src/commands/web/api/create-test-plan-variable.ts](https://github.com/autifyhq/autify-cli/blob/v0.48.0/src/commands/web/api/create-test-plan-variable.ts)_
479
482
 
480
483
  ## `autify web api create-url-replacement`
481
484
 
@@ -486,7 +489,8 @@ USAGE
486
489
  $ autify web api create-url-replacement --test-plan-id <value> --create-url-replacement-request <value>
487
490
 
488
491
  FLAGS
489
- --create-url-replacement-request=<value> (required) The url to replace
492
+ --create-url-replacement-request=<value> (required) A JSON object with the url to replace e.g.
493
+ {"pattern_url":"string","replacement_url":"string"}
490
494
  --test-plan-id=<value> (required) For example, 15 for the following URL:
491
495
  https://app.autify.com/projects/1/test_plans/15
492
496
 
@@ -497,7 +501,7 @@ EXAMPLES
497
501
  $ autify web api create-url-replacement
498
502
  ```
499
503
 
500
- _See code: [src/commands/web/api/create-url-replacement.ts](https://github.com/autifyhq/autify-cli/blob/v0.46.0/src/commands/web/api/create-url-replacement.ts)_
504
+ _See code: [src/commands/web/api/create-url-replacement.ts](https://github.com/autifyhq/autify-cli/blob/v0.48.0/src/commands/web/api/create-url-replacement.ts)_
501
505
 
502
506
  ## `autify web api delete-access-point`
503
507
 
@@ -508,7 +512,8 @@ USAGE
508
512
  $ autify web api delete-access-point --project-id <value> --delete-access-point-request <value>
509
513
 
510
514
  FLAGS
511
- --delete-access-point-request=<value> (required) The name of the access point to be deleted
515
+ --delete-access-point-request=<value> (required) A JSON object with the name of the access point to be deleted e.g.
516
+ {"name":"string"}
512
517
  --project-id=<value> (required) For example, 1 for the following URL:
513
518
  https://app.autify.com/projects/1/scenarios
514
519
 
@@ -519,7 +524,7 @@ EXAMPLES
519
524
  $ autify web api delete-access-point
520
525
  ```
521
526
 
522
- _See code: [src/commands/web/api/delete-access-point.ts](https://github.com/autifyhq/autify-cli/blob/v0.46.0/src/commands/web/api/delete-access-point.ts)_
527
+ _See code: [src/commands/web/api/delete-access-point.ts](https://github.com/autifyhq/autify-cli/blob/v0.48.0/src/commands/web/api/delete-access-point.ts)_
523
528
 
524
529
  ## `autify web api delete-test-plan-variable`
525
530
 
@@ -541,7 +546,7 @@ EXAMPLES
541
546
  $ autify web api delete-test-plan-variable
542
547
  ```
543
548
 
544
- _See code: [src/commands/web/api/delete-test-plan-variable.ts](https://github.com/autifyhq/autify-cli/blob/v0.46.0/src/commands/web/api/delete-test-plan-variable.ts)_
549
+ _See code: [src/commands/web/api/delete-test-plan-variable.ts](https://github.com/autifyhq/autify-cli/blob/v0.48.0/src/commands/web/api/delete-test-plan-variable.ts)_
545
550
 
546
551
  ## `autify web api delete-url-replacement`
547
552
 
@@ -563,7 +568,7 @@ EXAMPLES
563
568
  $ autify web api delete-url-replacement
564
569
  ```
565
570
 
566
- _See code: [src/commands/web/api/delete-url-replacement.ts](https://github.com/autifyhq/autify-cli/blob/v0.46.0/src/commands/web/api/delete-url-replacement.ts)_
571
+ _See code: [src/commands/web/api/delete-url-replacement.ts](https://github.com/autifyhq/autify-cli/blob/v0.48.0/src/commands/web/api/delete-url-replacement.ts)_
567
572
 
568
573
  ## `autify web api describe-result`
569
574
 
@@ -585,7 +590,7 @@ EXAMPLES
585
590
  $ autify web api describe-result
586
591
  ```
587
592
 
588
- _See code: [src/commands/web/api/describe-result.ts](https://github.com/autifyhq/autify-cli/blob/v0.46.0/src/commands/web/api/describe-result.ts)_
593
+ _See code: [src/commands/web/api/describe-result.ts](https://github.com/autifyhq/autify-cli/blob/v0.48.0/src/commands/web/api/describe-result.ts)_
589
594
 
590
595
  ## `autify web api describe-scenario`
591
596
 
@@ -606,7 +611,7 @@ EXAMPLES
606
611
  $ autify web api describe-scenario
607
612
  ```
608
613
 
609
- _See code: [src/commands/web/api/describe-scenario.ts](https://github.com/autifyhq/autify-cli/blob/v0.46.0/src/commands/web/api/describe-scenario.ts)_
614
+ _See code: [src/commands/web/api/describe-scenario.ts](https://github.com/autifyhq/autify-cli/blob/v0.48.0/src/commands/web/api/describe-scenario.ts)_
610
615
 
611
616
  ## `autify web api execute-scenarios`
612
617
 
@@ -617,9 +622,14 @@ USAGE
617
622
  $ autify web api execute-scenarios --project-id <value> --execute-scenarios-request <value>
618
623
 
619
624
  FLAGS
620
- --execute-scenarios-request=<value> (required) The scenarios and settings to execute
621
- --project-id=<value> (required) For example, 1 for the following URL:
622
- https://app.autify.com/projects/1/scenarios
625
+ --execute-scenarios-request=<value>
626
+ (required) A JSON object with the scenarios and settings to execute e.g.
627
+ {"name":"string","execution_type":"parallel","capabilities":[{"os":"string","os_type":"macos","os_version":"string",
628
+ "device":"string","browser":"string","browser_type":"chrome","browser_version":"string"}],"url_replacements":[{"patt
629
+ ern_url":"string","replacement_url":"string"}],"scenarios":[{"id":0}],"autify_connect":{"name":"string"}}
630
+
631
+ --project-id=<value>
632
+ (required) For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
623
633
 
624
634
  DESCRIPTION
625
635
  You can execute any scenarios in your workspace using any execution environments (which is called "capabilities"
@@ -629,33 +639,34 @@ EXAMPLES
629
639
  $ autify web api execute-scenarios
630
640
  ```
631
641
 
632
- _See code: [src/commands/web/api/execute-scenarios.ts](https://github.com/autifyhq/autify-cli/blob/v0.46.0/src/commands/web/api/execute-scenarios.ts)_
642
+ _See code: [src/commands/web/api/execute-scenarios.ts](https://github.com/autifyhq/autify-cli/blob/v0.48.0/src/commands/web/api/execute-scenarios.ts)_
633
643
 
634
644
  ## `autify web api execute-schedule`
635
645
 
636
- "Schedule" is called as "Test Plan" now.\ If you want to run a test plan, use this endpoint.
646
+ "Schedule" is called as "Test Plan" now. If you want to run a test plan, use this endpoint.
637
647
 
638
648
  ```
639
649
  USAGE
640
650
  $ autify web api execute-schedule --schedule-id <value> [--execute-schedule-request <value>]
641
651
 
642
652
  FLAGS
643
- --execute-schedule-request=<value> The options to execute a test plan.
653
+ --execute-schedule-request=<value> A JSON object with the options to execute a test plan. e.g.
654
+ {"autify_connect":{"name":"string"}}
644
655
  --schedule-id=<value> (required) For example, 3 for the following URL:
645
656
  https://app.autify.com/projects/1/test_plans/3
646
657
 
647
658
  DESCRIPTION
648
- "Schedule" is called as "Test Plan" now.\ If you want to run a test plan, use this endpoint.
659
+ "Schedule" is called as "Test Plan" now. If you want to run a test plan, use this endpoint.
649
660
 
650
661
  EXAMPLES
651
662
  $ autify web api execute-schedule
652
663
  ```
653
664
 
654
- _See code: [src/commands/web/api/execute-schedule.ts](https://github.com/autifyhq/autify-cli/blob/v0.46.0/src/commands/web/api/execute-schedule.ts)_
665
+ _See code: [src/commands/web/api/execute-schedule.ts](https://github.com/autifyhq/autify-cli/blob/v0.48.0/src/commands/web/api/execute-schedule.ts)_
655
666
 
656
667
  ## `autify web api get-credit-usage`
657
668
 
658
- Get the number of credits used in the project\ \ Notes:\ This endpoint works only for organizations on credit-based plans. It always returns 0 for `credits_consumed` and `credit_consumption_event_count` if your organization is on a run-based plan.
669
+ Get the number of credits used in the project Notes: This endpoint works only for organizations on credit-based plans. It always returns 0 for `credits_consumed` and `credit_consumption_event_count` if your organization is on a run-based plan.
659
670
 
660
671
  ```
661
672
  USAGE
@@ -663,19 +674,19 @@ USAGE
663
674
  [--test-plan-id <value>] [--user-id <value>]
664
675
 
665
676
  FLAGS
666
- --date-from=<value> The date to start counting used credits from.\ If not specified, the date will be set to 1
667
- week ago.\ Up to 90 days in advance can be specified. If the specified date is more than 90
668
- days in the past, the date will be set to 90 days ago.\ Date must follow the format YYYY-MM-DD
669
- (example: &quot;2023-09-21&quot;).
670
- --date-to=<value> The date to end counting used credits from.\ If not specified, the date will be set to today.\
671
- Date must follow the format YYYY-MM-DD (example: &quot;2023-09-28&quot;).
677
+ --date-from=<value> The date to start counting used credits from. If not specified, the date will be set to 1 week
678
+ ago. Up to 90 days in advance can be specified. If the specified date is more than 90 days in
679
+ the past, the date will be set to 90 days ago. Date must follow the format YYYY-MM-DD
680
+ (example: "2023-09-21").
681
+ --date-to=<value> The date to end counting used credits from. If not specified, the date will be set to today.
682
+ Date must follow the format YYYY-MM-DD (example: "2023-09-28").
672
683
  --project-id=<value> (required) For example, 1 for the following URL: https://app.autify.com/projects/1/credits
673
684
  --scenario-id=<value> The scenario ID to filter used credits by.
674
685
  --test-plan-id=<value> The test plan ID to filter used credits by.
675
686
  --user-id=<value> The user ID that executed tests to filter used credits by.
676
687
 
677
688
  DESCRIPTION
678
- Get the number of credits used in the project\ \ Notes:\ This endpoint works only for organizations on credit-based
689
+ Get the number of credits used in the project Notes: This endpoint works only for organizations on credit-based
679
690
  plans. It always returns 0 for `credits_consumed` and `credit_consumption_event_count` if your organization is on a
680
691
  run-based plan.
681
692
 
@@ -683,7 +694,7 @@ EXAMPLES
683
694
  $ autify web api get-credit-usage
684
695
  ```
685
696
 
686
- _See code: [src/commands/web/api/get-credit-usage.ts](https://github.com/autifyhq/autify-cli/blob/v0.46.0/src/commands/web/api/get-credit-usage.ts)_
697
+ _See code: [src/commands/web/api/get-credit-usage.ts](https://github.com/autifyhq/autify-cli/blob/v0.48.0/src/commands/web/api/get-credit-usage.ts)_
687
698
 
688
699
  ## `autify web api get-project-info`
689
700
 
@@ -703,7 +714,7 @@ EXAMPLES
703
714
  $ autify web api get-project-info
704
715
  ```
705
716
 
706
- _See code: [src/commands/web/api/get-project-info.ts](https://github.com/autifyhq/autify-cli/blob/v0.46.0/src/commands/web/api/get-project-info.ts)_
717
+ _See code: [src/commands/web/api/get-project-info.ts](https://github.com/autifyhq/autify-cli/blob/v0.48.0/src/commands/web/api/get-project-info.ts)_
707
718
 
708
719
  ## `autify web api list-access-points`
709
720
 
@@ -724,7 +735,7 @@ EXAMPLES
724
735
  $ autify web api list-access-points
725
736
  ```
726
737
 
727
- _See code: [src/commands/web/api/list-access-points.ts](https://github.com/autifyhq/autify-cli/blob/v0.46.0/src/commands/web/api/list-access-points.ts)_
738
+ _See code: [src/commands/web/api/list-access-points.ts](https://github.com/autifyhq/autify-cli/blob/v0.48.0/src/commands/web/api/list-access-points.ts)_
728
739
 
729
740
  ## `autify web api list-capabilities`
730
741
 
@@ -732,13 +743,17 @@ List available Capabilities.
732
743
 
733
744
  ```
734
745
  USAGE
735
- $ autify web api list-capabilities --project-id <value> [--os <value>] [--browser <value>] [--device-type <value>]
746
+ $ autify web api list-capabilities --project-id <value> [--os <value>] [--os-type <value>] [--browser <value>]
747
+ [--browser-type <value>] [--device-type <value>]
736
748
 
737
749
  FLAGS
738
- --browser=<value> browser name to filter
739
- --device-type=<value> device_type name to filter
740
- --os=<value> os name to filter
741
- --project-id=<value> (required) For example, 1 for the following URL: https://app.autify.com/projects/1/capabilities
750
+ --browser=<value> browser name to filter (deprecated)
751
+ --browser-type=<value> Type of the browser to filter
752
+ --device-type=<value> device_type name to filter (mobile is deprecated)
753
+ --os=<value> os name to filter (deprecated)
754
+ --os-type=<value> Type of the os to filter
755
+ --project-id=<value> (required) For example, 1 for the following URL:
756
+ https://app.autify.com/projects/1/capabilities
742
757
 
743
758
  DESCRIPTION
744
759
  List available Capabilities.
@@ -747,7 +762,7 @@ EXAMPLES
747
762
  $ autify web api list-capabilities
748
763
  ```
749
764
 
750
- _See code: [src/commands/web/api/list-capabilities.ts](https://github.com/autifyhq/autify-cli/blob/v0.46.0/src/commands/web/api/list-capabilities.ts)_
765
+ _See code: [src/commands/web/api/list-capabilities.ts](https://github.com/autifyhq/autify-cli/blob/v0.48.0/src/commands/web/api/list-capabilities.ts)_
751
766
 
752
767
  ## `autify web api list-results`
753
768
 
@@ -770,7 +785,7 @@ EXAMPLES
770
785
  $ autify web api list-results
771
786
  ```
772
787
 
773
- _See code: [src/commands/web/api/list-results.ts](https://github.com/autifyhq/autify-cli/blob/v0.46.0/src/commands/web/api/list-results.ts)_
788
+ _See code: [src/commands/web/api/list-results.ts](https://github.com/autifyhq/autify-cli/blob/v0.48.0/src/commands/web/api/list-results.ts)_
774
789
 
775
790
  ## `autify web api list-scenarios`
776
791
 
@@ -791,7 +806,7 @@ EXAMPLES
791
806
  $ autify web api list-scenarios
792
807
  ```
793
808
 
794
- _See code: [src/commands/web/api/list-scenarios.ts](https://github.com/autifyhq/autify-cli/blob/v0.46.0/src/commands/web/api/list-scenarios.ts)_
809
+ _See code: [src/commands/web/api/list-scenarios.ts](https://github.com/autifyhq/autify-cli/blob/v0.48.0/src/commands/web/api/list-scenarios.ts)_
795
810
 
796
811
  ## `autify web api list-test-plan-variable`
797
812
 
@@ -812,7 +827,7 @@ EXAMPLES
812
827
  $ autify web api list-test-plan-variable
813
828
  ```
814
829
 
815
- _See code: [src/commands/web/api/list-test-plan-variable.ts](https://github.com/autifyhq/autify-cli/blob/v0.46.0/src/commands/web/api/list-test-plan-variable.ts)_
830
+ _See code: [src/commands/web/api/list-test-plan-variable.ts](https://github.com/autifyhq/autify-cli/blob/v0.48.0/src/commands/web/api/list-test-plan-variable.ts)_
816
831
 
817
832
  ## `autify web api list-url-replacements`
818
833
 
@@ -833,7 +848,7 @@ EXAMPLES
833
848
  $ autify web api list-url-replacements
834
849
  ```
835
850
 
836
- _See code: [src/commands/web/api/list-url-replacements.ts](https://github.com/autifyhq/autify-cli/blob/v0.46.0/src/commands/web/api/list-url-replacements.ts)_
851
+ _See code: [src/commands/web/api/list-url-replacements.ts](https://github.com/autifyhq/autify-cli/blob/v0.48.0/src/commands/web/api/list-url-replacements.ts)_
837
852
 
838
853
  ## `autify web api update-test-plan-variable`
839
854
 
@@ -848,8 +863,9 @@ FLAGS
848
863
  --test-plan-id=<value> (required) For example, 15 for the following URL:
849
864
  https://app.autify.com/projects/1/test_plans/15
850
865
  --test-plan-variable-id=<value> (required) test_plan_variable id
851
- --update-test-plan-variable-request=<value> (required) The variable&#39;s new key and/or default_value&#39;s value to
852
- register
866
+ --update-test-plan-variable-request=<value> (required) A JSON object with the variable's new key and/or
867
+ default_value's value to register e.g.
868
+ {"key":"string","default_value":"string"}
853
869
 
854
870
  DESCRIPTION
855
871
  Update a url replacement for the test plan
@@ -858,7 +874,7 @@ EXAMPLES
858
874
  $ autify web api update-test-plan-variable
859
875
  ```
860
876
 
861
- _See code: [src/commands/web/api/update-test-plan-variable.ts](https://github.com/autifyhq/autify-cli/blob/v0.46.0/src/commands/web/api/update-test-plan-variable.ts)_
877
+ _See code: [src/commands/web/api/update-test-plan-variable.ts](https://github.com/autifyhq/autify-cli/blob/v0.48.0/src/commands/web/api/update-test-plan-variable.ts)_
862
878
 
863
879
  ## `autify web api update-url-replacement`
864
880
 
@@ -872,8 +888,9 @@ USAGE
872
888
  FLAGS
873
889
  --test-plan-id=<value> (required) For example, 15 for the following URL:
874
890
  https://app.autify.com/projects/1/test_plans/15
875
- --update-url-replacement-request=<value> (required) The url to replace. Either pattern_url or replacement_url is
876
- required.
891
+ --update-url-replacement-request=<value> (required) A JSON object with the url to replace. Either pattern_url or
892
+ replacement_url is required. e.g.
893
+ {"pattern_url":"string","replacement_url":"string"}
877
894
  --url-replacement-id=<value> (required) url_replacement id
878
895
 
879
896
  DESCRIPTION
@@ -883,7 +900,7 @@ EXAMPLES
883
900
  $ autify web api update-url-replacement
884
901
  ```
885
902
 
886
- _See code: [src/commands/web/api/update-url-replacement.ts](https://github.com/autifyhq/autify-cli/blob/v0.46.0/src/commands/web/api/update-url-replacement.ts)_
903
+ _See code: [src/commands/web/api/update-url-replacement.ts](https://github.com/autifyhq/autify-cli/blob/v0.48.0/src/commands/web/api/update-url-replacement.ts)_
887
904
 
888
905
  ## `autify web auth login`
889
906
 
@@ -906,7 +923,7 @@ EXAMPLES
906
923
  $ autify web auth login < token.txt
907
924
  ```
908
925
 
909
- _See code: [src/commands/web/auth/login.ts](https://github.com/autifyhq/autify-cli/blob/v0.46.0/src/commands/web/auth/login.ts)_
926
+ _See code: [src/commands/web/auth/login.ts](https://github.com/autifyhq/autify-cli/blob/v0.48.0/src/commands/web/auth/login.ts)_
910
927
 
911
928
  ## `autify web test run SCENARIO-OR-TEST-PLAN-URL`
912
929
 
@@ -987,7 +1004,7 @@ EXAMPLES
987
1004
  $ autify web test run https://app.autify.com/projects/0000/scenarios/0000 --wait --autify-connect-client
988
1005
  ```
989
1006
 
990
- _See code: [src/commands/web/test/run.ts](https://github.com/autifyhq/autify-cli/blob/v0.46.0/src/commands/web/test/run.ts)_
1007
+ _See code: [src/commands/web/test/run.ts](https://github.com/autifyhq/autify-cli/blob/v0.48.0/src/commands/web/test/run.ts)_
991
1008
 
992
1009
  ## `autify web test wait TEST-RESULT-URL`
993
1010
 
@@ -1011,5 +1028,5 @@ EXAMPLES
1011
1028
  $ autify web test wait https://app.autify.com/projects/0000/results/0000
1012
1029
  ```
1013
1030
 
1014
- _See code: [src/commands/web/test/wait.ts](https://github.com/autifyhq/autify-cli/blob/v0.46.0/src/commands/web/test/wait.ts)_
1031
+ _See code: [src/commands/web/test/wait.ts](https://github.com/autifyhq/autify-cli/blob/v0.48.0/src/commands/web/test/wait.ts)_
1015
1032
  <!-- commandsstop -->
@@ -4,7 +4,6 @@ exports.DebugServerClient = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  /* eslint-disable unicorn/filename-case */
6
6
  const errors_1 = require("@oclif/errors");
7
- const node_fetch_1 = tslib_1.__importDefault(require("node-fetch"));
8
7
  const abort_controller_1 = tslib_1.__importDefault(require("abort-controller"));
9
8
  class DebugServerClient {
10
9
  constructor(port, clientEvents) {
@@ -39,7 +38,7 @@ class DebugServerClient {
39
38
  const timeout = setTimeout(() => controller.abort(), 1000);
40
39
  let response;
41
40
  try {
42
- response = await (0, node_fetch_1.default)(`http://127.0.0.1:${this.port}${path}`, {
41
+ response = await fetch(`http://127.0.0.1:${this.port}${path}`, {
43
42
  method,
44
43
  signal: controller.signal,
45
44
  });
@@ -5,7 +5,6 @@ const tslib_1 = require("tslib");
5
5
  /* eslint-disable unicorn/filename-case */
6
6
  const errors_1 = require("@oclif/errors");
7
7
  const node_process_1 = require("node:process");
8
- const node_fetch_1 = tslib_1.__importDefault(require("node-fetch"));
9
8
  const node_fs_1 = require("node:fs");
10
9
  const node_stream_1 = require("node:stream");
11
10
  const node_util_1 = require("node:util");
@@ -67,11 +66,13 @@ const getConnectClientSourceUrl = (configDir, version) => {
67
66
  exports.getConnectClientSourceUrl = getConnectClientSourceUrl;
68
67
  const download = async (workspaceDir, url) => {
69
68
  const downloadPath = (0, node_path_1.join)(workspaceDir, (0, node_path_1.basename)(url.pathname));
70
- const response = await (0, node_fetch_1.default)(url);
69
+ const response = await fetch(url);
71
70
  if (!response.ok)
72
71
  throw new errors_1.CLIError(`Failed to fetch ${url}: ${response.status}`);
73
72
  const streamPipeline = (0, node_util_1.promisify)(node_stream_1.pipeline);
74
- await streamPipeline(response.body, (0, node_fs_1.createWriteStream)(downloadPath));
73
+ if (response.body) {
74
+ await streamPipeline(response.body, (0, node_fs_1.createWriteStream)(downloadPath));
75
+ }
75
76
  return downloadPath;
76
77
  };
77
78
  const extract = async (downloadPath) => {
@@ -139,7 +140,7 @@ const installClient = async (configDir, cacheDir, url, version) => {
139
140
  // Clean up workspace in case something is left by previous command.
140
141
  if ((0, node_fs_1.existsSync)(workspaceDir))
141
142
  (0, node_fs_1.rmSync)(workspaceDir, { recursive: true, force: true });
142
- (0, node_fs_1.mkdirSync)(workspaceDir);
143
+ (0, node_fs_1.mkdirSync)(workspaceDir, { recursive: true });
143
144
  const downloadPath = await download(workspaceDir, url);
144
145
  const extractPath = await extract(downloadPath);
145
146
  // Pre-install validation
@@ -1,6 +1,6 @@
1
1
  import { WebClient } from "@autifyhq/autify-sdk";
2
2
  import { TestPlan, TestScenario } from "./parseAutifyTestUrl";
3
- type CapabilityOption = Parameters<WebClient["executeScenarios"]>[1]["capabilities"][number];
3
+ type CapabilityOption = Awaited<ReturnType<WebClient["listCapabilities"]>>["data"][number];
4
4
  type CreateUrlReplacementRequest = Parameters<WebClient["createUrlReplacement"]>[1];
5
5
  type RunTestProps = Readonly<{
6
6
  option: CapabilityOption;
@@ -19,7 +19,7 @@ MobileApiRunTestPlan.flags = {
19
19
  required: true,
20
20
  }),
21
21
  "run-test-plan-request": core_1.Flags.string({
22
- description: "The build_id to execute the test plan.",
22
+ description: 'A JSON object with the build_id to execute the test plan. e.g. {"build_id":"string"}',
23
23
  required: true,
24
24
  }),
25
25
  };
@@ -19,7 +19,7 @@ WebApiCreateAccessPoint.flags = {
19
19
  required: true,
20
20
  }),
21
21
  "create-access-point-request": core_1.Flags.string({
22
- description: "The name of the access point to be created",
22
+ description: 'A JSON object with the name of the access point to be created e.g. {"name":"string"}',
23
23
  required: true,
24
24
  }),
25
25
  };
@@ -19,7 +19,7 @@ WebApiCreateTestPlanVariable.flags = {
19
19
  required: true,
20
20
  }),
21
21
  "create-test-plan-variable-request": core_1.Flags.string({
22
- description: "The new variable key and default value to use in the test plan",
22
+ description: 'A JSON object with the new variable key and default value to use in the test plan e.g. {"key":"string","default_value":"string"}',
23
23
  required: true,
24
24
  }),
25
25
  };
@@ -19,7 +19,7 @@ WebApiCreateUrlReplacement.flags = {
19
19
  required: true,
20
20
  }),
21
21
  "create-url-replacement-request": core_1.Flags.string({
22
- description: "The url to replace",
22
+ description: 'A JSON object with the url to replace e.g. {"pattern_url":"string","replacement_url":"string"}',
23
23
  required: true,
24
24
  }),
25
25
  };
@@ -19,7 +19,7 @@ WebApiDeleteAccessPoint.flags = {
19
19
  required: true,
20
20
  }),
21
21
  "delete-access-point-request": core_1.Flags.string({
22
- description: "The name of the access point to be deleted",
22
+ description: 'A JSON object with the name of the access point to be deleted e.g. {"name":"string"}',
23
23
  required: true,
24
24
  }),
25
25
  };
@@ -19,7 +19,7 @@ WebApiExecuteScenarios.flags = {
19
19
  required: true,
20
20
  }),
21
21
  "execute-scenarios-request": core_1.Flags.string({
22
- description: "The scenarios and settings to execute",
22
+ description: 'A JSON object with the scenarios and settings to execute e.g. {"name":"string","execution_type":"parallel","capabilities":[{"os":"string","os_type":"macos","os_version":"string","device":"string","browser":"string","browser_type":"chrome","browser_version":"string"}],"url_replacements":[{"pattern_url":"string","replacement_url":"string"}],"scenarios":[{"id":0}],"autify_connect":{"name":"string"}}',
23
23
  required: true,
24
24
  }),
25
25
  };
@@ -13,7 +13,7 @@ class WebApiExecuteSchedule extends core_1.Command {
13
13
  console.log(JSON.stringify(res.data, null, 2));
14
14
  }
15
15
  }
16
- WebApiExecuteSchedule.description = '"Schedule" is called as "Test Plan" now.\\ If you want to run a test plan, use this endpoint.';
16
+ WebApiExecuteSchedule.description = '"Schedule" is called as "Test Plan" now. If you want to run a test plan, use this endpoint.';
17
17
  WebApiExecuteSchedule.examples = ["<%= config.bin %> <%= command.id %>"];
18
18
  WebApiExecuteSchedule.flags = {
19
19
  "schedule-id": core_1.Flags.integer({
@@ -21,7 +21,7 @@ WebApiExecuteSchedule.flags = {
21
21
  required: true,
22
22
  }),
23
23
  "execute-schedule-request": core_1.Flags.string({
24
- description: "The options to execute a test plan.",
24
+ description: 'A JSON object with the options to execute a test plan. e.g. {"autify_connect":{"name":"string"}}',
25
25
  required: false,
26
26
  }),
27
27
  };