apify-cli 1.0.0-beta.92 → 1.0.0-beta.93
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 +59 -18
- package/dist/.tsbuildinfo +1 -1
- package/dist/commands/call.d.ts +2 -2
- package/dist/commands/call.d.ts.map +1 -1
- package/dist/commands/call.js +27 -90
- package/dist/commands/call.js.map +1 -1
- package/dist/commands/task/index.d.ts +6 -0
- package/dist/commands/task/index.d.ts.map +1 -0
- package/dist/commands/task/index.js +13 -0
- package/dist/commands/task/index.js.map +1 -0
- package/dist/commands/task/run.d.ts +16 -0
- package/dist/commands/task/run.d.ts.map +1 -0
- package/dist/commands/task/run.js +91 -0
- package/dist/commands/task/run.js.map +1 -0
- package/dist/lib/commands/run-on-cloud.d.ts +19 -0
- package/dist/lib/commands/run-on-cloud.d.ts.map +1 -0
- package/dist/lib/commands/run-on-cloud.js +90 -0
- package/dist/lib/commands/run-on-cloud.js.map +1 -0
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/lib/utils.js +6 -2
- package/dist/lib/utils.js.map +1 -1
- package/oclif.manifest.json +84 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -293,6 +293,8 @@ This section contains printouts of `apify help` for all commands.
|
|
|
293
293
|
* [`apify secrets`](#apify-secrets)
|
|
294
294
|
* [`apify secrets add NAME VALUE`](#apify-secrets-add-name-value)
|
|
295
295
|
* [`apify secrets rm NAME`](#apify-secrets-rm-name)
|
|
296
|
+
* [`apify task`](#apify-task)
|
|
297
|
+
* [`apify task run TASKID`](#apify-task-run-taskid)
|
|
296
298
|
* [`apify validate-schema [PATH]`](#apify-validate-schema-path)
|
|
297
299
|
|
|
298
300
|
## `apify actor`
|
|
@@ -307,7 +309,7 @@ DESCRIPTION
|
|
|
307
309
|
Commands are designed to be used in Actor runs. All commands are in PoC state, do not use in production environments.
|
|
308
310
|
```
|
|
309
311
|
|
|
310
|
-
_See code: [src/commands/actor/index.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.
|
|
312
|
+
_See code: [src/commands/actor/index.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.93/src/commands/actor/index.ts)_
|
|
311
313
|
|
|
312
314
|
## `apify actor get-input`
|
|
313
315
|
|
|
@@ -321,7 +323,7 @@ DESCRIPTION
|
|
|
321
323
|
Gets the Actor input value from the default key-value store associated with the Actor run.
|
|
322
324
|
```
|
|
323
325
|
|
|
324
|
-
_See code: [src/commands/actor/get-input.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.
|
|
326
|
+
_See code: [src/commands/actor/get-input.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.93/src/commands/actor/get-input.ts)_
|
|
325
327
|
|
|
326
328
|
## `apify actor get-value KEY`
|
|
327
329
|
|
|
@@ -338,7 +340,7 @@ DESCRIPTION
|
|
|
338
340
|
Gets a value from the default key-value store associated with the Actor run.
|
|
339
341
|
```
|
|
340
342
|
|
|
341
|
-
_See code: [src/commands/actor/get-value.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.
|
|
343
|
+
_See code: [src/commands/actor/get-value.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.93/src/commands/actor/get-value.ts)_
|
|
342
344
|
|
|
343
345
|
## `apify actor push-data [ITEM]`
|
|
344
346
|
|
|
@@ -360,7 +362,7 @@ DESCRIPTION
|
|
|
360
362
|
$ cat ./test.json | apify actor push-data
|
|
361
363
|
```
|
|
362
364
|
|
|
363
|
-
_See code: [src/commands/actor/push-data.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.
|
|
365
|
+
_See code: [src/commands/actor/push-data.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.93/src/commands/actor/push-data.ts)_
|
|
364
366
|
|
|
365
367
|
## `apify actor set-value KEY [VALUE]`
|
|
366
368
|
|
|
@@ -389,7 +391,7 @@ DESCRIPTION
|
|
|
389
391
|
$ cat ./my-text-file.txt | apify actor set-value KEY --contentType text/plain
|
|
390
392
|
```
|
|
391
393
|
|
|
392
|
-
_See code: [src/commands/actor/set-value.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.
|
|
394
|
+
_See code: [src/commands/actor/set-value.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.93/src/commands/actor/set-value.ts)_
|
|
393
395
|
|
|
394
396
|
## `apify call [ACTORID]`
|
|
395
397
|
|
|
@@ -415,7 +417,7 @@ DESCRIPTION
|
|
|
415
417
|
takes input for the Actor from the default local key-value store by default.
|
|
416
418
|
```
|
|
417
419
|
|
|
418
|
-
_See code: [src/commands/call.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.
|
|
420
|
+
_See code: [src/commands/call.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.93/src/commands/call.ts)_
|
|
419
421
|
|
|
420
422
|
## `apify create [ACTORNAME]`
|
|
421
423
|
|
|
@@ -440,7 +442,7 @@ DESCRIPTION
|
|
|
440
442
|
Creates a new Actor project directory from a selected boilerplate template.
|
|
441
443
|
```
|
|
442
444
|
|
|
443
|
-
_See code: [src/commands/create.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.
|
|
445
|
+
_See code: [src/commands/create.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.93/src/commands/create.ts)_
|
|
444
446
|
|
|
445
447
|
## `apify help [COMMAND]`
|
|
446
448
|
|
|
@@ -475,7 +477,7 @@ DESCRIPTION
|
|
|
475
477
|
The information is printed to the console.
|
|
476
478
|
```
|
|
477
479
|
|
|
478
|
-
_See code: [src/commands/info.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.
|
|
480
|
+
_See code: [src/commands/info.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.93/src/commands/info.ts)_
|
|
479
481
|
|
|
480
482
|
## `apify init [ACTORNAME]`
|
|
481
483
|
|
|
@@ -503,7 +505,7 @@ DESCRIPTION
|
|
|
503
505
|
WARNING: The directory at "storage" will be overwritten if it already exists.
|
|
504
506
|
```
|
|
505
507
|
|
|
506
|
-
_See code: [src/commands/init.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.
|
|
508
|
+
_See code: [src/commands/init.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.93/src/commands/init.ts)_
|
|
507
509
|
|
|
508
510
|
## `apify login`
|
|
509
511
|
|
|
@@ -524,7 +526,7 @@ DESCRIPTION
|
|
|
524
526
|
"apify" commands. To log out, call "apify logout".
|
|
525
527
|
```
|
|
526
528
|
|
|
527
|
-
_See code: [src/commands/login.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.
|
|
529
|
+
_See code: [src/commands/login.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.93/src/commands/login.ts)_
|
|
528
530
|
|
|
529
531
|
## `apify logout`
|
|
530
532
|
|
|
@@ -540,7 +542,7 @@ DESCRIPTION
|
|
|
540
542
|
call "apify login".
|
|
541
543
|
```
|
|
542
544
|
|
|
543
|
-
_See code: [src/commands/logout.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.
|
|
545
|
+
_See code: [src/commands/logout.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.93/src/commands/logout.ts)_
|
|
544
546
|
|
|
545
547
|
## `apify pull [ACTORID]`
|
|
546
548
|
|
|
@@ -562,7 +564,7 @@ DESCRIPTION
|
|
|
562
564
|
cloned. If it is defined as Web IDE, it will fetch the files.
|
|
563
565
|
```
|
|
564
566
|
|
|
565
|
-
_See code: [src/commands/pull.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.
|
|
567
|
+
_See code: [src/commands/pull.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.93/src/commands/pull.ts)_
|
|
566
568
|
|
|
567
569
|
## `apify push [ACTORID]`
|
|
568
570
|
|
|
@@ -600,7 +602,7 @@ DESCRIPTION
|
|
|
600
602
|
overwritten with --force flag.
|
|
601
603
|
```
|
|
602
604
|
|
|
603
|
-
_See code: [src/commands/push.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.
|
|
605
|
+
_See code: [src/commands/push.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.93/src/commands/push.ts)_
|
|
604
606
|
|
|
605
607
|
## `apify run`
|
|
606
608
|
|
|
@@ -632,7 +634,7 @@ DESCRIPTION
|
|
|
632
634
|
package.json file. You can set up your own main file or environment variables by changing it.
|
|
633
635
|
```
|
|
634
636
|
|
|
635
|
-
_See code: [src/commands/run.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.
|
|
637
|
+
_See code: [src/commands/run.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.93/src/commands/run.ts)_
|
|
636
638
|
|
|
637
639
|
## `apify secrets`
|
|
638
640
|
|
|
@@ -662,7 +664,7 @@ DESCRIPTION
|
|
|
662
664
|
of the Actor.
|
|
663
665
|
```
|
|
664
666
|
|
|
665
|
-
_See code: [src/commands/secrets/index.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.
|
|
667
|
+
_See code: [src/commands/secrets/index.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.93/src/commands/secrets/index.ts)_
|
|
666
668
|
|
|
667
669
|
## `apify secrets add NAME VALUE`
|
|
668
670
|
|
|
@@ -681,7 +683,7 @@ DESCRIPTION
|
|
|
681
683
|
The secrets are stored to a file at ~/.apify
|
|
682
684
|
```
|
|
683
685
|
|
|
684
|
-
_See code: [src/commands/secrets/add.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.
|
|
686
|
+
_See code: [src/commands/secrets/add.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.93/src/commands/secrets/add.ts)_
|
|
685
687
|
|
|
686
688
|
## `apify secrets rm NAME`
|
|
687
689
|
|
|
@@ -698,7 +700,46 @@ DESCRIPTION
|
|
|
698
700
|
Removes the secret.
|
|
699
701
|
```
|
|
700
702
|
|
|
701
|
-
_See code: [src/commands/secrets/rm.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.
|
|
703
|
+
_See code: [src/commands/secrets/rm.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.93/src/commands/secrets/rm.ts)_
|
|
704
|
+
|
|
705
|
+
## `apify task`
|
|
706
|
+
|
|
707
|
+
Commands are designed to be used to interact with Tasks.
|
|
708
|
+
|
|
709
|
+
```
|
|
710
|
+
USAGE
|
|
711
|
+
$ apify task
|
|
712
|
+
|
|
713
|
+
DESCRIPTION
|
|
714
|
+
Commands are designed to be used to interact with Tasks.
|
|
715
|
+
```
|
|
716
|
+
|
|
717
|
+
_See code: [src/commands/task/index.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.93/src/commands/task/index.ts)_
|
|
718
|
+
|
|
719
|
+
## `apify task run TASKID`
|
|
720
|
+
|
|
721
|
+
Runs a specific Actor remotely on the Apify cloud platform.
|
|
722
|
+
|
|
723
|
+
```
|
|
724
|
+
USAGE
|
|
725
|
+
$ apify task run TASKID [-b <value>] [-t <value>] [-m <value>] [-w <value>]
|
|
726
|
+
|
|
727
|
+
ARGUMENTS
|
|
728
|
+
TASKID Name or ID of the Task to run (e.g. "my-task" or "E2jjCZBezvAZnX8Rb").
|
|
729
|
+
|
|
730
|
+
FLAGS
|
|
731
|
+
-b, --build=<value> Tag or number of the build to run (e.g. "latest" or "1.2.34").
|
|
732
|
+
-m, --memory=<value> Amount of memory allocated for the Task run, in megabytes.
|
|
733
|
+
-t, --timeout=<value> Timeout for the Task run in seconds. Zero value means there is no timeout.
|
|
734
|
+
-w, --wait-for-finish=<value> Seconds for waiting to run to finish, if no value passed, it waits forever.
|
|
735
|
+
|
|
736
|
+
DESCRIPTION
|
|
737
|
+
Runs a specific Actor remotely on the Apify cloud platform.
|
|
738
|
+
The Actor is run under your current Apify account. Therefore you need to be logged in by calling "apify login". It
|
|
739
|
+
takes input for the Actor from the default local key-value store by default.
|
|
740
|
+
```
|
|
741
|
+
|
|
742
|
+
_See code: [src/commands/task/run.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.93/src/commands/task/run.ts)_
|
|
702
743
|
|
|
703
744
|
## `apify validate-schema [PATH]`
|
|
704
745
|
|
|
@@ -723,5 +764,5 @@ DESCRIPTION
|
|
|
723
764
|
You can also pass any custom path to your input schema to have it validated instead.
|
|
724
765
|
```
|
|
725
766
|
|
|
726
|
-
_See code: [src/commands/validate-schema.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.
|
|
767
|
+
_See code: [src/commands/validate-schema.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.93/src/commands/validate-schema.ts)_
|
|
727
768
|
<!-- commandsstop -->
|