apify-cli 0.12.0 → 0.13.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 +20 -20
- package/npm-shrinkwrap.json +504 -461
- package/oclif.manifest.json +1 -1
- package/package.json +108 -104
- package/src/commands/check-version.js +27 -0
- package/src/hooks/init.js +13 -0
- package/src/lib/consts.js +4 -0
- package/src/lib/local_state.js +38 -0
- package/src/lib/utils.js +19 -32
- package/src/lib/version_check.js +76 -0
- package/src/hooks/pre_run.js +0 -10
package/README.md
CHANGED
|
@@ -139,7 +139,7 @@ This command can also be used to run other actors, for example:
|
|
|
139
139
|
apify call apify/hello-world
|
|
140
140
|
```
|
|
141
141
|
|
|
142
|
-
### So what's in this
|
|
142
|
+
### So what's in this .actor/actor.json file?
|
|
143
143
|
|
|
144
144
|
This file associates your local development project with an actor on the Apify platform.
|
|
145
145
|
It contains information such as actor name, version, build tag and environment variables.
|
|
@@ -186,7 +186,7 @@ You can define the schema of the items in your dataset under the `storages.datas
|
|
|
186
186
|
|
|
187
187
|
There are two options how you can set up environment variables for actors.
|
|
188
188
|
|
|
189
|
-
### Set up environment variables in
|
|
189
|
+
### Set up environment variables in .actor/actor.json
|
|
190
190
|
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.
|
|
191
191
|
```json
|
|
192
192
|
{
|
|
@@ -214,7 +214,7 @@ After setting up variables in the app, remove the `environmentVariables` from `.
|
|
|
214
214
|
```
|
|
215
215
|
|
|
216
216
|
|
|
217
|
-
#### How to set secret environment variables in
|
|
217
|
+
#### How to set secret environment variables in .actor/actor.json
|
|
218
218
|
|
|
219
219
|
CLI provides commands to manage secrets environment variables. Secrets are stored to the `~/.apify` directory.
|
|
220
220
|
You can add a new secret using the command:
|
|
@@ -284,7 +284,7 @@ USAGE
|
|
|
284
284
|
$ apify actor
|
|
285
285
|
```
|
|
286
286
|
|
|
287
|
-
_See code: [src/commands/actor/index.js](https://github.com/apify/apify-cli/blob/v0.
|
|
287
|
+
_See code: [src/commands/actor/index.js](https://github.com/apify/apify-cli/blob/v0.13.1/src/commands/actor/index.js)_
|
|
288
288
|
|
|
289
289
|
## `apify actor:get-input`
|
|
290
290
|
|
|
@@ -295,7 +295,7 @@ USAGE
|
|
|
295
295
|
$ apify actor:get-input
|
|
296
296
|
```
|
|
297
297
|
|
|
298
|
-
_See code: [src/commands/actor/get-input.js](https://github.com/apify/apify-cli/blob/v0.
|
|
298
|
+
_See code: [src/commands/actor/get-input.js](https://github.com/apify/apify-cli/blob/v0.13.1/src/commands/actor/get-input.js)_
|
|
299
299
|
|
|
300
300
|
## `apify actor:get-value KEY`
|
|
301
301
|
|
|
@@ -309,7 +309,7 @@ ARGUMENTS
|
|
|
309
309
|
KEY Key of the record in key-value store
|
|
310
310
|
```
|
|
311
311
|
|
|
312
|
-
_See code: [src/commands/actor/get-value.js](https://github.com/apify/apify-cli/blob/v0.
|
|
312
|
+
_See code: [src/commands/actor/get-value.js](https://github.com/apify/apify-cli/blob/v0.13.1/src/commands/actor/get-value.js)_
|
|
313
313
|
|
|
314
314
|
## `apify actor:push-data [ITEM]`
|
|
315
315
|
|
|
@@ -330,7 +330,7 @@ DESCRIPTION
|
|
|
330
330
|
$ cat ./test.json | apify actor:push-data
|
|
331
331
|
```
|
|
332
332
|
|
|
333
|
-
_See code: [src/commands/actor/push-data.js](https://github.com/apify/apify-cli/blob/v0.
|
|
333
|
+
_See code: [src/commands/actor/push-data.js](https://github.com/apify/apify-cli/blob/v0.13.1/src/commands/actor/push-data.js)_
|
|
334
334
|
|
|
335
335
|
## `apify actor:set-value KEY [VALUE]`
|
|
336
336
|
|
|
@@ -360,7 +360,7 @@ DESCRIPTION
|
|
|
360
360
|
$ cat ./my-text-file.txt | apify actor:set-value KEY --contentType text/plain
|
|
361
361
|
```
|
|
362
362
|
|
|
363
|
-
_See code: [src/commands/actor/set-value.js](https://github.com/apify/apify-cli/blob/v0.
|
|
363
|
+
_See code: [src/commands/actor/set-value.js](https://github.com/apify/apify-cli/blob/v0.13.1/src/commands/actor/set-value.js)_
|
|
364
364
|
|
|
365
365
|
## `apify call [ACTID]`
|
|
366
366
|
|
|
@@ -385,7 +385,7 @@ DESCRIPTION
|
|
|
385
385
|
takes input for the actor from the default local key-value store by default.
|
|
386
386
|
```
|
|
387
387
|
|
|
388
|
-
_See code: [src/commands/call.js](https://github.com/apify/apify-cli/blob/v0.
|
|
388
|
+
_See code: [src/commands/call.js](https://github.com/apify/apify-cli/blob/v0.13.1/src/commands/call.js)_
|
|
389
389
|
|
|
390
390
|
## `apify create [ACTORNAME]`
|
|
391
391
|
|
|
@@ -404,7 +404,7 @@ OPTIONS
|
|
|
404
404
|
find available template names.
|
|
405
405
|
```
|
|
406
406
|
|
|
407
|
-
_See code: [src/commands/create.js](https://github.com/apify/apify-cli/blob/v0.
|
|
407
|
+
_See code: [src/commands/create.js](https://github.com/apify/apify-cli/blob/v0.13.1/src/commands/create.js)_
|
|
408
408
|
|
|
409
409
|
## `apify info`
|
|
410
410
|
|
|
@@ -418,7 +418,7 @@ DESCRIPTION
|
|
|
418
418
|
The information is printed to the console.
|
|
419
419
|
```
|
|
420
420
|
|
|
421
|
-
_See code: [src/commands/info.js](https://github.com/apify/apify-cli/blob/v0.
|
|
421
|
+
_See code: [src/commands/info.js](https://github.com/apify/apify-cli/blob/v0.13.1/src/commands/info.js)_
|
|
422
422
|
|
|
423
423
|
## `apify init [ACTORNAME]`
|
|
424
424
|
|
|
@@ -438,7 +438,7 @@ DESCRIPTION
|
|
|
438
438
|
WARNING: The directory at "storage" will be overwritten if it already exists.
|
|
439
439
|
```
|
|
440
440
|
|
|
441
|
-
_See code: [src/commands/init.js](https://github.com/apify/apify-cli/blob/v0.
|
|
441
|
+
_See code: [src/commands/init.js](https://github.com/apify/apify-cli/blob/v0.13.1/src/commands/init.js)_
|
|
442
442
|
|
|
443
443
|
## `apify login`
|
|
444
444
|
|
|
@@ -456,7 +456,7 @@ DESCRIPTION
|
|
|
456
456
|
"apify" commands. To log out, call "apify logout".
|
|
457
457
|
```
|
|
458
458
|
|
|
459
|
-
_See code: [src/commands/login.js](https://github.com/apify/apify-cli/blob/v0.
|
|
459
|
+
_See code: [src/commands/login.js](https://github.com/apify/apify-cli/blob/v0.13.1/src/commands/login.js)_
|
|
460
460
|
|
|
461
461
|
## `apify logout`
|
|
462
462
|
|
|
@@ -471,7 +471,7 @@ DESCRIPTION
|
|
|
471
471
|
call "apify login".
|
|
472
472
|
```
|
|
473
473
|
|
|
474
|
-
_See code: [src/commands/logout.js](https://github.com/apify/apify-cli/blob/v0.
|
|
474
|
+
_See code: [src/commands/logout.js](https://github.com/apify/apify-cli/blob/v0.13.1/src/commands/logout.js)_
|
|
475
475
|
|
|
476
476
|
## `apify push [ACTORID]`
|
|
477
477
|
|
|
@@ -506,7 +506,7 @@ DESCRIPTION
|
|
|
506
506
|
WARNING: If the target actor already exists in your Apify account, it will be overwritten!
|
|
507
507
|
```
|
|
508
508
|
|
|
509
|
-
_See code: [src/commands/push.js](https://github.com/apify/apify-cli/blob/v0.
|
|
509
|
+
_See code: [src/commands/push.js](https://github.com/apify/apify-cli/blob/v0.13.1/src/commands/push.js)_
|
|
510
510
|
|
|
511
511
|
## `apify run`
|
|
512
512
|
|
|
@@ -536,7 +536,7 @@ DESCRIPTION
|
|
|
536
536
|
You can set up your own main file or environment variables by changing it.
|
|
537
537
|
```
|
|
538
538
|
|
|
539
|
-
_See code: [src/commands/run.js](https://github.com/apify/apify-cli/blob/v0.
|
|
539
|
+
_See code: [src/commands/run.js](https://github.com/apify/apify-cli/blob/v0.13.1/src/commands/run.js)_
|
|
540
540
|
|
|
541
541
|
## `apify secrets`
|
|
542
542
|
|
|
@@ -564,7 +564,7 @@ DESCRIPTION
|
|
|
564
564
|
of the actor.
|
|
565
565
|
```
|
|
566
566
|
|
|
567
|
-
_See code: [src/commands/secrets/index.js](https://github.com/apify/apify-cli/blob/v0.
|
|
567
|
+
_See code: [src/commands/secrets/index.js](https://github.com/apify/apify-cli/blob/v0.13.1/src/commands/secrets/index.js)_
|
|
568
568
|
|
|
569
569
|
## `apify secrets:add NAME VALUE`
|
|
570
570
|
|
|
@@ -582,7 +582,7 @@ DESCRIPTION
|
|
|
582
582
|
The secrets are stored to a file at ~/.apify
|
|
583
583
|
```
|
|
584
584
|
|
|
585
|
-
_See code: [src/commands/secrets/add.js](https://github.com/apify/apify-cli/blob/v0.
|
|
585
|
+
_See code: [src/commands/secrets/add.js](https://github.com/apify/apify-cli/blob/v0.13.1/src/commands/secrets/add.js)_
|
|
586
586
|
|
|
587
587
|
## `apify secrets:rm NAME`
|
|
588
588
|
|
|
@@ -596,7 +596,7 @@ ARGUMENTS
|
|
|
596
596
|
NAME Name of the secret
|
|
597
597
|
```
|
|
598
598
|
|
|
599
|
-
_See code: [src/commands/secrets/rm.js](https://github.com/apify/apify-cli/blob/v0.
|
|
599
|
+
_See code: [src/commands/secrets/rm.js](https://github.com/apify/apify-cli/blob/v0.13.1/src/commands/secrets/rm.js)_
|
|
600
600
|
|
|
601
601
|
## `apify vis [PATH]`
|
|
602
602
|
|
|
@@ -620,5 +620,5 @@ DESCRIPTION
|
|
|
620
620
|
You can also pass any custom path to your input schema to have it validated instead.
|
|
621
621
|
```
|
|
622
622
|
|
|
623
|
-
_See code: [src/commands/vis.js](https://github.com/apify/apify-cli/blob/v0.
|
|
623
|
+
_See code: [src/commands/vis.js](https://github.com/apify/apify-cli/blob/v0.13.1/src/commands/vis.js)_
|
|
624
624
|
<!-- commandsstop -->
|