apify-cli 0.21.0-beta.21 → 0.21.0-beta.23

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.
@@ -588,6 +588,139 @@
588
588
  "validate-schema.js"
589
589
  ]
590
590
  },
591
+ "actor:get-input": {
592
+ "aliases": [],
593
+ "args": {},
594
+ "description": "Gets the Actor input value from the default key-value store associated with the Actor run.",
595
+ "flags": {},
596
+ "hasDynamicHelp": false,
597
+ "hiddenAliases": [],
598
+ "id": "actor:get-input",
599
+ "pluginAlias": "apify-cli",
600
+ "pluginName": "apify-cli",
601
+ "pluginType": "core",
602
+ "strict": true,
603
+ "isESM": true,
604
+ "relativePath": [
605
+ "dist",
606
+ "commands",
607
+ "actor",
608
+ "get-input.js"
609
+ ]
610
+ },
611
+ "actor:get-value": {
612
+ "aliases": [],
613
+ "args": {
614
+ "key": {
615
+ "description": "Key of the record in key-value store",
616
+ "name": "key",
617
+ "required": true
618
+ }
619
+ },
620
+ "description": "Gets a value from the default key-value store associated with the Actor run.",
621
+ "flags": {},
622
+ "hasDynamicHelp": false,
623
+ "hiddenAliases": [],
624
+ "id": "actor:get-value",
625
+ "pluginAlias": "apify-cli",
626
+ "pluginName": "apify-cli",
627
+ "pluginType": "core",
628
+ "strict": true,
629
+ "isESM": true,
630
+ "relativePath": [
631
+ "dist",
632
+ "commands",
633
+ "actor",
634
+ "get-value.js"
635
+ ]
636
+ },
637
+ "actor": {
638
+ "aliases": [],
639
+ "args": {},
640
+ "description": "Commands are designed to be used in Actor runs. All commands are in PoC state, do not use in production environments.\n",
641
+ "flags": {},
642
+ "hasDynamicHelp": false,
643
+ "hiddenAliases": [],
644
+ "id": "actor",
645
+ "pluginAlias": "apify-cli",
646
+ "pluginName": "apify-cli",
647
+ "pluginType": "core",
648
+ "strict": true,
649
+ "isESM": true,
650
+ "relativePath": [
651
+ "dist",
652
+ "commands",
653
+ "actor",
654
+ "index.js"
655
+ ]
656
+ },
657
+ "actor:push-data": {
658
+ "aliases": [],
659
+ "args": {
660
+ "item": {
661
+ "description": "JSON string with one object or array of objects containing data to be stored in the default dataset.",
662
+ "name": "item",
663
+ "required": false
664
+ }
665
+ },
666
+ "description": "Stores an object or an array of objects to the default dataset of the Actor run.\nIt is possible to pass data using item argument or stdin.\nPassing data using argument:\n$ apify actor push-data {\"foo\": \"bar\"}\nPassing data using stdin with pipe:\n$ cat ./test.json | apify actor push-data\n",
667
+ "flags": {},
668
+ "hasDynamicHelp": false,
669
+ "hiddenAliases": [],
670
+ "id": "actor:push-data",
671
+ "pluginAlias": "apify-cli",
672
+ "pluginName": "apify-cli",
673
+ "pluginType": "core",
674
+ "strict": true,
675
+ "isESM": true,
676
+ "relativePath": [
677
+ "dist",
678
+ "commands",
679
+ "actor",
680
+ "push-data.js"
681
+ ]
682
+ },
683
+ "actor:set-value": {
684
+ "aliases": [],
685
+ "args": {
686
+ "key": {
687
+ "description": "Key of the record in key-value store.",
688
+ "name": "key",
689
+ "required": true
690
+ },
691
+ "value": {
692
+ "description": "Record data, which can be one of the following values:\n- If empty, the record in the key-value store is deleted.\n- If no `contentType` flag is specified, value is expected to be any JSON string value.\n- If options.contentType is set, value is taken as is.",
693
+ "name": "value",
694
+ "required": false
695
+ }
696
+ },
697
+ "description": "Sets or removes record into the default KeyValueStore associated with the Actor run.\nIt is possible to pass data using argument or stdin.\nPassing data using argument:\n$ apify actor set-value KEY my-value\nPassing data using stdin with pipe:\n$ cat ./my-text-file.txt | apify actor set-value KEY --contentType text/plain\n",
698
+ "flags": {
699
+ "contentType": {
700
+ "char": "c",
701
+ "description": "Specifies a custom MIME content type of the record. By default \"application/json\" is used.",
702
+ "name": "contentType",
703
+ "required": false,
704
+ "hasDynamicHelp": false,
705
+ "multiple": false,
706
+ "type": "option"
707
+ }
708
+ },
709
+ "hasDynamicHelp": false,
710
+ "hiddenAliases": [],
711
+ "id": "actor:set-value",
712
+ "pluginAlias": "apify-cli",
713
+ "pluginName": "apify-cli",
714
+ "pluginType": "core",
715
+ "strict": true,
716
+ "isESM": true,
717
+ "relativePath": [
718
+ "dist",
719
+ "commands",
720
+ "actor",
721
+ "set-value.js"
722
+ ]
723
+ },
591
724
  "actors:build": {
592
725
  "aliases": [],
593
726
  "args": {
@@ -834,118 +967,72 @@
834
967
  "rm.js"
835
968
  ]
836
969
  },
837
- "actor:get-input": {
838
- "aliases": [],
839
- "args": {},
840
- "description": "Gets the Actor input value from the default key-value store associated with the Actor run.",
841
- "flags": {},
842
- "hasDynamicHelp": false,
843
- "hiddenAliases": [],
844
- "id": "actor:get-input",
845
- "pluginAlias": "apify-cli",
846
- "pluginName": "apify-cli",
847
- "pluginType": "core",
848
- "strict": true,
849
- "isESM": true,
850
- "relativePath": [
851
- "dist",
852
- "commands",
853
- "actor",
854
- "get-input.js"
855
- ]
856
- },
857
- "actor:get-value": {
858
- "aliases": [],
859
- "args": {
860
- "key": {
861
- "description": "Key of the record in key-value store",
862
- "name": "key",
863
- "required": true
864
- }
865
- },
866
- "description": "Gets a value from the default key-value store associated with the Actor run.",
867
- "flags": {},
868
- "hasDynamicHelp": false,
869
- "hiddenAliases": [],
870
- "id": "actor:get-value",
871
- "pluginAlias": "apify-cli",
872
- "pluginName": "apify-cli",
873
- "pluginType": "core",
874
- "strict": true,
875
- "isESM": true,
876
- "relativePath": [
877
- "dist",
878
- "commands",
879
- "actor",
880
- "get-value.js"
881
- ]
882
- },
883
- "actor": {
884
- "aliases": [],
885
- "args": {},
886
- "description": "Commands are designed to be used in Actor runs. All commands are in PoC state, do not use in production environments.\n",
887
- "flags": {},
888
- "hasDynamicHelp": false,
889
- "hiddenAliases": [],
890
- "id": "actor",
891
- "pluginAlias": "apify-cli",
892
- "pluginName": "apify-cli",
893
- "pluginType": "core",
894
- "strict": true,
895
- "isESM": true,
896
- "relativePath": [
897
- "dist",
898
- "commands",
899
- "actor",
900
- "index.js"
901
- ]
902
- },
903
- "actor:push-data": {
904
- "aliases": [],
905
- "args": {
906
- "item": {
907
- "description": "JSON string with one object or array of objects containing data to be stored in the default dataset.",
908
- "name": "item",
909
- "required": false
910
- }
911
- },
912
- "description": "Stores an object or an array of objects to the default dataset of the Actor run.\nIt is possible to pass data using item argument or stdin.\nPassing data using argument:\n$ apify actor push-data {\"foo\": \"bar\"}\nPassing data using stdin with pipe:\n$ cat ./test.json | apify actor push-data\n",
913
- "flags": {},
914
- "hasDynamicHelp": false,
915
- "hiddenAliases": [],
916
- "id": "actor:push-data",
917
- "pluginAlias": "apify-cli",
918
- "pluginName": "apify-cli",
919
- "pluginType": "core",
920
- "strict": true,
921
- "isESM": true,
922
- "relativePath": [
923
- "dist",
924
- "commands",
925
- "actor",
926
- "push-data.js"
927
- ]
928
- },
929
- "actor:set-value": {
970
+ "actors:start": {
930
971
  "aliases": [],
931
972
  "args": {
932
- "key": {
933
- "description": "Key of the record in key-value store.",
934
- "name": "key",
935
- "required": true
936
- },
937
- "value": {
938
- "description": "Record data, which can be one of the following values:\n- If empty, the record in the key-value store is deleted.\n- If no `contentType` flag is specified, value is expected to be any JSON string value.\n- If options.contentType is set, value is taken as is.",
939
- "name": "value",
973
+ "actorId": {
974
+ "description": "Name or ID of the Actor to run (e.g. \"my-actor\", \"apify/hello-world\" or \"E2jjCZBezvAZnX8Rb\"). If not provided, the command runs the remote Actor specified in the \".actor/actor.json\" file.",
975
+ "name": "actorId",
940
976
  "required": false
941
977
  }
942
978
  },
943
- "description": "Sets or removes record into the default KeyValueStore associated with the Actor run.\nIt is possible to pass data using argument or stdin.\nPassing data using argument:\n$ apify actor set-value KEY my-value\nPassing data using stdin with pipe:\n$ cat ./my-text-file.txt | apify actor set-value KEY --contentType text/plain\n",
979
+ "description": "Runs a specific Actor remotely on the Apify cloud platform and immediately returns information about the run.\nThe Actor is run under your current Apify account. Therefore you need to be logged in by calling \"apify login\". It takes input for the Actor from the default local key-value store by default.",
944
980
  "flags": {
945
- "contentType": {
946
- "char": "c",
947
- "description": "Specifies a custom MIME content type of the record. By default \"application/json\" is used.",
948
- "name": "contentType",
981
+ "json": {
982
+ "description": "Format output as json.",
983
+ "helpGroup": "GLOBAL",
984
+ "name": "json",
985
+ "allowNo": false,
986
+ "type": "boolean"
987
+ },
988
+ "build": {
989
+ "char": "b",
990
+ "description": "Tag or number of the build to run (e.g. \"latest\" or \"1.2.34\").",
991
+ "name": "build",
992
+ "required": false,
993
+ "hasDynamicHelp": false,
994
+ "multiple": false,
995
+ "type": "option"
996
+ },
997
+ "timeout": {
998
+ "char": "t",
999
+ "description": "Timeout for the Actor run in seconds. Zero value means there is no timeout.",
1000
+ "name": "timeout",
1001
+ "required": false,
1002
+ "hasDynamicHelp": false,
1003
+ "multiple": false,
1004
+ "type": "option"
1005
+ },
1006
+ "memory": {
1007
+ "char": "m",
1008
+ "description": "Amount of memory allocated for the Actor run, in megabytes.",
1009
+ "name": "memory",
1010
+ "required": false,
1011
+ "hasDynamicHelp": false,
1012
+ "multiple": false,
1013
+ "type": "option"
1014
+ },
1015
+ "input": {
1016
+ "char": "i",
1017
+ "description": "Optional JSON input to be given to the Actor.",
1018
+ "exclusive": [
1019
+ "input-file"
1020
+ ],
1021
+ "name": "input",
1022
+ "required": false,
1023
+ "hasDynamicHelp": false,
1024
+ "multiple": false,
1025
+ "type": "option"
1026
+ },
1027
+ "input-file": {
1028
+ "aliases": [
1029
+ "if"
1030
+ ],
1031
+ "description": "Optional path to a file with JSON input to be given to the Actor. The file must be a valid JSON file. You can also specify `-` to read from standard input.",
1032
+ "exclusive": [
1033
+ "input"
1034
+ ],
1035
+ "name": "input-file",
949
1036
  "required": false,
950
1037
  "hasDynamicHelp": false,
951
1038
  "multiple": false,
@@ -954,17 +1041,18 @@
954
1041
  },
955
1042
  "hasDynamicHelp": false,
956
1043
  "hiddenAliases": [],
957
- "id": "actor:set-value",
1044
+ "id": "actors:start",
958
1045
  "pluginAlias": "apify-cli",
959
1046
  "pluginName": "apify-cli",
960
1047
  "pluginType": "core",
961
1048
  "strict": true,
1049
+ "enableJsonFlag": true,
962
1050
  "isESM": true,
963
1051
  "relativePath": [
964
1052
  "dist",
965
1053
  "commands",
966
- "actor",
967
- "set-value.js"
1054
+ "actors",
1055
+ "start.js"
968
1056
  ]
969
1057
  },
970
1058
  "builds:create": {
@@ -1658,5 +1746,5 @@
1658
1746
  ]
1659
1747
  }
1660
1748
  },
1661
- "version": "0.21.0-beta.21"
1749
+ "version": "0.21.0-beta.23"
1662
1750
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apify-cli",
3
- "version": "0.21.0-beta.21",
3
+ "version": "0.21.0-beta.23",
4
4
  "description": "Apify command-line interface (CLI) helps you manage the Apify cloud platform and develop, build, and deploy Apify Actors.",
5
5
  "exports": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",