apify-cli 0.7.0 → 0.7.1-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.
package/README.md CHANGED
@@ -235,6 +235,10 @@ or [contact us](https://www.apify.com/contact).
235
235
  This section contains printouts of `apify help` for all commands.
236
236
 
237
237
  <!-- commands -->
238
+ * [`apify actor`](#apify-actor)
239
+ * [`apify actor:get-input`](#apify-actorget-input)
240
+ * [`apify actor:get-value KEY`](#apify-actorget-value-key)
241
+ * [`apify actor:set-value KEY [VALUE]`](#apify-actorset-value-key-value)
238
242
  * [`apify call [ACTID]`](#apify-call-actid)
239
243
  * [`apify create [ACTORNAME]`](#apify-create-actorname)
240
244
  * [`apify info`](#apify-info)
@@ -248,6 +252,72 @@ This section contains printouts of `apify help` for all commands.
248
252
  * [`apify secrets:rm NAME`](#apify-secretsrm-name)
249
253
  * [`apify vis [PATH]`](#apify-vis-path)
250
254
 
255
+ ## `apify actor`
256
+
257
+ Commands are designed to be used in actor runs. All commands are in PoC state, do not use in production environments.
258
+
259
+ ```
260
+ USAGE
261
+ $ apify actor
262
+ ```
263
+
264
+ _See code: [src/commands/actor/index.js](https://github.com/apify/apify-cli/blob/v0.7.1/src/commands/actor/index.js)_
265
+
266
+ ## `apify actor:get-input`
267
+
268
+ Gets the actor input value from the default key-value store associated with the actor run.
269
+
270
+ ```
271
+ USAGE
272
+ $ apify actor:get-input
273
+ ```
274
+
275
+ _See code: [src/commands/actor/get-input.js](https://github.com/apify/apify-cli/blob/v0.7.1/src/commands/actor/get-input.js)_
276
+
277
+ ## `apify actor:get-value KEY`
278
+
279
+ Gets a value from the default key-value store associated with the actor run.
280
+
281
+ ```
282
+ USAGE
283
+ $ apify actor:get-value KEY
284
+
285
+ ARGUMENTS
286
+ KEY Key of the record in key-value store
287
+ ```
288
+
289
+ _See code: [src/commands/actor/get-value.js](https://github.com/apify/apify-cli/blob/v0.7.1/src/commands/actor/get-value.js)_
290
+
291
+ ## `apify actor:set-value KEY [VALUE]`
292
+
293
+ Set record into the default KeyValueStore associated with the actor run.
294
+
295
+ ```
296
+ USAGE
297
+ $ apify actor:set-value KEY [VALUE]
298
+
299
+ ARGUMENTS
300
+ KEY Key of the record in key-value store.
301
+
302
+ VALUE Record data, which can be one of the following values:
303
+ - If empty, the record in the key-value store is deleted.
304
+ - If no `contentType` flag is specified, value is expected to be any JSON string value.
305
+ - If options.contentType is set, value is taken as is.
306
+
307
+ OPTIONS
308
+ -c, --contentType=contentType Specifies a custom MIME content type of the record. By default "application/json" is
309
+ used.
310
+
311
+ DESCRIPTION
312
+ It is possible to pass data using argument or stdin.
313
+ Passing data using argument:
314
+ $ apify actor:set-value KEY my-value
315
+ Passing data using stdin with pipe:
316
+ $ cat ./my-text-file.txt | apify actor:set-value KEY --contentType text/plain
317
+ ```
318
+
319
+ _See code: [src/commands/actor/set-value.js](https://github.com/apify/apify-cli/blob/v0.7.1/src/commands/actor/set-value.js)_
320
+
251
321
  ## `apify call [ACTID]`
252
322
 
253
323
  Runs a specific actor remotely on the Apify cloud platform.
@@ -267,11 +337,11 @@ OPTIONS
267
337
  -w, --wait-for-finish=wait-for-finish Seconds for waiting to run to finish, if no value passed, it waits forever.
268
338
 
269
339
  DESCRIPTION
270
- The actor is run under your current Apify account, therefore you need to be logged in by calling "apify login". It
340
+ The actor is run under your current Apify account, therefore you need to be logged in by calling "apify login". It
271
341
  takes input for the actor from the default local key-value store by default.
272
342
  ```
273
343
 
274
- _See code: [src/commands/call.js](https://github.com/apify/apify-cli/blob/v0.6.7/src/commands/call.js)_
344
+ _See code: [src/commands/call.js](https://github.com/apify/apify-cli/blob/v0.7.1/src/commands/call.js)_
275
345
 
276
346
  ## `apify create [ACTORNAME]`
277
347
 
@@ -290,7 +360,7 @@ OPTIONS
290
360
  available template names.
291
361
  ```
292
362
 
293
- _See code: [src/commands/create.js](https://github.com/apify/apify-cli/blob/v0.6.7/src/commands/create.js)_
363
+ _See code: [src/commands/create.js](https://github.com/apify/apify-cli/blob/v0.7.1/src/commands/create.js)_
294
364
 
295
365
  ## `apify info`
296
366
 
@@ -304,7 +374,7 @@ DESCRIPTION
304
374
  The information is printed to the console.
305
375
  ```
306
376
 
307
- _See code: [src/commands/info.js](https://github.com/apify/apify-cli/blob/v0.6.7/src/commands/info.js)_
377
+ _See code: [src/commands/info.js](https://github.com/apify/apify-cli/blob/v0.7.1/src/commands/info.js)_
308
378
 
309
379
  ## `apify init [ACTORNAME]`
310
380
 
@@ -318,13 +388,13 @@ ARGUMENTS
318
388
  ACTORNAME Name of the actor. If not provided, you will be prompted for it.
319
389
 
320
390
  DESCRIPTION
321
- The command only creates the "apify.json" file and the "apify_storage" directory in the current directory, but will
391
+ The command only creates the "apify.json" file and the "apify_storage" directory in the current directory, but will
322
392
  not touch anything else.
323
393
 
324
394
  WARNING: The directory at "apify_storage" will be overwritten if it already exists.
325
395
  ```
326
396
 
327
- _See code: [src/commands/init.js](https://github.com/apify/apify-cli/blob/v0.6.7/src/commands/init.js)_
397
+ _See code: [src/commands/init.js](https://github.com/apify/apify-cli/blob/v0.7.1/src/commands/init.js)_
328
398
 
329
399
  ## `apify login`
330
400
 
@@ -338,11 +408,11 @@ OPTIONS
338
408
  -t, --token=token [Optional] Apify API token
339
409
 
340
410
  DESCRIPTION
341
- The API token and other account information is stored in the ~/.apify directory, from where it is read by all other
411
+ The API token and other account information is stored in the ~/.apify directory, from where it is read by all other
342
412
  "apify" commands. To log out, call "apify logout".
343
413
  ```
344
414
 
345
- _See code: [src/commands/login.js](https://github.com/apify/apify-cli/blob/v0.6.7/src/commands/login.js)_
415
+ _See code: [src/commands/login.js](https://github.com/apify/apify-cli/blob/v0.7.1/src/commands/login.js)_
346
416
 
347
417
  ## `apify logout`
348
418
 
@@ -357,7 +427,7 @@ DESCRIPTION
357
427
  call "apify login".
358
428
  ```
359
429
 
360
- _See code: [src/commands/logout.js](https://github.com/apify/apify-cli/blob/v0.6.7/src/commands/logout.js)_
430
+ _See code: [src/commands/logout.js](https://github.com/apify/apify-cli/blob/v0.7.1/src/commands/logout.js)_
361
431
 
362
432
  ## `apify push [ACTORID]`
363
433
 
@@ -384,15 +454,15 @@ OPTIONS
384
454
  should be pushed. By default, it is taken from the "apify.json" file.
385
455
 
386
456
  DESCRIPTION
387
- The actor settings are read from the "apify.json" file in the current directory, but they can be overridden using
457
+ The actor settings are read from the "apify.json" file in the current directory, but they can be overridden using
388
458
  command-line options.
389
- NOTE: If the source files are smaller than 3 MB then they are uploaded as
459
+ NOTE: If the source files are smaller than 3 MB then they are uploaded as
390
460
  "Multiple source files", otherwise they are uploaded as "Zip file".
391
461
 
392
462
  WARNING: If the target actor already exists in your Apify account, it will be overwritten!
393
463
  ```
394
464
 
395
- _See code: [src/commands/push.js](https://github.com/apify/apify-cli/blob/v0.6.7/src/commands/push.js)_
465
+ _See code: [src/commands/push.js](https://github.com/apify/apify-cli/blob/v0.7.1/src/commands/push.js)_
396
466
 
397
467
  ## `apify run`
398
468
 
@@ -418,11 +488,11 @@ DESCRIPTION
418
488
  example, this causes the actor input, as well as all other data in key-value stores, datasets or request queues to be
419
489
  stored in the "apify_storage" directory, rather than on the Apify platform.
420
490
 
421
- NOTE: You can override the default behaviour of command overriding npm start script value in a package.json file. You
491
+ NOTE: You can override the default behaviour of command overriding npm start script value in a package.json file. You
422
492
  can set up your own main file or environment variables by changing it.
423
493
  ```
424
494
 
425
- _See code: [src/commands/run.js](https://github.com/apify/apify-cli/blob/v0.6.7/src/commands/run.js)_
495
+ _See code: [src/commands/run.js](https://github.com/apify/apify-cli/blob/v0.7.1/src/commands/run.js)_
426
496
 
427
497
  ## `apify secrets`
428
498
 
@@ -448,7 +518,7 @@ DESCRIPTION
448
518
  of the actor.
449
519
  ```
450
520
 
451
- _See code: [src/commands/secrets/index.js](https://github.com/apify/apify-cli/blob/v0.6.7/src/commands/secrets/index.js)_
521
+ _See code: [src/commands/secrets/index.js](https://github.com/apify/apify-cli/blob/v0.7.1/src/commands/secrets/index.js)_
452
522
 
453
523
  ## `apify secrets:add NAME VALUE`
454
524
 
@@ -466,7 +536,7 @@ DESCRIPTION
466
536
  The secrets are stored to a file at ~/.apify
467
537
  ```
468
538
 
469
- _See code: [src/commands/secrets/add.js](https://github.com/apify/apify-cli/blob/v0.6.7/src/commands/secrets/add.js)_
539
+ _See code: [src/commands/secrets/add.js](https://github.com/apify/apify-cli/blob/v0.7.1/src/commands/secrets/add.js)_
470
540
 
471
541
  ## `apify secrets:rm NAME`
472
542
 
@@ -480,7 +550,7 @@ ARGUMENTS
480
550
  NAME Name of the secret
481
551
  ```
482
552
 
483
- _See code: [src/commands/secrets/rm.js](https://github.com/apify/apify-cli/blob/v0.6.7/src/commands/secrets/rm.js)_
553
+ _See code: [src/commands/secrets/rm.js](https://github.com/apify/apify-cli/blob/v0.7.1/src/commands/secrets/rm.js)_
484
554
 
485
555
  ## `apify vis [PATH]`
486
556
 
@@ -494,5 +564,5 @@ ARGUMENTS
494
564
  PATH Optional path to your INPUT_SCHEMA.json file. If not provided ./INPUT_SCHEMA.json is used.
495
565
  ```
496
566
 
497
- _See code: [src/commands/vis.js](https://github.com/apify/apify-cli/blob/v0.6.7/src/commands/vis.js)_
567
+ _See code: [src/commands/vis.js](https://github.com/apify/apify-cli/blob/v0.7.1/src/commands/vis.js)_
498
568
  <!-- commandsstop -->