apify-cli 0.19.3-beta.4 → 1.0.0-beta.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.
Files changed (231) hide show
  1. package/README.md +87 -63
  2. package/bin/dev.cmd +3 -0
  3. package/bin/dev.js +16 -0
  4. package/bin/run.js +16 -0
  5. package/dist/.tsbuildinfo +1 -0
  6. package/dist/commands/actor/get-input.d.ts +6 -0
  7. package/dist/commands/actor/get-input.d.ts.map +1 -0
  8. package/dist/commands/actor/get-input.js +14 -0
  9. package/dist/commands/actor/get-input.js.map +1 -0
  10. package/dist/commands/actor/get-value.d.ts +9 -0
  11. package/dist/commands/actor/get-value.d.ts.map +1 -0
  12. package/dist/commands/actor/get-value.js +27 -0
  13. package/dist/commands/actor/get-value.js.map +1 -0
  14. package/dist/commands/actor/index.d.ts +6 -0
  15. package/dist/commands/actor/index.d.ts.map +1 -0
  16. package/dist/commands/actor/index.js +13 -0
  17. package/dist/commands/actor/index.js.map +1 -0
  18. package/dist/commands/actor/push-data.d.ts +11 -0
  19. package/dist/commands/actor/push-data.d.ts.map +1 -0
  20. package/dist/commands/actor/push-data.js +56 -0
  21. package/dist/commands/actor/push-data.js.map +1 -0
  22. package/dist/commands/actor/set-value.d.ts +15 -0
  23. package/dist/commands/actor/set-value.d.ts.map +1 -0
  24. package/dist/commands/actor/set-value.js +76 -0
  25. package/dist/commands/actor/set-value.js.map +1 -0
  26. package/dist/commands/call.d.ts +15 -0
  27. package/dist/commands/call.d.ts.map +1 -0
  28. package/dist/commands/call.js +142 -0
  29. package/dist/commands/call.js.map +1 -0
  30. package/dist/commands/check-version.d.ts +11 -0
  31. package/dist/commands/check-version.d.ts.map +1 -0
  32. package/dist/commands/check-version.js +39 -0
  33. package/dist/commands/check-version.js.map +1 -0
  34. package/dist/commands/create.d.ts +14 -0
  35. package/dist/commands/create.d.ts.map +1 -0
  36. package/dist/commands/create.js +181 -0
  37. package/dist/commands/create.js.map +1 -0
  38. package/dist/commands/edit-input-schema.d.ts +11 -0
  39. package/dist/commands/edit-input-schema.d.ts.map +1 -0
  40. package/{src → dist}/commands/edit-input-schema.js +81 -85
  41. package/dist/commands/edit-input-schema.js.map +1 -0
  42. package/dist/commands/info.d.ts +6 -0
  43. package/dist/commands/info.d.ts.map +1 -0
  44. package/dist/commands/info.js +26 -0
  45. package/dist/commands/info.js.map +1 -0
  46. package/dist/commands/init-wrap-scrapy.d.ts +10 -0
  47. package/dist/commands/init-wrap-scrapy.d.ts.map +1 -0
  48. package/dist/commands/init-wrap-scrapy.js +41 -0
  49. package/dist/commands/init-wrap-scrapy.js.map +1 -0
  50. package/dist/commands/init.d.ts +12 -0
  51. package/dist/commands/init.d.ts.map +1 -0
  52. package/dist/commands/init.js +88 -0
  53. package/dist/commands/init.js.map +1 -0
  54. package/dist/commands/login-new.d.ts +10 -0
  55. package/dist/commands/login-new.d.ts.map +1 -0
  56. package/{src → dist}/commands/login-new.js +79 -82
  57. package/dist/commands/login-new.js.map +1 -0
  58. package/dist/commands/login.d.ts +9 -0
  59. package/dist/commands/login.d.ts.map +1 -0
  60. package/dist/commands/login.js +43 -0
  61. package/dist/commands/login.js.map +1 -0
  62. package/dist/commands/logout.d.ts +6 -0
  63. package/dist/commands/logout.d.ts.map +1 -0
  64. package/dist/commands/logout.js +20 -0
  65. package/dist/commands/logout.js.map +1 -0
  66. package/dist/commands/pull.d.ts +12 -0
  67. package/dist/commands/pull.d.ts.map +1 -0
  68. package/dist/commands/pull.js +148 -0
  69. package/dist/commands/pull.js.map +1 -0
  70. package/dist/commands/push.d.ts +16 -0
  71. package/dist/commands/push.d.ts.map +1 -0
  72. package/dist/commands/push.js +242 -0
  73. package/dist/commands/push.js.map +1 -0
  74. package/dist/commands/run.d.ts +12 -0
  75. package/dist/commands/run.d.ts.map +1 -0
  76. package/{src → dist}/commands/run.js +96 -109
  77. package/dist/commands/run.js.map +1 -0
  78. package/dist/commands/secrets/add.d.ts +10 -0
  79. package/dist/commands/secrets/add.d.ts.map +1 -0
  80. package/dist/commands/secrets/add.js +31 -0
  81. package/dist/commands/secrets/add.js.map +1 -0
  82. package/dist/commands/secrets/index.d.ts +6 -0
  83. package/dist/commands/secrets/index.d.ts.map +1 -0
  84. package/dist/commands/secrets/index.js +24 -0
  85. package/dist/commands/secrets/index.js.map +1 -0
  86. package/dist/commands/secrets/rm.d.ts +9 -0
  87. package/dist/commands/secrets/rm.d.ts.map +1 -0
  88. package/dist/commands/secrets/rm.js +27 -0
  89. package/dist/commands/secrets/rm.js.map +1 -0
  90. package/dist/commands/vis.d.ts +9 -0
  91. package/dist/commands/vis.d.ts.map +1 -0
  92. package/dist/commands/vis.js +52 -0
  93. package/dist/commands/vis.js.map +1 -0
  94. package/dist/hooks/init.d.ts +7 -0
  95. package/dist/hooks/init.d.ts.map +1 -0
  96. package/dist/hooks/init.js +17 -0
  97. package/dist/hooks/init.js.map +1 -0
  98. package/dist/index.d.ts +2 -0
  99. package/dist/index.d.ts.map +1 -0
  100. package/dist/index.js +3 -0
  101. package/dist/index.js.map +1 -0
  102. package/dist/lib/actor.d.ts +27 -0
  103. package/dist/lib/actor.d.ts.map +1 -0
  104. package/{src → dist}/lib/actor.js +21 -44
  105. package/dist/lib/actor.js.map +1 -0
  106. package/dist/lib/apify-oclif-help.d.ts +15 -0
  107. package/dist/lib/apify-oclif-help.d.ts.map +1 -0
  108. package/dist/lib/apify-oclif-help.js +19 -0
  109. package/dist/lib/apify-oclif-help.js.map +1 -0
  110. package/dist/lib/apify_command.d.ts +22 -0
  111. package/dist/lib/apify_command.d.ts.map +1 -0
  112. package/dist/lib/apify_command.js +103 -0
  113. package/dist/lib/apify_command.js.map +1 -0
  114. package/dist/lib/community.d.ts +2 -0
  115. package/dist/lib/community.d.ts.map +1 -0
  116. package/dist/lib/community.js +4 -0
  117. package/dist/lib/community.js.map +1 -0
  118. package/dist/lib/consts.d.ts +45 -0
  119. package/dist/lib/consts.d.ts.map +1 -0
  120. package/dist/lib/consts.js +54 -0
  121. package/dist/lib/consts.js.map +1 -0
  122. package/dist/lib/create-utils.d.ts +8 -0
  123. package/dist/lib/create-utils.d.ts.map +1 -0
  124. package/{src → dist}/lib/create-utils.js +74 -113
  125. package/dist/lib/create-utils.js.map +1 -0
  126. package/dist/lib/exec.d.ts +4 -0
  127. package/dist/lib/exec.d.ts.map +1 -0
  128. package/{src → dist}/lib/exec.js +15 -16
  129. package/dist/lib/exec.js.map +1 -0
  130. package/dist/lib/files.d.ts +14 -0
  131. package/dist/lib/files.d.ts.map +1 -0
  132. package/dist/lib/files.js +58 -0
  133. package/dist/lib/files.js.map +1 -0
  134. package/dist/lib/input_schema.d.ts +26 -0
  135. package/dist/lib/input_schema.d.ts.map +1 -0
  136. package/{src → dist}/lib/input_schema.js +34 -55
  137. package/dist/lib/input_schema.js.map +1 -0
  138. package/dist/lib/local_state.d.ts +11 -0
  139. package/dist/lib/local_state.d.ts.map +1 -0
  140. package/dist/lib/local_state.js +27 -0
  141. package/dist/lib/local_state.js.map +1 -0
  142. package/dist/lib/outputs.d.ts +7 -0
  143. package/dist/lib/outputs.d.ts.map +1 -0
  144. package/{src → dist}/lib/outputs.js +8 -15
  145. package/dist/lib/outputs.js.map +1 -0
  146. package/dist/lib/project_analyzer.d.ts +4 -0
  147. package/dist/lib/project_analyzer.d.ts.map +1 -0
  148. package/{src → dist}/lib/project_analyzer.js +6 -11
  149. package/dist/lib/project_analyzer.js.map +1 -0
  150. package/dist/lib/projects/CrawleeAnalyzer.d.ts +4 -0
  151. package/dist/lib/projects/CrawleeAnalyzer.d.ts.map +1 -0
  152. package/{src → dist}/lib/projects/CrawleeAnalyzer.js +7 -24
  153. package/dist/lib/projects/CrawleeAnalyzer.js.map +1 -0
  154. package/dist/lib/projects/OldApifySDKAnalyzer.d.ts +4 -0
  155. package/dist/lib/projects/OldApifySDKAnalyzer.d.ts.map +1 -0
  156. package/{src → dist}/lib/projects/OldApifySDKAnalyzer.js +9 -32
  157. package/dist/lib/projects/OldApifySDKAnalyzer.js.map +1 -0
  158. package/dist/lib/projects/scrapy/ScrapyProjectAnalyzer.d.ts +17 -0
  159. package/dist/lib/projects/scrapy/ScrapyProjectAnalyzer.d.ts.map +1 -0
  160. package/{src/lib/scrapy-wrapper → dist/lib/projects/scrapy}/ScrapyProjectAnalyzer.js +33 -36
  161. package/dist/lib/projects/scrapy/ScrapyProjectAnalyzer.js.map +1 -0
  162. package/dist/lib/projects/scrapy/Spider.d.ts +14 -0
  163. package/dist/lib/projects/scrapy/Spider.d.ts.map +1 -0
  164. package/dist/lib/projects/scrapy/Spider.js +33 -0
  165. package/dist/lib/projects/scrapy/Spider.js.map +1 -0
  166. package/dist/lib/projects/scrapy/SpiderFileAnalyzer.d.ts +7 -0
  167. package/dist/lib/projects/scrapy/SpiderFileAnalyzer.d.ts.map +1 -0
  168. package/dist/lib/projects/scrapy/SpiderFileAnalyzer.js +25 -0
  169. package/dist/lib/projects/scrapy/SpiderFileAnalyzer.js.map +1 -0
  170. package/dist/lib/projects/scrapy/wrapScrapyProject.d.ts +4 -0
  171. package/dist/lib/projects/scrapy/wrapScrapyProject.d.ts.map +1 -0
  172. package/{src/lib/scrapy-wrapper/index.js → dist/lib/projects/scrapy/wrapScrapyProject.js} +43 -73
  173. package/dist/lib/projects/scrapy/wrapScrapyProject.js.map +1 -0
  174. package/dist/lib/projects/shared.d.ts +2 -0
  175. package/dist/lib/projects/shared.d.ts.map +1 -0
  176. package/dist/lib/projects/shared.js +13 -0
  177. package/dist/lib/projects/shared.js.map +1 -0
  178. package/dist/lib/secrets.d.ts +22 -0
  179. package/dist/lib/secrets.d.ts.map +1 -0
  180. package/{src → dist}/lib/secrets.js +32 -40
  181. package/dist/lib/secrets.js.map +1 -0
  182. package/dist/lib/telemetry.d.ts +21 -0
  183. package/dist/lib/telemetry.d.ts.map +1 -0
  184. package/dist/lib/telemetry.js +87 -0
  185. package/dist/lib/telemetry.js.map +1 -0
  186. package/dist/lib/types.d.ts +11 -0
  187. package/dist/lib/types.d.ts.map +1 -0
  188. package/dist/lib/types.js +2 -0
  189. package/dist/lib/types.js.map +1 -0
  190. package/dist/lib/utils.d.ts +106 -0
  191. package/dist/lib/utils.d.ts.map +1 -0
  192. package/{src → dist}/lib/utils.js +235 -347
  193. package/dist/lib/utils.js.map +1 -0
  194. package/dist/lib/version_check.d.ts +14 -0
  195. package/dist/lib/version_check.d.ts.map +1 -0
  196. package/{src → dist}/lib/version_check.js +25 -54
  197. package/dist/lib/version_check.js.map +1 -0
  198. package/oclif.manifest.json +722 -1
  199. package/package.json +137 -113
  200. package/index.js +0 -1
  201. package/src/bin/run +0 -16
  202. package/src/commands/actor/get-input.js +0 -12
  203. package/src/commands/actor/get-value.js +0 -23
  204. package/src/commands/actor/index.js +0 -13
  205. package/src/commands/actor/push-data.js +0 -44
  206. package/src/commands/actor/set-value.js +0 -63
  207. package/src/commands/call.js +0 -131
  208. package/src/commands/check-version.js +0 -28
  209. package/src/commands/create.js +0 -203
  210. package/src/commands/info.js +0 -24
  211. package/src/commands/init-wrap-scrapy.js +0 -34
  212. package/src/commands/init.js +0 -83
  213. package/src/commands/login.js +0 -40
  214. package/src/commands/logout.js +0 -18
  215. package/src/commands/pull.js +0 -154
  216. package/src/commands/push.js +0 -234
  217. package/src/commands/secrets/add.js +0 -28
  218. package/src/commands/secrets/index.js +0 -24
  219. package/src/commands/secrets/rm.js +0 -23
  220. package/src/commands/vis.js +0 -50
  221. package/src/hooks/init.js +0 -16
  222. package/src/lib/apify-oclif-help.js +0 -23
  223. package/src/lib/apify_command.js +0 -82
  224. package/src/lib/community.js +0 -3
  225. package/src/lib/consts.js +0 -69
  226. package/src/lib/files.js +0 -76
  227. package/src/lib/local_state.js +0 -39
  228. package/src/lib/scrapy-wrapper/Spider.js +0 -10
  229. package/src/lib/scrapy-wrapper/SpiderFileAnalyzer.js +0 -26
  230. package/src/lib/telemetry.js +0 -104
  231. /package/{src/bin → bin}/run.cmd +0 -0
package/README.md CHANGED
@@ -4,19 +4,19 @@
4
4
  <a href="https://travis-ci.com/apify/apify-cli?branch=master"><img src="https://travis-ci.com/apify/apify-cli.svg?branch=master" loading="lazy" alt="Build Status" style="display:inherit;" /></a>
5
5
 
6
6
  Apify command-line interface (Apify CLI) helps you create, develop, build and run
7
- [Apify actors](https://www.apify.com/actors),
7
+ [Apify Actors](https://www.apify.com/actors),
8
8
  and manage the Apify cloud platform from any computer.
9
9
 
10
- Apify actors are cloud programs that can perform arbitrary web scraping, automation or data processing job.
10
+ Apify Actors are cloud programs that can perform arbitrary web scraping, automation or data processing job.
11
11
  They accept input, perform their job and generate output.
12
- While you can develop actors in an online IDE directly in the [Apify web application](https://console.apify.com/),
13
- for complex projects it is more convenient to develop actors locally on your computer
12
+ While you can develop Actors in an online IDE directly in the [Apify web application](https://console.apify.com/),
13
+ for complex projects it is more convenient to develop Actors locally on your computer
14
14
  using <a href="https://github.com/apify/apify-sdk-js">Apify SDK</a>
15
- and only push the actors to the Apify cloud during deployment.
15
+ and only push the Actors to the Apify cloud during deployment.
16
16
  This is where the Apify CLI comes in.
17
17
 
18
- Note that actors running on the Apify platform are executed in Docker containers, so with an appropriate `Dockerfile`
19
- you can build your actors in any programming language.
18
+ Note that Actors running on the Apify platform are executed in Docker containers, so with an appropriate `Dockerfile`
19
+ you can build your Actors in any programming language.
20
20
  However, we recommend using JavaScript / Node.js, for which we provide most libraries and support.
21
21
 
22
22
 
@@ -151,7 +151,7 @@ apify call
151
151
 
152
152
  Runs the actor corresponding to the current directory on the Apify platform.
153
153
 
154
- This command can also be used to run other actors, for example:
154
+ This command can also be used to run other Actors, for example:
155
155
 
156
156
  ```bash
157
157
  apify call apify/hello-world
@@ -202,7 +202,7 @@ You can define the schema of the items in your dataset under the `storages.datas
202
202
 
203
203
  ## Environment variables
204
204
 
205
- There are two options how you can set up environment variables for actors.
205
+ There are two options how you can set up environment variables for Actors.
206
206
 
207
207
  ### Set up environment variables in .actor/actor.json
208
208
  All keys from `env` will be set as environment variables into Apify platform after you push actor to Apify. Current values on Apify will be overridden.
@@ -282,6 +282,7 @@ This section contains printouts of `apify help` for all commands.
282
282
  * [`apify actor:set-value KEY [VALUE]`](#apify-actorset-value-key-value)
283
283
  * [`apify call [ACTORID]`](#apify-call-actorid)
284
284
  * [`apify create [ACTORNAME]`](#apify-create-actorname)
285
+ * [`apify help [COMMANDS]`](#apify-help-commands)
285
286
  * [`apify info`](#apify-info)
286
287
  * [`apify init [ACTORNAME]`](#apify-init-actorname)
287
288
  * [`apify login`](#apify-login)
@@ -306,25 +307,25 @@ DESCRIPTION
306
307
  Commands are designed to be used in Actor runs. All commands are in PoC state, do not use in production environments.
307
308
  ```
308
309
 
309
- _See code: [src/commands/actor/index.js](https://github.com/apify/apify-cli/blob/v0.19.3/src/commands/actor/index.js)_
310
+ _See code: [src/commands/actor/index.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.0/src/commands/actor/index.ts)_
310
311
 
311
312
  ## `apify actor:get-input`
312
313
 
313
- Gets the actor input value from the default key-value store associated with the actor run.
314
+ Gets the Actor input value from the default key-value store associated with the Actor run.
314
315
 
315
316
  ```
316
317
  USAGE
317
318
  $ apify actor:get-input
318
319
 
319
320
  DESCRIPTION
320
- Gets the actor input value from the default key-value store associated with the actor run.
321
+ Gets the Actor input value from the default key-value store associated with the Actor run.
321
322
  ```
322
323
 
323
- _See code: [src/commands/actor/get-input.js](https://github.com/apify/apify-cli/blob/v0.19.3/src/commands/actor/get-input.js)_
324
+ _See code: [src/commands/actor/get-input.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.0/src/commands/actor/get-input.ts)_
324
325
 
325
326
  ## `apify actor:get-value KEY`
326
327
 
327
- Gets a value from the default key-value store associated with the actor run.
328
+ Gets a value from the default key-value store associated with the Actor run.
328
329
 
329
330
  ```
330
331
  USAGE
@@ -334,14 +335,14 @@ ARGUMENTS
334
335
  KEY Key of the record in key-value store
335
336
 
336
337
  DESCRIPTION
337
- Gets a value from the default key-value store associated with the actor run.
338
+ Gets a value from the default key-value store associated with the Actor run.
338
339
  ```
339
340
 
340
- _See code: [src/commands/actor/get-value.js](https://github.com/apify/apify-cli/blob/v0.19.3/src/commands/actor/get-value.js)_
341
+ _See code: [src/commands/actor/get-value.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.0/src/commands/actor/get-value.ts)_
341
342
 
342
343
  ## `apify actor:push-data [ITEM]`
343
344
 
344
- Stores an object or an array of objects to the default dataset of the actor run.
345
+ Stores an object or an array of objects to the default dataset of the Actor run.
345
346
 
346
347
  ```
347
348
  USAGE
@@ -351,7 +352,7 @@ ARGUMENTS
351
352
  ITEM JSON string with one object or array of objects containing data to be stored in the default dataset.
352
353
 
353
354
  DESCRIPTION
354
- Stores an object or an array of objects to the default dataset of the actor run.
355
+ Stores an object or an array of objects to the default dataset of the Actor run.
355
356
  It is possible to pass data using item argument or stdin.
356
357
  Passing data using argument:
357
358
  $ apify actor:push-data {"foo": "bar"}
@@ -359,11 +360,11 @@ DESCRIPTION
359
360
  $ cat ./test.json | apify actor:push-data
360
361
  ```
361
362
 
362
- _See code: [src/commands/actor/push-data.js](https://github.com/apify/apify-cli/blob/v0.19.3/src/commands/actor/push-data.js)_
363
+ _See code: [src/commands/actor/push-data.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.0/src/commands/actor/push-data.ts)_
363
364
 
364
365
  ## `apify actor:set-value KEY [VALUE]`
365
366
 
366
- Sets or removes record into the default key-value store associated with the Actor run.
367
+ Sets or removes record into the default KeyValueStore associated with the Actor run.
367
368
 
368
369
  ```
369
370
  USAGE
@@ -380,7 +381,7 @@ FLAGS
380
381
  -c, --contentType=<value> Specifies a custom MIME content type of the record. By default "application/json" is used.
381
382
 
382
383
  DESCRIPTION
383
- Sets or removes record into the default key-value store associated with the Actor run.
384
+ Sets or removes record into the default KeyValueStore associated with the Actor run.
384
385
  It is possible to pass data using argument or stdin.
385
386
  Passing data using argument:
386
387
  $ apify actor:set-value KEY my-value
@@ -388,33 +389,33 @@ DESCRIPTION
388
389
  $ cat ./my-text-file.txt | apify actor:set-value KEY --contentType text/plain
389
390
  ```
390
391
 
391
- _See code: [src/commands/actor/set-value.js](https://github.com/apify/apify-cli/blob/v0.19.3/src/commands/actor/set-value.js)_
392
+ _See code: [src/commands/actor/set-value.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.0/src/commands/actor/set-value.ts)_
392
393
 
393
394
  ## `apify call [ACTORID]`
394
395
 
395
- Runs a specific actor remotely on the Apify cloud platform.
396
+ Runs a specific Actor remotely on the Apify cloud platform.
396
397
 
397
398
  ```
398
399
  USAGE
399
400
  $ apify call [ACTORID] [-b <value>] [-t <value>] [-m <value>] [-w <value>]
400
401
 
401
402
  ARGUMENTS
402
- ACTORID Name or ID of the actor to run (e.g. "apify/hello-world" or "E2jjCZBezvAZnX8Rb"). If not provided, the
403
- command runs the remote actor specified in the ".actor/actor.json" file.
403
+ ACTORID Name or ID of the Actor to run (e.g. "apify/hello-world" or "E2jjCZBezvAZnX8Rb"). If not provided, the
404
+ command runs the remote Actor specified in the ".actor/actor.json" file.
404
405
 
405
406
  FLAGS
406
407
  -b, --build=<value> Tag or number of the build to run (e.g. "latest" or "1.2.34").
407
- -m, --memory=<value> Amount of memory allocated for the actor run, in megabytes.
408
- -t, --timeout=<value> Timeout for the actor run in seconds. Zero value means there is no timeout.
408
+ -m, --memory=<value> Amount of memory allocated for the Actor run, in megabytes.
409
+ -t, --timeout=<value> Timeout for the Actor run in seconds. Zero value means there is no timeout.
409
410
  -w, --wait-for-finish=<value> Seconds for waiting to run to finish, if no value passed, it waits forever.
410
411
 
411
412
  DESCRIPTION
412
- Runs a specific actor remotely on the Apify cloud platform.
413
+ Runs a specific Actor remotely on the Apify cloud platform.
413
414
  The Actor is run under your current Apify account. Therefore you need to be logged in by calling "apify login". It
414
415
  takes input for the Actor from the default local key-value store by default.
415
416
  ```
416
417
 
417
- _See code: [src/commands/call.js](https://github.com/apify/apify-cli/blob/v0.19.3/src/commands/call.js)_
418
+ _See code: [src/commands/call.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.0/src/commands/call.ts)_
418
419
 
419
420
  ## `apify create [ACTORNAME]`
420
421
 
@@ -428,17 +429,37 @@ ARGUMENTS
428
429
  ACTORNAME Name of the Actor and its directory
429
430
 
430
431
  FLAGS
431
- -t, --template=<value> Template for the Actor. If not provided, the command will prompt for it.
432
- Visit
433
- https://raw.githubusercontent.com/apify/actor-templates/master/templates/manifest.json to
434
- find available template names.
435
- --skip-dependency-install Skip installing Actor dependencies.
432
+ -t, --template=<value> Template for the Actor. If not provided, the command will prompt for it.
433
+ Visit
434
+ https://raw.githubusercontent.com/apify/actor-templates/master/templates/manifest.json
435
+ to find available template names.
436
+ --skip-dependency-install Skip installing Actor dependencies.
436
437
 
437
438
  DESCRIPTION
438
439
  Creates a new Actor project directory from a selected boilerplate template.
439
440
  ```
440
441
 
441
- _See code: [src/commands/create.js](https://github.com/apify/apify-cli/blob/v0.19.3/src/commands/create.js)_
442
+ _See code: [src/commands/create.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.0/src/commands/create.ts)_
443
+
444
+ ## `apify help [COMMANDS]`
445
+
446
+ Display help for apify.
447
+
448
+ ```
449
+ USAGE
450
+ $ apify help [COMMANDS] [-n]
451
+
452
+ ARGUMENTS
453
+ COMMANDS Command to show help for.
454
+
455
+ FLAGS
456
+ -n, --nested-commands Include all nested commands in the output.
457
+
458
+ DESCRIPTION
459
+ Display help for apify.
460
+ ```
461
+
462
+ _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.0.14/src/commands/help.ts)_
442
463
 
443
464
  ## `apify info`
444
465
 
@@ -453,7 +474,7 @@ DESCRIPTION
453
474
  The information is printed to the console.
454
475
  ```
455
476
 
456
- _See code: [src/commands/info.js](https://github.com/apify/apify-cli/blob/v0.19.3/src/commands/info.js)_
477
+ _See code: [src/commands/info.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.0/src/commands/info.ts)_
457
478
 
458
479
  ## `apify init [ACTORNAME]`
459
480
 
@@ -472,13 +493,16 @@ FLAGS
472
493
 
473
494
  DESCRIPTION
474
495
  Initializes a new Actor project in an existing directory.
475
- The command only creates the ".actor/actor.json" file and the "storage" directory in the current directory, but will
476
- not touch anything else.
496
+ If the directory contains a Scrapy project in Python, the command automatically creates wrappers so that you can run
497
+ your scrapers without changes.
498
+
499
+ The command creates the ".actor/actor.json" file and the "storage" directory in the current directory, but does not
500
+ touch any other existing files or directories.
477
501
 
478
502
  WARNING: The directory at "storage" will be overwritten if it already exists.
479
503
  ```
480
504
 
481
- _See code: [src/commands/init.js](https://github.com/apify/apify-cli/blob/v0.19.3/src/commands/init.js)_
505
+ _See code: [src/commands/init.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.0/src/commands/init.ts)_
482
506
 
483
507
  ## `apify login`
484
508
 
@@ -497,7 +521,7 @@ DESCRIPTION
497
521
  "apify" commands. To log out, call "apify logout".
498
522
  ```
499
523
 
500
- _See code: [src/commands/login.js](https://github.com/apify/apify-cli/blob/v0.19.3/src/commands/login.js)_
524
+ _See code: [src/commands/login.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.0/src/commands/login.ts)_
501
525
 
502
526
  ## `apify logout`
503
527
 
@@ -513,7 +537,7 @@ DESCRIPTION
513
537
  call "apify login".
514
538
  ```
515
539
 
516
- _See code: [src/commands/logout.js](https://github.com/apify/apify-cli/blob/v0.19.3/src/commands/logout.js)_
540
+ _See code: [src/commands/logout.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.0/src/commands/logout.ts)_
517
541
 
518
542
  ## `apify pull [ACTORID]`
519
543
 
@@ -524,7 +548,7 @@ USAGE
524
548
  $ apify pull [ACTORID] [-v <value>]
525
549
 
526
550
  ARGUMENTS
527
- ACTORID Name or ID of the actor to run (e.g. "apify/hello-world" or "E2jjCZBezvAZnX8Rb"). If not provided, the
551
+ ACTORID Name or ID of the Actor to run (e.g. "apify/hello-world" or "E2jjCZBezvAZnX8Rb"). If not provided, the
528
552
  command will update the Actor in the current directory based on its name in ".actor/actor.json" file.
529
553
 
530
554
  FLAGS
@@ -535,11 +559,11 @@ DESCRIPTION
535
559
  cloned. If it is defined as Web IDE, it will fetch the files.
536
560
  ```
537
561
 
538
- _See code: [src/commands/pull.js](https://github.com/apify/apify-cli/blob/v0.19.3/src/commands/pull.js)_
562
+ _See code: [src/commands/pull.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.0/src/commands/pull.ts)_
539
563
 
540
564
  ## `apify push [ACTORID]`
541
565
 
542
- Uploads the actor to the Apify platform and builds it there.
566
+ Uploads the Actor to the Apify platform and builds it there.
543
567
 
544
568
  ```
545
569
  USAGE
@@ -547,7 +571,7 @@ USAGE
547
571
 
548
572
  ARGUMENTS
549
573
  ACTORID Name or ID of the Actor to push (e.g. "apify/hello-world" or "E2jjCZBezvAZnX8Rb"). If not provided, the
550
- command will create or modify the actor with the name specified in ".actor/actor.json" file.
574
+ command will create or modify the Actor with the name specified in ".actor/actor.json" file.
551
575
 
552
576
  FLAGS
553
577
  -b, --build-tag=<value> Build tag to be applied to the successful Actor build. By default, it is taken from the
@@ -555,13 +579,13 @@ FLAGS
555
579
  -v, --version=<value> Actor version number to which the files should be pushed. By default, it is taken from
556
580
  the ".actor/actor.json" file.
557
581
  -w, --wait-for-finish=<value> Seconds for waiting to build to finish, if no value passed, it waits forever.
558
- --no-prompt Do not prompt for opening the actor details in a browser. This will also not open the
582
+ --no-prompt Do not prompt for opening the Actor details in a browser. This will also not open the
559
583
  browser automatically.
560
- --version-number=<value> DEPRECATED: Use flag version instead. Actor version number to which the files should be
584
+ --version-number=<value> DEPRECATED: Use flag version instead. Actor version number to which the files should be
561
585
  pushed. By default, it is taken from the ".actor/actor.json" file.
562
586
 
563
587
  DESCRIPTION
564
- Uploads the actor to the Apify platform and builds it there.
588
+ Uploads the Actor to the Apify platform and builds it there.
565
589
  The Actor settings are read from the ".actor/actor.json" file in the current directory, but they can be overridden
566
590
  using command-line options.
567
591
  NOTE: If the source files are smaller than 3 MB then they are uploaded as
@@ -570,7 +594,7 @@ DESCRIPTION
570
594
  WARNING: If the target Actor already exists in your Apify account, it will be overwritten!
571
595
  ```
572
596
 
573
- _See code: [src/commands/push.js](https://github.com/apify/apify-cli/blob/v0.19.3/src/commands/push.js)_
597
+ _See code: [src/commands/push.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.0/src/commands/push.ts)_
574
598
 
575
599
  ## `apify run`
576
600
 
@@ -581,12 +605,12 @@ USAGE
581
605
  $ apify run [-p] [--purge-queue] [--purge-dataset] [--purge-key-value-store]
582
606
 
583
607
  FLAGS
584
- -p, --purge Shortcut that combines the --purge-queue, --purge-dataset and --purge-key-value-store
585
- options.
586
- --purge-dataset Deletes the local directory containing the default dataset before the run starts.
587
- --purge-key-value-store Deletes all records from the default key-value store in the local directory before the run
588
- starts, except for the "INPUT" key.
589
- --purge-queue Deletes the local directory containing the default request queue before the run starts.
608
+ -p, --purge Shortcut that combines the --purge-queue, --purge-dataset and --purge-key-value-store
609
+ options.
610
+ --purge-dataset Deletes the local directory containing the default dataset before the run starts.
611
+ --purge-key-value-store Deletes all records from the default key-value store in the local directory before the
612
+ run starts, except for the "INPUT" key.
613
+ --purge-queue Deletes the local directory containing the default request queue before the run starts.
590
614
 
591
615
  DESCRIPTION
592
616
  Runs the Actor locally in the current directory.
@@ -594,11 +618,11 @@ DESCRIPTION
594
618
  example, this causes the Actor input, as well as all other data in key-value stores, datasets or request queues to be
595
619
  stored in the "storage" directory, rather than on the Apify platform.
596
620
 
597
- NOTE: You can override the command's default behavior for Node.js actors by overriding the "start" script in the
621
+ NOTE: You can override the command's default behavior for Node.js Actors by overriding the "start" script in the
598
622
  package.json file. You can set up your own main file or environment variables by changing it.
599
623
  ```
600
624
 
601
- _See code: [src/commands/run.js](https://github.com/apify/apify-cli/blob/v0.19.3/src/commands/run.js)_
625
+ _See code: [src/commands/run.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.0/src/commands/run.ts)_
602
626
 
603
627
  ## `apify secrets`
604
628
 
@@ -624,11 +648,11 @@ DESCRIPTION
624
648
  "version": "0.1
625
649
  }
626
650
 
627
- When the actor is pushed to Apify cloud, the "SECRET_ENV_VAR" and its value is stored as a secret environment variable
628
- of the actor.
651
+ When the Actor is pushed to Apify cloud, the "SECRET_ENV_VAR" and its value is stored as a secret environment variable
652
+ of the Actor.
629
653
  ```
630
654
 
631
- _See code: [src/commands/secrets/index.js](https://github.com/apify/apify-cli/blob/v0.19.3/src/commands/secrets/index.js)_
655
+ _See code: [src/commands/secrets/index.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.0/src/commands/secrets/index.ts)_
632
656
 
633
657
  ## `apify secrets:add NAME VALUE`
634
658
 
@@ -647,7 +671,7 @@ DESCRIPTION
647
671
  The secrets are stored to a file at ~/.apify
648
672
  ```
649
673
 
650
- _See code: [src/commands/secrets/add.js](https://github.com/apify/apify-cli/blob/v0.19.3/src/commands/secrets/add.js)_
674
+ _See code: [src/commands/secrets/add.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.0/src/commands/secrets/add.ts)_
651
675
 
652
676
  ## `apify secrets:rm NAME`
653
677
 
@@ -664,7 +688,7 @@ DESCRIPTION
664
688
  Removes the secret.
665
689
  ```
666
690
 
667
- _See code: [src/commands/secrets/rm.js](https://github.com/apify/apify-cli/blob/v0.19.3/src/commands/secrets/rm.js)_
691
+ _See code: [src/commands/secrets/rm.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.0/src/commands/secrets/rm.ts)_
668
692
 
669
693
  ## `apify vis [PATH]`
670
694
 
@@ -689,5 +713,5 @@ DESCRIPTION
689
713
  You can also pass any custom path to your input schema to have it validated instead.
690
714
  ```
691
715
 
692
- _See code: [src/commands/vis.js](https://github.com/apify/apify-cli/blob/v0.19.3/src/commands/vis.js)_
716
+ _See code: [src/commands/vis.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.0/src/commands/vis.ts)_
693
717
  <!-- commandsstop -->
package/bin/dev.cmd ADDED
@@ -0,0 +1,3 @@
1
+ @echo off
2
+
3
+ node "%~dp0\dev" %*
package/bin/dev.js ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env node_modules/.bin/tsx
2
+
3
+ import { execute } from '@oclif/core';
4
+
5
+ import { error } from '../src/lib/outputs.ts';
6
+
7
+ try {
8
+ await execute({ development: true, dir: import.meta.url });
9
+ } catch (err) {
10
+ const exitCode = (err.oclif && err.oclif.exit !== undefined) ? err.oclif.exit : 1;
11
+ if (exitCode !== 0) {
12
+ error(err.message);
13
+ if (process.env.DEBUG) console.error(err);
14
+ process.exit(exitCode);
15
+ }
16
+ }
package/bin/run.js ADDED
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env node
2
+
3
+ import { execute } from '@oclif/core';
4
+
5
+ import { error } from '../dist/lib/outputs.js';
6
+
7
+ try {
8
+ await execute({ development: false, dir: import.meta.url });
9
+ } catch (err) {
10
+ const exitCode = (err.oclif && err.oclif.exit !== undefined) ? err.oclif.exit : 1;
11
+ if (exitCode !== 0) {
12
+ error(err.message);
13
+ if (process.env.DEBUG) console.error(err);
14
+ process.exit(exitCode);
15
+ }
16
+ }