apify-cli 0.6.6 → 0.6.8-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/CHANGELOG.md +2 -0
- package/README.md +29 -29
- package/npm-shrinkwrap.json +368 -292
- package/oclif.manifest.json +1 -1
- package/package.json +100 -99
- package/src/commands/call.js +1 -1
- package/src/commands/push.js +1 -1
- package/src/commands/run.js +1 -1
- package/src/commands/vis.js +2 -2
- package/src/lib/consts.js +1 -1
- package/src/lib/files.js +1 -1
- package/src/lib/utils.js +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -22,7 +22,7 @@ However, we recommend using JavaScript / Node.js, for which we provide most libr
|
|
|
22
22
|
|
|
23
23
|
## Installation
|
|
24
24
|
|
|
25
|
-
First, make sure you have [Node.js](https://nodejs.org) version
|
|
25
|
+
First, make sure you have [Node.js](https://nodejs.org) version 12 or higher with NPM installed on your computer:
|
|
26
26
|
|
|
27
27
|
```bash
|
|
28
28
|
node --version
|
|
@@ -267,11 +267,11 @@ OPTIONS
|
|
|
267
267
|
-w, --wait-for-finish=wait-for-finish Seconds for waiting to run to finish, if no value passed, it waits forever.
|
|
268
268
|
|
|
269
269
|
DESCRIPTION
|
|
270
|
-
The actor is run under your current Apify account, therefore you need to be logged in by calling "apify login". It
|
|
270
|
+
The actor is run under your current Apify account, therefore you need to be logged in by calling "apify login". It
|
|
271
271
|
takes input for the actor from the default local key-value store by default.
|
|
272
272
|
```
|
|
273
273
|
|
|
274
|
-
_See code: [src/commands/call.js](https://github.com/apify/apify-cli/blob/v0.6.
|
|
274
|
+
_See code: [src/commands/call.js](https://github.com/apify/apify-cli/blob/v0.6.7/src/commands/call.js)_
|
|
275
275
|
|
|
276
276
|
## `apify create [ACTORNAME]`
|
|
277
277
|
|
|
@@ -290,7 +290,7 @@ OPTIONS
|
|
|
290
290
|
available template names.
|
|
291
291
|
```
|
|
292
292
|
|
|
293
|
-
_See code: [src/commands/create.js](https://github.com/apify/apify-cli/blob/v0.6.
|
|
293
|
+
_See code: [src/commands/create.js](https://github.com/apify/apify-cli/blob/v0.6.7/src/commands/create.js)_
|
|
294
294
|
|
|
295
295
|
## `apify info`
|
|
296
296
|
|
|
@@ -304,7 +304,7 @@ DESCRIPTION
|
|
|
304
304
|
The information is printed to the console.
|
|
305
305
|
```
|
|
306
306
|
|
|
307
|
-
_See code: [src/commands/info.js](https://github.com/apify/apify-cli/blob/v0.6.
|
|
307
|
+
_See code: [src/commands/info.js](https://github.com/apify/apify-cli/blob/v0.6.7/src/commands/info.js)_
|
|
308
308
|
|
|
309
309
|
## `apify init [ACTORNAME]`
|
|
310
310
|
|
|
@@ -318,13 +318,13 @@ ARGUMENTS
|
|
|
318
318
|
ACTORNAME Name of the actor. If not provided, you will be prompted for it.
|
|
319
319
|
|
|
320
320
|
DESCRIPTION
|
|
321
|
-
The command only creates the "apify.json" file and the "apify_storage" directory in the current directory, but will
|
|
321
|
+
The command only creates the "apify.json" file and the "apify_storage" directory in the current directory, but will
|
|
322
322
|
not touch anything else.
|
|
323
323
|
|
|
324
324
|
WARNING: The directory at "apify_storage" will be overwritten if it already exists.
|
|
325
325
|
```
|
|
326
326
|
|
|
327
|
-
_See code: [src/commands/init.js](https://github.com/apify/apify-cli/blob/v0.6.
|
|
327
|
+
_See code: [src/commands/init.js](https://github.com/apify/apify-cli/blob/v0.6.7/src/commands/init.js)_
|
|
328
328
|
|
|
329
329
|
## `apify login`
|
|
330
330
|
|
|
@@ -338,11 +338,11 @@ OPTIONS
|
|
|
338
338
|
-t, --token=token [Optional] Apify API token
|
|
339
339
|
|
|
340
340
|
DESCRIPTION
|
|
341
|
-
The API token and other account information is stored in the ~/.apify directory, from where it is read by all other
|
|
341
|
+
The API token and other account information is stored in the ~/.apify directory, from where it is read by all other
|
|
342
342
|
"apify" commands. To log out, call "apify logout".
|
|
343
343
|
```
|
|
344
344
|
|
|
345
|
-
_See code: [src/commands/login.js](https://github.com/apify/apify-cli/blob/v0.6.
|
|
345
|
+
_See code: [src/commands/login.js](https://github.com/apify/apify-cli/blob/v0.6.7/src/commands/login.js)_
|
|
346
346
|
|
|
347
347
|
## `apify logout`
|
|
348
348
|
|
|
@@ -353,11 +353,11 @@ USAGE
|
|
|
353
353
|
$ apify logout
|
|
354
354
|
|
|
355
355
|
DESCRIPTION
|
|
356
|
-
The command deletes the API token and all other account information stored in the ~/.apify directory. To log in again,
|
|
357
|
-
|
|
356
|
+
The command deletes the API token and all other account information stored in the ~/.apify directory. To log in again,
|
|
357
|
+
call "apify login".
|
|
358
358
|
```
|
|
359
359
|
|
|
360
|
-
_See code: [src/commands/logout.js](https://github.com/apify/apify-cli/blob/v0.6.
|
|
360
|
+
_See code: [src/commands/logout.js](https://github.com/apify/apify-cli/blob/v0.6.7/src/commands/logout.js)_
|
|
361
361
|
|
|
362
362
|
## `apify push [ACTORID]`
|
|
363
363
|
|
|
@@ -384,15 +384,15 @@ OPTIONS
|
|
|
384
384
|
should be pushed. By default, it is taken from the "apify.json" file.
|
|
385
385
|
|
|
386
386
|
DESCRIPTION
|
|
387
|
-
The actor settings are read from the "apify.json" file in the current directory, but they can be overridden using
|
|
387
|
+
The actor settings are read from the "apify.json" file in the current directory, but they can be overridden using
|
|
388
388
|
command-line options.
|
|
389
|
-
NOTE: If the source files are smaller than 3 MB then they are uploaded as
|
|
389
|
+
NOTE: If the source files are smaller than 3 MB then they are uploaded as
|
|
390
390
|
"Multiple source files", otherwise they are uploaded as "Zip file".
|
|
391
391
|
|
|
392
392
|
WARNING: If the target actor already exists in your Apify account, it will be overwritten!
|
|
393
393
|
```
|
|
394
394
|
|
|
395
|
-
_See code: [src/commands/push.js](https://github.com/apify/apify-cli/blob/v0.6.
|
|
395
|
+
_See code: [src/commands/push.js](https://github.com/apify/apify-cli/blob/v0.6.7/src/commands/push.js)_
|
|
396
396
|
|
|
397
397
|
## `apify run`
|
|
398
398
|
|
|
@@ -414,15 +414,15 @@ OPTIONS
|
|
|
414
414
|
--purge-queue Deletes the local directory containing the default request queue before the run starts.
|
|
415
415
|
|
|
416
416
|
DESCRIPTION
|
|
417
|
-
It sets various APIFY_XYZ environment variables in order to provide a working execution environment for the actor. For
|
|
418
|
-
|
|
419
|
-
|
|
417
|
+
It sets various APIFY_XYZ environment variables in order to provide a working execution environment for the actor. For
|
|
418
|
+
example, this causes the actor input, as well as all other data in key-value stores, datasets or request queues to be
|
|
419
|
+
stored in the "apify_storage" directory, rather than on the Apify platform.
|
|
420
420
|
|
|
421
|
-
NOTE: You can override the default behaviour of command overriding npm start script value in a package.json file. You
|
|
421
|
+
NOTE: You can override the default behaviour of command overriding npm start script value in a package.json file. You
|
|
422
422
|
can set up your own main file or environment variables by changing it.
|
|
423
423
|
```
|
|
424
424
|
|
|
425
|
-
_See code: [src/commands/run.js](https://github.com/apify/apify-cli/blob/v0.6.
|
|
425
|
+
_See code: [src/commands/run.js](https://github.com/apify/apify-cli/blob/v0.6.7/src/commands/run.js)_
|
|
426
426
|
|
|
427
427
|
## `apify secrets`
|
|
428
428
|
|
|
@@ -439,16 +439,16 @@ DESCRIPTION
|
|
|
439
439
|
Now the "mySecret" value can be used in an environment variable defined in "apify.json" file by adding the "@" prefix:
|
|
440
440
|
|
|
441
441
|
{
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
442
|
+
"name": "my_actor",
|
|
443
|
+
"env": { "SECRET_ENV_VAR": "@mySecret" },
|
|
444
|
+
"version": "0.1
|
|
445
445
|
}
|
|
446
446
|
|
|
447
|
-
When the actor is pushed to Apify cloud, the "SECRET_ENV_VAR" and its value is stored as a secret environment variable
|
|
448
|
-
|
|
447
|
+
When the actor is pushed to Apify cloud, the "SECRET_ENV_VAR" and its value is stored as a secret environment variable
|
|
448
|
+
of the actor.
|
|
449
449
|
```
|
|
450
450
|
|
|
451
|
-
_See code: [src/commands/secrets/index.js](https://github.com/apify/apify-cli/blob/v0.6.
|
|
451
|
+
_See code: [src/commands/secrets/index.js](https://github.com/apify/apify-cli/blob/v0.6.7/src/commands/secrets/index.js)_
|
|
452
452
|
|
|
453
453
|
## `apify secrets:add NAME VALUE`
|
|
454
454
|
|
|
@@ -466,7 +466,7 @@ DESCRIPTION
|
|
|
466
466
|
The secrets are stored to a file at ~/.apify
|
|
467
467
|
```
|
|
468
468
|
|
|
469
|
-
_See code: [src/commands/secrets/add.js](https://github.com/apify/apify-cli/blob/v0.6.
|
|
469
|
+
_See code: [src/commands/secrets/add.js](https://github.com/apify/apify-cli/blob/v0.6.7/src/commands/secrets/add.js)_
|
|
470
470
|
|
|
471
471
|
## `apify secrets:rm NAME`
|
|
472
472
|
|
|
@@ -480,7 +480,7 @@ ARGUMENTS
|
|
|
480
480
|
NAME Name of the secret
|
|
481
481
|
```
|
|
482
482
|
|
|
483
|
-
_See code: [src/commands/secrets/rm.js](https://github.com/apify/apify-cli/blob/v0.6.
|
|
483
|
+
_See code: [src/commands/secrets/rm.js](https://github.com/apify/apify-cli/blob/v0.6.7/src/commands/secrets/rm.js)_
|
|
484
484
|
|
|
485
485
|
## `apify vis [PATH]`
|
|
486
486
|
|
|
@@ -494,5 +494,5 @@ ARGUMENTS
|
|
|
494
494
|
PATH Optional path to your INPUT_SCHEMA.json file. If not provided ./INPUT_SCHEMA.json is used.
|
|
495
495
|
```
|
|
496
496
|
|
|
497
|
-
_See code: [src/commands/vis.js](https://github.com/apify/apify-cli/blob/v0.6.
|
|
497
|
+
_See code: [src/commands/vis.js](https://github.com/apify/apify-cli/blob/v0.6.7/src/commands/vis.js)_
|
|
498
498
|
<!-- commandsstop -->
|