apify-cli 0.6.4 → 0.6.5-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 +12 -12
- package/npm-shrinkwrap.json +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +99 -99
package/README.md
CHANGED
|
@@ -271,7 +271,7 @@ DESCRIPTION
|
|
|
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.5/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.5/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.5/src/commands/info.js)_
|
|
308
308
|
|
|
309
309
|
## `apify init [ACTORNAME]`
|
|
310
310
|
|
|
@@ -324,7 +324,7 @@ DESCRIPTION
|
|
|
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.5/src/commands/init.js)_
|
|
328
328
|
|
|
329
329
|
## `apify login`
|
|
330
330
|
|
|
@@ -342,7 +342,7 @@ DESCRIPTION
|
|
|
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.5/src/commands/login.js)_
|
|
346
346
|
|
|
347
347
|
## `apify logout`
|
|
348
348
|
|
|
@@ -357,7 +357,7 @@ DESCRIPTION
|
|
|
357
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.5/src/commands/logout.js)_
|
|
361
361
|
|
|
362
362
|
## `apify push [ACTORID]`
|
|
363
363
|
|
|
@@ -392,7 +392,7 @@ DESCRIPTION
|
|
|
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.5/src/commands/push.js)_
|
|
396
396
|
|
|
397
397
|
## `apify run`
|
|
398
398
|
|
|
@@ -422,7 +422,7 @@ DESCRIPTION
|
|
|
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.5/src/commands/run.js)_
|
|
426
426
|
|
|
427
427
|
## `apify secrets`
|
|
428
428
|
|
|
@@ -448,7 +448,7 @@ DESCRIPTION
|
|
|
448
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.5/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.5/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.5/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.5/src/commands/vis.js)_
|
|
498
498
|
<!-- commandsstop -->
|
package/npm-shrinkwrap.json
CHANGED
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"0.6.
|
|
1
|
+
{"version":"0.6.5","commands":{"call":{"id":"call","description":"Runs a specific actor remotely on the Apify cloud platform.\nThe actor is run under your current Apify account, therefore you need to be logged in by calling \"apify login\". It takes input for the actor from the default local key-value store by default.","pluginName":"apify-cli","pluginType":"core","aliases":[],"flags":{"build":{"name":"build","type":"option","char":"b","description":"Tag or number of the build to run (e.g. \"latest\" or \"1.2.34\").","required":false},"timeout":{"name":"timeout","type":"option","char":"t","description":"Timeout for the actor run in seconds. Zero value means there is no timeout.","required":false},"memory":{"name":"memory","type":"option","char":"m","description":"Amount of memory allocated for the actor run, in megabytes.","required":false},"wait-for-finish":{"name":"wait-for-finish","type":"option","char":"w","description":"Seconds for waiting to run to finish, if no value passed, it waits forever.","required":false}},"args":[{"name":"actId","description":"Name or ID of the actor to run (e.g. \"apify/hello-world\" or \"E2jjCZBezvAZnX8Rb\"). If not provided, the command runs the remote actor specified in the \"apify.json\" file.","required":false}]},"create":{"id":"create","description":"Creates a new actor project directory from a selected boilerplate template.","pluginName":"apify-cli","pluginType":"core","aliases":[],"flags":{"template":{"name":"template","type":"option","char":"t","description":"Template for the actor. If not provided, the command will prompt for it.Visit https://github.com/apifytech/actor-templates/raw/master/templates/manifest.json to find available template names.","required":false}},"args":[{"name":"actorName","description":"Name of the actor and its directory","required":false}]},"info":{"id":"info","description":"Displays information about the currently active Apify account.\nThe information is printed to the console.","pluginName":"apify-cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"init":{"id":"init","description":"Initializes a new actor project in an existing directory.\nThe command only creates the \"apify.json\" file and the \"apify_storage\" directory in the current directory, but will not touch anything else.\n\nWARNING: The directory at \"apify_storage\" will be overwritten if it already exists.","pluginName":"apify-cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"actorName","description":"Name of the actor. If not provided, you will be prompted for it.","required":false}]},"login":{"id":"login","description":"Logs in to your Apify account using a provided API token.\nThe API token and other account information is stored in the ~/.apify directory, from where it is read by all other \"apify\" commands. To log out, call \"apify logout\".","pluginName":"apify-cli","pluginType":"core","aliases":[],"flags":{"token":{"name":"token","type":"option","char":"t","description":"[Optional] Apify API token","required":false}},"args":[]},"logout":{"id":"logout","description":"Logs out of your Apify account.\nThe command deletes the API token and all other account information stored in the ~/.apify directory. To log in again, call \"apify login\".","pluginName":"apify-cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"push":{"id":"push","description":"Uploads the actor to the Apify platform and builds it there.\nThe actor settings are read from the \"apify.json\" file in the current directory, but they can be overridden using command-line options.\nNOTE: If the source files are smaller than 3 MB then they are uploaded as \n\"Multiple source files\", otherwise they are uploaded as \"Zip file\".\n\nWARNING: If the target actor already exists in your Apify account, it will be overwritten!","pluginName":"apify-cli","pluginType":"core","aliases":[],"flags":{"version-number":{"name":"version-number","type":"option","description":"DEPRECATED: Use flag version instead. Actor version number to which the files should be pushed. By default, it is taken from the \"apify.json\" file.","required":false},"version":{"name":"version","type":"option","char":"v","description":"Actor version number to which the files should be pushed. By default, it is taken from the \"apify.json\" file.","required":false},"build-tag":{"name":"build-tag","type":"option","char":"b","description":"Build tag to be applied to the successful actor build. By default, it is taken from the \"apify.json\" file","required":false},"wait-for-finish":{"name":"wait-for-finish","type":"option","char":"w","description":"Seconds for waiting to build to finish, if no value passed, it waits forever.","required":false}},"args":[{"name":"actorId","description":"ID of an existing actor on the Apify platform where the files will be pushed. If not provided, the command will create or modify the actor with the name specified in \"apify.json\" file.","required":false}]},"run":{"id":"run","description":"Runs the actor locally in the current directory by executing \"npm start\".\nIt sets various APIFY_XYZ environment variables in order to provide a working execution environment for the actor. For example, this causes the actor input, as well as all other data in key-value stores, datasets or request queues to be stored in the \"apify_storage\" directory, rather than on the Apify platform.\n\nNOTE: You can override the default behaviour of command overriding npm start script value in a package.json file. You can set up your own main file or environment variables by changing it.","pluginName":"apify-cli","pluginType":"core","aliases":[],"flags":{"purge":{"name":"purge","type":"boolean","char":"p","description":"Shortcut that combines the --purge-queue, --purge-dataset and --purge-key-value-store options.","required":false,"allowNo":false},"purge-queue":{"name":"purge-queue","type":"boolean","description":"Deletes the local directory containing the default request queue before the run starts.","required":false,"allowNo":false},"purge-dataset":{"name":"purge-dataset","type":"boolean","description":"Deletes the local directory containing the default dataset before the run starts.","required":false,"allowNo":false},"purge-key-value-store":{"name":"purge-key-value-store","type":"boolean","description":"Deletes all records from the default key-value store in the local directory before the run starts, except for the \"INPUT\" key.","required":false,"allowNo":false}},"args":[]},"vis":{"id":"vis","description":"Validates INPUT_SCHEMA.json file and prints errors found.","pluginName":"apify-cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"path","description":"Optional path to your INPUT_SCHEMA.json file. If not provided ./INPUT_SCHEMA.json is used.","required":false}]},"secrets:add":{"id":"secrets:add","description":"Adds a new secret value.\nThe secrets are stored to a file at ~/.apify","pluginName":"apify-cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"name","description":"Name of the secret","required":true},{"name":"value","description":"Value of the secret","required":true}]},"secrets":{"id":"secrets","description":"Manages secret values for actor environment variables.\n\nExample:\n$ apify secrets:add mySecret TopSecretValue123\n\nNow the \"mySecret\" value can be used in an environment variable defined in \"apify.json\" file by adding the \"@\" prefix:\n\n{\n \"name\": \"my_actor\",\n \"env\": { \"SECRET_ENV_VAR\": \"@mySecret\" },\n \"version\": \"0.1\n}\n\nWhen the actor is pushed to Apify cloud, the \"SECRET_ENV_VAR\" and its value is stored as a secret environment variable of the actor.","pluginName":"apify-cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"secrets:rm":{"id":"secrets:rm","description":"Removes the secret.","pluginName":"apify-cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"name","description":"Name of the secret","required":true}]}}}
|
package/package.json
CHANGED
|
@@ -1,102 +1,102 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
}
|
|
2
|
+
"name": "apify-cli",
|
|
3
|
+
"version": "0.6.5-beta.0",
|
|
4
|
+
"description": "Apify command-line interface helps you create, develop, build and run Apify actors, and manage the Apify cloud platform.",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "mocha --timeout 180000 --recursive",
|
|
8
|
+
"lint": "eslint src test",
|
|
9
|
+
"lint:fix": "eslint src test --fix",
|
|
10
|
+
"commands-md": "npm run manifest && oclif-dev readme",
|
|
11
|
+
"prod-shrinkwrap": "rm -rf node_modules && npm install --production && npm shrinkwrap",
|
|
12
|
+
"manifest": "rm -f oclif.manifest.json && oclif-dev manifest"
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"src",
|
|
16
|
+
"npm-shrinkwrap.json",
|
|
17
|
+
"oclif.manifest.json",
|
|
18
|
+
"index.js",
|
|
19
|
+
"package.json"
|
|
20
|
+
],
|
|
21
|
+
"bin": {
|
|
22
|
+
"apify": "./src/bin/run"
|
|
23
|
+
},
|
|
24
|
+
"contributors": [
|
|
25
|
+
"Jakub Drobník <jakub.drobnik@apify.com>",
|
|
26
|
+
"Jan Curn <jan@apify.com>"
|
|
27
|
+
],
|
|
28
|
+
"repository": {
|
|
29
|
+
"type": "git",
|
|
30
|
+
"url": "git+https://github.com/apify/apify-cli.git"
|
|
31
|
+
},
|
|
32
|
+
"keywords": [
|
|
33
|
+
"apify",
|
|
34
|
+
"client",
|
|
35
|
+
"node",
|
|
36
|
+
"command",
|
|
37
|
+
"line",
|
|
38
|
+
"bash"
|
|
39
|
+
],
|
|
40
|
+
"author": {
|
|
41
|
+
"name": "Apify",
|
|
42
|
+
"email": "support@apify.com",
|
|
43
|
+
"url": "https://www.apify.com"
|
|
44
|
+
},
|
|
45
|
+
"license": "Apache-2.0",
|
|
46
|
+
"bugs": {
|
|
47
|
+
"url": "https://github.com/apify/apify-cli/issues"
|
|
48
|
+
},
|
|
49
|
+
"homepage": "https://github.com/apify/apify-cli#readme",
|
|
50
|
+
"engines": {
|
|
51
|
+
"node": ">=10.0.0"
|
|
52
|
+
},
|
|
53
|
+
"dependencies": {
|
|
54
|
+
"@apify/actor-templates": "^0.1.1",
|
|
55
|
+
"@apify/http-request": "^2.1.2",
|
|
56
|
+
"@oclif/command": "^1.8.0",
|
|
57
|
+
"@oclif/config": "^1.17.0",
|
|
58
|
+
"@oclif/errors": "^1.3.5",
|
|
59
|
+
"@oclif/plugin-commands": "^1.3.0",
|
|
60
|
+
"@oclif/plugin-help": "^3.2.3",
|
|
61
|
+
"ajv": "^6.12.6",
|
|
62
|
+
"apify-client": "^0.6.0",
|
|
63
|
+
"apify-shared": "^0.6.3",
|
|
64
|
+
"archiver-promise": "^1.0.0",
|
|
65
|
+
"chalk": "^4.1.2",
|
|
66
|
+
"child-process-promise": "^2.2.1",
|
|
67
|
+
"extract-zip": "^2.0.1",
|
|
68
|
+
"globby": "^11.0.4",
|
|
69
|
+
"inquirer": "^7.3.3",
|
|
70
|
+
"is-online": "^9.0.1",
|
|
71
|
+
"load-json-file": "^6.2.0",
|
|
72
|
+
"mime": "^2.6.0",
|
|
73
|
+
"minimist": "^1.2.5",
|
|
74
|
+
"rimraf": "^3.0.2",
|
|
75
|
+
"semver": "^7.3.5",
|
|
76
|
+
"underscore": "^1.13.1",
|
|
77
|
+
"unzipper": "^0.10.11",
|
|
78
|
+
"write-json-file": "^4.3.0"
|
|
79
|
+
},
|
|
80
|
+
"devDependencies": {
|
|
81
|
+
"@apify/eslint-config": "^0.1.4",
|
|
82
|
+
"@oclif/dev-cli": "^1.26.0",
|
|
83
|
+
"@oclif/test": "^1.2.8",
|
|
84
|
+
"chai": "^4.3.4",
|
|
85
|
+
"chai-as-promised": "^7.1.1",
|
|
86
|
+
"eslint": "^7.32.0",
|
|
87
|
+
"mocha": "^8.4.0",
|
|
88
|
+
"sinon": "^9.2.4"
|
|
89
|
+
},
|
|
90
|
+
"eslintIgnore": [
|
|
91
|
+
"src/templates/*"
|
|
92
|
+
],
|
|
93
|
+
"oclif": {
|
|
94
|
+
"bin": "apify",
|
|
95
|
+
"commands": "./src/commands",
|
|
96
|
+
"hooks": {
|
|
97
|
+
"prerun": [
|
|
98
|
+
"./src/hooks/pre_run.js"
|
|
99
|
+
]
|
|
101
100
|
}
|
|
101
|
+
}
|
|
102
102
|
}
|