apify-cli 0.20.7 → 0.21.0-beta.1

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.
Files changed (56) hide show
  1. package/README.md +158 -26
  2. package/dist/.tsbuildinfo +1 -1
  3. package/dist/commands/builds/create.d.ts +13 -0
  4. package/dist/commands/builds/create.d.ts.map +1 -0
  5. package/dist/commands/builds/create.js +130 -0
  6. package/dist/commands/builds/create.js.map +1 -0
  7. package/dist/commands/builds/index.d.ts +6 -0
  8. package/dist/commands/builds/index.d.ts.map +1 -0
  9. package/dist/commands/builds/index.js +13 -0
  10. package/dist/commands/builds/index.js.map +1 -0
  11. package/dist/commands/builds/info.d.ts +10 -0
  12. package/dist/commands/builds/info.d.ts.map +1 -0
  13. package/dist/commands/builds/info.js +92 -0
  14. package/dist/commands/builds/info.js.map +1 -0
  15. package/dist/commands/builds/log.d.ts +9 -0
  16. package/dist/commands/builds/log.d.ts.map +1 -0
  17. package/dist/commands/builds/log.js +41 -0
  18. package/dist/commands/builds/log.js.map +1 -0
  19. package/dist/commands/builds/ls.d.ts +15 -0
  20. package/dist/commands/builds/ls.d.ts.map +1 -0
  21. package/dist/commands/builds/ls.js +144 -0
  22. package/dist/commands/builds/ls.js.map +1 -0
  23. package/dist/commands/create.js +3 -3
  24. package/dist/commands/run.js +3 -3
  25. package/dist/commands/runs/ls.d.ts +14 -0
  26. package/dist/commands/runs/ls.d.ts.map +1 -0
  27. package/dist/commands/runs/ls.js +117 -0
  28. package/dist/commands/runs/ls.js.map +1 -0
  29. package/dist/lib/apify_command.d.ts.map +1 -1
  30. package/dist/lib/apify_command.js +1 -0
  31. package/dist/lib/apify_command.js.map +1 -1
  32. package/dist/lib/commands/pretty-print-bytes.d.ts +2 -0
  33. package/dist/lib/commands/pretty-print-bytes.d.ts.map +1 -0
  34. package/dist/lib/commands/pretty-print-bytes.js +9 -0
  35. package/dist/lib/commands/pretty-print-bytes.js.map +1 -0
  36. package/dist/lib/commands/pretty-print-status.d.ts +3 -0
  37. package/dist/lib/commands/pretty-print-status.d.ts.map +1 -0
  38. package/dist/lib/commands/pretty-print-status.js +29 -0
  39. package/dist/lib/commands/pretty-print-status.js.map +1 -0
  40. package/dist/lib/commands/resolve-actor-context.d.ts +22 -0
  41. package/dist/lib/commands/resolve-actor-context.d.ts.map +1 -0
  42. package/dist/lib/commands/resolve-actor-context.js +70 -0
  43. package/dist/lib/commands/resolve-actor-context.js.map +1 -0
  44. package/dist/lib/commands/responsive-table.d.ts +23 -0
  45. package/dist/lib/commands/responsive-table.d.ts.map +1 -0
  46. package/dist/lib/commands/responsive-table.js +58 -0
  47. package/dist/lib/commands/responsive-table.js.map +1 -0
  48. package/dist/lib/consts.d.ts +1 -1
  49. package/dist/lib/consts.js +1 -1
  50. package/dist/lib/utils.d.ts +9 -0
  51. package/dist/lib/utils.d.ts.map +1 -1
  52. package/dist/lib/utils.js +45 -0
  53. package/dist/lib/utils.js.map +1 -1
  54. package/dist/typechecking.tsbuildinfo +1 -1
  55. package/oclif.manifest.json +273 -5
  56. package/package.json +5 -2
@@ -583,6 +583,26 @@
583
583
  "validate-schema.js"
584
584
  ]
585
585
  },
586
+ "actors": {
587
+ "aliases": [],
588
+ "args": {},
589
+ "description": "Commands are designed to be used with Actors.",
590
+ "flags": {},
591
+ "hasDynamicHelp": false,
592
+ "hiddenAliases": [],
593
+ "id": "actors",
594
+ "pluginAlias": "apify-cli",
595
+ "pluginName": "apify-cli",
596
+ "pluginType": "core",
597
+ "strict": true,
598
+ "isESM": true,
599
+ "relativePath": [
600
+ "dist",
601
+ "commands",
602
+ "actors",
603
+ "index.js"
604
+ ]
605
+ },
586
606
  "actor:get-input": {
587
607
  "aliases": [],
588
608
  "args": {},
@@ -716,14 +736,71 @@
716
736
  "set-value.js"
717
737
  ]
718
738
  },
719
- "actors": {
739
+ "builds:create": {
720
740
  "aliases": [],
721
741
  "args": {},
722
- "description": "Commands are designed to be used with Actors.",
742
+ "description": "Creates a new build of the Actor.",
743
+ "flags": {
744
+ "json": {
745
+ "description": "Format output as json.",
746
+ "helpGroup": "GLOBAL",
747
+ "name": "json",
748
+ "allowNo": false,
749
+ "type": "boolean"
750
+ },
751
+ "actor": {
752
+ "description": "Optional Actor ID or Name to trigger a build for. By default, it will use the Actor from the current directory.",
753
+ "name": "actor",
754
+ "hasDynamicHelp": false,
755
+ "multiple": false,
756
+ "type": "option"
757
+ },
758
+ "tag": {
759
+ "description": "Build tag to be applied to the successful Actor build. By default, this is \"latest\".",
760
+ "name": "tag",
761
+ "hasDynamicHelp": false,
762
+ "multiple": false,
763
+ "type": "option"
764
+ },
765
+ "version": {
766
+ "description": "Optional Actor Version to build. By default, this will be inferred from the tag, but this flag is required when multiple versions have the same tag.",
767
+ "name": "version",
768
+ "required": false,
769
+ "hasDynamicHelp": false,
770
+ "multiple": false,
771
+ "type": "option"
772
+ },
773
+ "log": {
774
+ "description": "Whether to print out the build log after the build is triggered.",
775
+ "name": "log",
776
+ "allowNo": false,
777
+ "type": "boolean"
778
+ }
779
+ },
780
+ "hasDynamicHelp": false,
781
+ "hiddenAliases": [],
782
+ "id": "builds:create",
783
+ "pluginAlias": "apify-cli",
784
+ "pluginName": "apify-cli",
785
+ "pluginType": "core",
786
+ "strict": true,
787
+ "enableJsonFlag": true,
788
+ "isESM": true,
789
+ "relativePath": [
790
+ "dist",
791
+ "commands",
792
+ "builds",
793
+ "create.js"
794
+ ]
795
+ },
796
+ "builds": {
797
+ "aliases": [],
798
+ "args": {},
799
+ "description": "Commands are designed to be used with Actor Builds.",
723
800
  "flags": {},
724
801
  "hasDynamicHelp": false,
725
802
  "hiddenAliases": [],
726
- "id": "actors",
803
+ "id": "builds",
727
804
  "pluginAlias": "apify-cli",
728
805
  "pluginName": "apify-cli",
729
806
  "pluginType": "core",
@@ -732,10 +809,136 @@
732
809
  "relativePath": [
733
810
  "dist",
734
811
  "commands",
735
- "actors",
812
+ "builds",
736
813
  "index.js"
737
814
  ]
738
815
  },
816
+ "builds:info": {
817
+ "aliases": [],
818
+ "args": {
819
+ "buildId": {
820
+ "description": "The build ID to get information about.",
821
+ "name": "buildId",
822
+ "required": true
823
+ }
824
+ },
825
+ "description": "Prints information about a specific build.",
826
+ "flags": {
827
+ "json": {
828
+ "description": "Format output as json.",
829
+ "helpGroup": "GLOBAL",
830
+ "name": "json",
831
+ "allowNo": false,
832
+ "type": "boolean"
833
+ }
834
+ },
835
+ "hasDynamicHelp": false,
836
+ "hiddenAliases": [],
837
+ "id": "builds:info",
838
+ "pluginAlias": "apify-cli",
839
+ "pluginName": "apify-cli",
840
+ "pluginType": "core",
841
+ "strict": true,
842
+ "enableJsonFlag": true,
843
+ "isESM": true,
844
+ "relativePath": [
845
+ "dist",
846
+ "commands",
847
+ "builds",
848
+ "info.js"
849
+ ]
850
+ },
851
+ "builds:log": {
852
+ "aliases": [],
853
+ "args": {
854
+ "buildId": {
855
+ "description": "The build ID to get the log from.",
856
+ "name": "buildId",
857
+ "required": true
858
+ }
859
+ },
860
+ "description": "Prints the log of a specific build.",
861
+ "flags": {},
862
+ "hasDynamicHelp": false,
863
+ "hiddenAliases": [],
864
+ "id": "builds:log",
865
+ "pluginAlias": "apify-cli",
866
+ "pluginName": "apify-cli",
867
+ "pluginType": "core",
868
+ "strict": true,
869
+ "isESM": true,
870
+ "relativePath": [
871
+ "dist",
872
+ "commands",
873
+ "builds",
874
+ "log.js"
875
+ ]
876
+ },
877
+ "builds:ls": {
878
+ "aliases": [],
879
+ "args": {},
880
+ "description": "Lists all builds of the Actor.",
881
+ "flags": {
882
+ "json": {
883
+ "description": "Format output as json.",
884
+ "helpGroup": "GLOBAL",
885
+ "name": "json",
886
+ "allowNo": false,
887
+ "type": "boolean"
888
+ },
889
+ "actor": {
890
+ "description": "Optional Actor ID or Name to list builds for. By default, it will use the Actor from the current directory.",
891
+ "name": "actor",
892
+ "hasDynamicHelp": false,
893
+ "multiple": false,
894
+ "type": "option"
895
+ },
896
+ "offset": {
897
+ "description": "Number of builds that will be skipped.",
898
+ "name": "offset",
899
+ "default": 0,
900
+ "hasDynamicHelp": false,
901
+ "multiple": false,
902
+ "type": "option"
903
+ },
904
+ "limit": {
905
+ "description": "Number of builds that will be listed.",
906
+ "name": "limit",
907
+ "default": 10,
908
+ "hasDynamicHelp": false,
909
+ "multiple": false,
910
+ "type": "option"
911
+ },
912
+ "desc": {
913
+ "description": "Sort builds in descending order.",
914
+ "name": "desc",
915
+ "allowNo": false,
916
+ "type": "boolean"
917
+ },
918
+ "compact": {
919
+ "char": "c",
920
+ "description": "Display a compact table.",
921
+ "name": "compact",
922
+ "allowNo": false,
923
+ "type": "boolean"
924
+ }
925
+ },
926
+ "hasDynamicHelp": false,
927
+ "hiddenAliases": [],
928
+ "id": "builds:ls",
929
+ "pluginAlias": "apify-cli",
930
+ "pluginName": "apify-cli",
931
+ "pluginType": "core",
932
+ "strict": true,
933
+ "enableJsonFlag": true,
934
+ "isESM": true,
935
+ "relativePath": [
936
+ "dist",
937
+ "commands",
938
+ "builds",
939
+ "ls.js"
940
+ ]
941
+ },
739
942
  "datasets": {
740
943
  "aliases": [],
741
944
  "args": {},
@@ -816,6 +1019,71 @@
816
1019
  "index.js"
817
1020
  ]
818
1021
  },
1022
+ "runs:ls": {
1023
+ "aliases": [],
1024
+ "args": {},
1025
+ "description": "Lists all runs of the Actor.",
1026
+ "flags": {
1027
+ "json": {
1028
+ "description": "Format output as json.",
1029
+ "helpGroup": "GLOBAL",
1030
+ "name": "json",
1031
+ "allowNo": false,
1032
+ "type": "boolean"
1033
+ },
1034
+ "actor": {
1035
+ "description": "Optional Actor ID or Name to list runs for. By default, it will use the Actor from the current directory.",
1036
+ "name": "actor",
1037
+ "hasDynamicHelp": false,
1038
+ "multiple": false,
1039
+ "type": "option"
1040
+ },
1041
+ "offset": {
1042
+ "description": "Number of runs that will be skipped.",
1043
+ "name": "offset",
1044
+ "default": 0,
1045
+ "hasDynamicHelp": false,
1046
+ "multiple": false,
1047
+ "type": "option"
1048
+ },
1049
+ "limit": {
1050
+ "description": "Number of runs that will be listed.",
1051
+ "name": "limit",
1052
+ "default": 10,
1053
+ "hasDynamicHelp": false,
1054
+ "multiple": false,
1055
+ "type": "option"
1056
+ },
1057
+ "desc": {
1058
+ "description": "Sort runs in descending order.",
1059
+ "name": "desc",
1060
+ "allowNo": false,
1061
+ "type": "boolean"
1062
+ },
1063
+ "compact": {
1064
+ "char": "c",
1065
+ "description": "Display a compact table.",
1066
+ "name": "compact",
1067
+ "allowNo": false,
1068
+ "type": "boolean"
1069
+ }
1070
+ },
1071
+ "hasDynamicHelp": false,
1072
+ "hiddenAliases": [],
1073
+ "id": "runs:ls",
1074
+ "pluginAlias": "apify-cli",
1075
+ "pluginName": "apify-cli",
1076
+ "pluginType": "core",
1077
+ "strict": true,
1078
+ "enableJsonFlag": true,
1079
+ "isESM": true,
1080
+ "relativePath": [
1081
+ "dist",
1082
+ "commands",
1083
+ "runs",
1084
+ "ls.js"
1085
+ ]
1086
+ },
819
1087
  "secrets:add": {
820
1088
  "aliases": [],
821
1089
  "args": {
@@ -977,5 +1245,5 @@
977
1245
  ]
978
1246
  }
979
1247
  },
980
- "version": "0.20.7"
1248
+ "version": "0.21.0-beta.1"
981
1249
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apify-cli",
3
- "version": "0.20.7",
3
+ "version": "0.21.0-beta.1",
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",
@@ -66,18 +66,21 @@
66
66
  "@oclif/core": "~4.0.17",
67
67
  "@oclif/plugin-help": "~6.2.8",
68
68
  "@root/walk": "~1.1.0",
69
+ "@sapphire/duration": "^1.1.2",
70
+ "@sapphire/timestamp": "^1.0.3",
69
71
  "adm-zip": "~0.5.15",
70
72
  "ajv": "~8.17.1",
71
73
  "apify-client": "~2.9.4",
72
74
  "archiver": "~7.0.1",
73
75
  "axios": "~1.7.3",
74
76
  "chalk": "~5.3.0",
77
+ "cli-table3": "^0.6.5",
75
78
  "computer-name": "~0.1.0",
76
79
  "configparser": "~0.3.10",
77
80
  "cors": "~2.8.5",
78
81
  "detect-indent": "~7.0.1",
79
82
  "escape-string-regexp": "~5.0.0",
80
- "express": "~4.19.2",
83
+ "express": "~4.21.0",
81
84
  "fs-extra": "^11.2.0",
82
85
  "globby": "~14.0.2",
83
86
  "handlebars": "~4.7.8",