apify-cli 0.9.0 → 0.10.0-beta.1
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 +17 -17
- package/npm-shrinkwrap.json +17 -17
- package/oclif.manifest.json +1 -1
- package/package.json +99 -99
package/README.md
CHANGED
|
@@ -262,7 +262,7 @@ USAGE
|
|
|
262
262
|
$ apify actor
|
|
263
263
|
```
|
|
264
264
|
|
|
265
|
-
_See code: [src/commands/actor/index.js](https://github.com/apify/apify-cli/blob/v0.
|
|
265
|
+
_See code: [src/commands/actor/index.js](https://github.com/apify/apify-cli/blob/v0.10.0/src/commands/actor/index.js)_
|
|
266
266
|
|
|
267
267
|
## `apify actor:get-input`
|
|
268
268
|
|
|
@@ -273,7 +273,7 @@ USAGE
|
|
|
273
273
|
$ apify actor:get-input
|
|
274
274
|
```
|
|
275
275
|
|
|
276
|
-
_See code: [src/commands/actor/get-input.js](https://github.com/apify/apify-cli/blob/v0.
|
|
276
|
+
_See code: [src/commands/actor/get-input.js](https://github.com/apify/apify-cli/blob/v0.10.0/src/commands/actor/get-input.js)_
|
|
277
277
|
|
|
278
278
|
## `apify actor:get-value KEY`
|
|
279
279
|
|
|
@@ -287,7 +287,7 @@ ARGUMENTS
|
|
|
287
287
|
KEY Key of the record in key-value store
|
|
288
288
|
```
|
|
289
289
|
|
|
290
|
-
_See code: [src/commands/actor/get-value.js](https://github.com/apify/apify-cli/blob/v0.
|
|
290
|
+
_See code: [src/commands/actor/get-value.js](https://github.com/apify/apify-cli/blob/v0.10.0/src/commands/actor/get-value.js)_
|
|
291
291
|
|
|
292
292
|
## `apify actor:push-data [ITEM]`
|
|
293
293
|
|
|
@@ -308,7 +308,7 @@ DESCRIPTION
|
|
|
308
308
|
$ cat ./test.json | apify actor:push-data
|
|
309
309
|
```
|
|
310
310
|
|
|
311
|
-
_See code: [src/commands/actor/push-data.js](https://github.com/apify/apify-cli/blob/v0.
|
|
311
|
+
_See code: [src/commands/actor/push-data.js](https://github.com/apify/apify-cli/blob/v0.10.0/src/commands/actor/push-data.js)_
|
|
312
312
|
|
|
313
313
|
## `apify actor:set-value KEY [VALUE]`
|
|
314
314
|
|
|
@@ -338,7 +338,7 @@ DESCRIPTION
|
|
|
338
338
|
$ cat ./my-text-file.txt | apify actor:set-value KEY --contentType text/plain
|
|
339
339
|
```
|
|
340
340
|
|
|
341
|
-
_See code: [src/commands/actor/set-value.js](https://github.com/apify/apify-cli/blob/v0.
|
|
341
|
+
_See code: [src/commands/actor/set-value.js](https://github.com/apify/apify-cli/blob/v0.10.0/src/commands/actor/set-value.js)_
|
|
342
342
|
|
|
343
343
|
## `apify call [ACTID]`
|
|
344
344
|
|
|
@@ -363,7 +363,7 @@ DESCRIPTION
|
|
|
363
363
|
takes input for the actor from the default local key-value store by default.
|
|
364
364
|
```
|
|
365
365
|
|
|
366
|
-
_See code: [src/commands/call.js](https://github.com/apify/apify-cli/blob/v0.
|
|
366
|
+
_See code: [src/commands/call.js](https://github.com/apify/apify-cli/blob/v0.10.0/src/commands/call.js)_
|
|
367
367
|
|
|
368
368
|
## `apify create [ACTORNAME]`
|
|
369
369
|
|
|
@@ -382,7 +382,7 @@ OPTIONS
|
|
|
382
382
|
find available template names.
|
|
383
383
|
```
|
|
384
384
|
|
|
385
|
-
_See code: [src/commands/create.js](https://github.com/apify/apify-cli/blob/v0.
|
|
385
|
+
_See code: [src/commands/create.js](https://github.com/apify/apify-cli/blob/v0.10.0/src/commands/create.js)_
|
|
386
386
|
|
|
387
387
|
## `apify info`
|
|
388
388
|
|
|
@@ -396,7 +396,7 @@ DESCRIPTION
|
|
|
396
396
|
The information is printed to the console.
|
|
397
397
|
```
|
|
398
398
|
|
|
399
|
-
_See code: [src/commands/info.js](https://github.com/apify/apify-cli/blob/v0.
|
|
399
|
+
_See code: [src/commands/info.js](https://github.com/apify/apify-cli/blob/v0.10.0/src/commands/info.js)_
|
|
400
400
|
|
|
401
401
|
## `apify init [ACTORNAME]`
|
|
402
402
|
|
|
@@ -416,7 +416,7 @@ DESCRIPTION
|
|
|
416
416
|
WARNING: The directory at "storage" will be overwritten if it already exists.
|
|
417
417
|
```
|
|
418
418
|
|
|
419
|
-
_See code: [src/commands/init.js](https://github.com/apify/apify-cli/blob/v0.
|
|
419
|
+
_See code: [src/commands/init.js](https://github.com/apify/apify-cli/blob/v0.10.0/src/commands/init.js)_
|
|
420
420
|
|
|
421
421
|
## `apify login`
|
|
422
422
|
|
|
@@ -434,7 +434,7 @@ DESCRIPTION
|
|
|
434
434
|
"apify" commands. To log out, call "apify logout".
|
|
435
435
|
```
|
|
436
436
|
|
|
437
|
-
_See code: [src/commands/login.js](https://github.com/apify/apify-cli/blob/v0.
|
|
437
|
+
_See code: [src/commands/login.js](https://github.com/apify/apify-cli/blob/v0.10.0/src/commands/login.js)_
|
|
438
438
|
|
|
439
439
|
## `apify logout`
|
|
440
440
|
|
|
@@ -449,7 +449,7 @@ DESCRIPTION
|
|
|
449
449
|
call "apify login".
|
|
450
450
|
```
|
|
451
451
|
|
|
452
|
-
_See code: [src/commands/logout.js](https://github.com/apify/apify-cli/blob/v0.
|
|
452
|
+
_See code: [src/commands/logout.js](https://github.com/apify/apify-cli/blob/v0.10.0/src/commands/logout.js)_
|
|
453
453
|
|
|
454
454
|
## `apify push [ACTORID]`
|
|
455
455
|
|
|
@@ -484,7 +484,7 @@ DESCRIPTION
|
|
|
484
484
|
WARNING: If the target actor already exists in your Apify account, it will be overwritten!
|
|
485
485
|
```
|
|
486
486
|
|
|
487
|
-
_See code: [src/commands/push.js](https://github.com/apify/apify-cli/blob/v0.
|
|
487
|
+
_See code: [src/commands/push.js](https://github.com/apify/apify-cli/blob/v0.10.0/src/commands/push.js)_
|
|
488
488
|
|
|
489
489
|
## `apify run`
|
|
490
490
|
|
|
@@ -514,7 +514,7 @@ DESCRIPTION
|
|
|
514
514
|
can set up your own main file or environment variables by changing it.
|
|
515
515
|
```
|
|
516
516
|
|
|
517
|
-
_See code: [src/commands/run.js](https://github.com/apify/apify-cli/blob/v0.
|
|
517
|
+
_See code: [src/commands/run.js](https://github.com/apify/apify-cli/blob/v0.10.0/src/commands/run.js)_
|
|
518
518
|
|
|
519
519
|
## `apify secrets`
|
|
520
520
|
|
|
@@ -540,7 +540,7 @@ DESCRIPTION
|
|
|
540
540
|
of the actor.
|
|
541
541
|
```
|
|
542
542
|
|
|
543
|
-
_See code: [src/commands/secrets/index.js](https://github.com/apify/apify-cli/blob/v0.
|
|
543
|
+
_See code: [src/commands/secrets/index.js](https://github.com/apify/apify-cli/blob/v0.10.0/src/commands/secrets/index.js)_
|
|
544
544
|
|
|
545
545
|
## `apify secrets:add NAME VALUE`
|
|
546
546
|
|
|
@@ -558,7 +558,7 @@ DESCRIPTION
|
|
|
558
558
|
The secrets are stored to a file at ~/.apify
|
|
559
559
|
```
|
|
560
560
|
|
|
561
|
-
_See code: [src/commands/secrets/add.js](https://github.com/apify/apify-cli/blob/v0.
|
|
561
|
+
_See code: [src/commands/secrets/add.js](https://github.com/apify/apify-cli/blob/v0.10.0/src/commands/secrets/add.js)_
|
|
562
562
|
|
|
563
563
|
## `apify secrets:rm NAME`
|
|
564
564
|
|
|
@@ -572,7 +572,7 @@ ARGUMENTS
|
|
|
572
572
|
NAME Name of the secret
|
|
573
573
|
```
|
|
574
574
|
|
|
575
|
-
_See code: [src/commands/secrets/rm.js](https://github.com/apify/apify-cli/blob/v0.
|
|
575
|
+
_See code: [src/commands/secrets/rm.js](https://github.com/apify/apify-cli/blob/v0.10.0/src/commands/secrets/rm.js)_
|
|
576
576
|
|
|
577
577
|
## `apify vis [PATH]`
|
|
578
578
|
|
|
@@ -586,5 +586,5 @@ ARGUMENTS
|
|
|
586
586
|
PATH Optional path to your INPUT_SCHEMA.json file. If not provided ./INPUT_SCHEMA.json is used.
|
|
587
587
|
```
|
|
588
588
|
|
|
589
|
-
_See code: [src/commands/vis.js](https://github.com/apify/apify-cli/blob/v0.
|
|
589
|
+
_See code: [src/commands/vis.js](https://github.com/apify/apify-cli/blob/v0.10.0/src/commands/vis.js)_
|
|
590
590
|
<!-- commandsstop -->
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "apify-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"lockfileVersion": 2,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "apify-cli",
|
|
9
|
-
"version": "0.
|
|
9
|
+
"version": "0.10.0",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@apify/actor-templates": "^0.1.3",
|
|
13
13
|
"@apify/consts": "^1.7.0",
|
|
14
|
-
"@apify/input_schema": "^3.
|
|
14
|
+
"@apify/input_schema": "^3.3.0",
|
|
15
15
|
"@crawlee/memory-storage": "^3.0.3",
|
|
16
16
|
"@oclif/command": "^1.8.16",
|
|
17
17
|
"@oclif/config": "^1.18.3",
|
|
@@ -85,11 +85,11 @@
|
|
|
85
85
|
}
|
|
86
86
|
},
|
|
87
87
|
"node_modules/@apify/input_schema": {
|
|
88
|
-
"version": "3.
|
|
89
|
-
"resolved": "https://registry.npmjs.org/@apify/input_schema/-/input_schema-3.
|
|
90
|
-
"integrity": "sha512-
|
|
88
|
+
"version": "3.3.0",
|
|
89
|
+
"resolved": "https://registry.npmjs.org/@apify/input_schema/-/input_schema-3.3.0.tgz",
|
|
90
|
+
"integrity": "sha512-GpevF5U16LHTZ46gyR/wvfNVvTfd74rnJ/Y9JijggKy8/zl4xf9o2uGiuyhbyD7VrlUgqsQ+CoQk2lDZEnpyKw==",
|
|
91
91
|
"dependencies": {
|
|
92
|
-
"@apify/consts": "^2.
|
|
92
|
+
"@apify/consts": "^2.5.0",
|
|
93
93
|
"countries-list": "^2.6.1",
|
|
94
94
|
"escaya": "^0.0.61"
|
|
95
95
|
},
|
|
@@ -98,9 +98,9 @@
|
|
|
98
98
|
}
|
|
99
99
|
},
|
|
100
100
|
"node_modules/@apify/input_schema/node_modules/@apify/consts": {
|
|
101
|
-
"version": "2.
|
|
102
|
-
"resolved": "https://registry.npmjs.org/@apify/consts/-/consts-2.
|
|
103
|
-
"integrity": "sha512-
|
|
101
|
+
"version": "2.5.0",
|
|
102
|
+
"resolved": "https://registry.npmjs.org/@apify/consts/-/consts-2.5.0.tgz",
|
|
103
|
+
"integrity": "sha512-QQuQq+lYBcQGvDg1DYTNqkh7YKRJdqeHYQ/b9+dlQW/ZNIf61ncx8n92DRIyv+nBe/vMT0YRNojuDLUlJTlnMQ=="
|
|
104
104
|
},
|
|
105
105
|
"node_modules/@apify/log": {
|
|
106
106
|
"version": "2.1.3",
|
|
@@ -7233,19 +7233,19 @@
|
|
|
7233
7233
|
}
|
|
7234
7234
|
},
|
|
7235
7235
|
"@apify/input_schema": {
|
|
7236
|
-
"version": "3.
|
|
7237
|
-
"resolved": "https://registry.npmjs.org/@apify/input_schema/-/input_schema-3.
|
|
7238
|
-
"integrity": "sha512-
|
|
7236
|
+
"version": "3.3.0",
|
|
7237
|
+
"resolved": "https://registry.npmjs.org/@apify/input_schema/-/input_schema-3.3.0.tgz",
|
|
7238
|
+
"integrity": "sha512-GpevF5U16LHTZ46gyR/wvfNVvTfd74rnJ/Y9JijggKy8/zl4xf9o2uGiuyhbyD7VrlUgqsQ+CoQk2lDZEnpyKw==",
|
|
7239
7239
|
"requires": {
|
|
7240
|
-
"@apify/consts": "^2.
|
|
7240
|
+
"@apify/consts": "^2.5.0",
|
|
7241
7241
|
"countries-list": "^2.6.1",
|
|
7242
7242
|
"escaya": "^0.0.61"
|
|
7243
7243
|
},
|
|
7244
7244
|
"dependencies": {
|
|
7245
7245
|
"@apify/consts": {
|
|
7246
|
-
"version": "2.
|
|
7247
|
-
"resolved": "https://registry.npmjs.org/@apify/consts/-/consts-2.
|
|
7248
|
-
"integrity": "sha512-
|
|
7246
|
+
"version": "2.5.0",
|
|
7247
|
+
"resolved": "https://registry.npmjs.org/@apify/consts/-/consts-2.5.0.tgz",
|
|
7248
|
+
"integrity": "sha512-QQuQq+lYBcQGvDg1DYTNqkh7YKRJdqeHYQ/b9+dlQW/ZNIf61ncx8n92DRIyv+nBe/vMT0YRNojuDLUlJTlnMQ=="
|
|
7249
7249
|
}
|
|
7250
7250
|
}
|
|
7251
7251
|
},
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"0.9.0","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://raw.githubusercontent.com/apify/actor-templates/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 \"storage\" directory in the current directory, but will not touch anything else.\n\nWARNING: The directory at \"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 \"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}]},"actor:get-input":{"id":"actor:get-input","description":"Gets the actor input value from the default key-value store associated with the actor run.","pluginName":"apify-cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"actor:get-value":{"id":"actor:get-value","description":"Gets a value from the default key-value store associated with the actor run.","pluginName":"apify-cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"key","description":"Key of the record in key-value store","required":true}]},"actor":{"id":"actor","description":"Commands are designed to be used in actor runs. All commands are in PoC state, do not use in production environments.\n","pluginName":"apify-cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"actor:push-data":{"id":"actor:push-data","description":"Stores an object or an array of objects to the default dataset of the actor run.\nIt is possible to pass data using item argument or stdin.\nPassing data using argument:\n$ apify actor:push-data {\"foo\": \"bar\"}\nPassing data using stdin with pipe:\n$ cat ./test.json | apify actor:push-data\n","pluginName":"apify-cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"item","description":"JSON string with one object or array of objects containing data to be stored in the default dataset.","required":false}]},"actor:set-value":{"id":"actor:set-value","description":"Sets or removes record into the default KeyValueStore associated with the actor run.\nIt is possible to pass data using argument or stdin.\nPassing data using argument:\n$ apify actor:set-value KEY my-value\nPassing data using stdin with pipe:\n$ cat ./my-text-file.txt | apify actor:set-value KEY --contentType text/plain\n","pluginName":"apify-cli","pluginType":"core","aliases":[],"flags":{"contentType":{"name":"contentType","type":"option","char":"c","description":"Specifies a custom MIME content type of the record. By default \"application/json\" is used.","required":false}},"args":[{"name":"key","description":"Key of the record in key-value store.","required":true},{"name":"value","description":"Record data, which can be one of the following values:\n- If empty, the record in the key-value store is deleted.\n- If no `contentType` flag is specified, value is expected to be any JSON string value.\n- If options.contentType is set, value is taken as is.","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}]}}}
|
|
1
|
+
{"version":"0.10.0","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://raw.githubusercontent.com/apify/actor-templates/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 \"storage\" directory in the current directory, but will not touch anything else.\n\nWARNING: The directory at \"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 \"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}]},"actor:get-input":{"id":"actor:get-input","description":"Gets the actor input value from the default key-value store associated with the actor run.","pluginName":"apify-cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"actor:get-value":{"id":"actor:get-value","description":"Gets a value from the default key-value store associated with the actor run.","pluginName":"apify-cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"key","description":"Key of the record in key-value store","required":true}]},"actor":{"id":"actor","description":"Commands are designed to be used in actor runs. All commands are in PoC state, do not use in production environments.\n","pluginName":"apify-cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"actor:push-data":{"id":"actor:push-data","description":"Stores an object or an array of objects to the default dataset of the actor run.\nIt is possible to pass data using item argument or stdin.\nPassing data using argument:\n$ apify actor:push-data {\"foo\": \"bar\"}\nPassing data using stdin with pipe:\n$ cat ./test.json | apify actor:push-data\n","pluginName":"apify-cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"item","description":"JSON string with one object or array of objects containing data to be stored in the default dataset.","required":false}]},"actor:set-value":{"id":"actor:set-value","description":"Sets or removes record into the default KeyValueStore associated with the actor run.\nIt is possible to pass data using argument or stdin.\nPassing data using argument:\n$ apify actor:set-value KEY my-value\nPassing data using stdin with pipe:\n$ cat ./my-text-file.txt | apify actor:set-value KEY --contentType text/plain\n","pluginName":"apify-cli","pluginType":"core","aliases":[],"flags":{"contentType":{"name":"contentType","type":"option","char":"c","description":"Specifies a custom MIME content type of the record. By default \"application/json\" is used.","required":false}},"args":[{"name":"key","description":"Key of the record in key-value store.","required":true},{"name":"value","description":"Record data, which can be one of the following values:\n- If empty, the record in the key-value store is deleted.\n- If no `contentType` flag is specified, value is expected to be any JSON string value.\n- If options.contentType is set, value is taken as is.","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.10.0-beta.1",
|
|
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
|
+
"oclif.manifest.json",
|
|
17
|
+
"index.js",
|
|
18
|
+
"package.json"
|
|
19
|
+
],
|
|
20
|
+
"bin": {
|
|
21
|
+
"apify": "./src/bin/run"
|
|
22
|
+
},
|
|
23
|
+
"contributors": [
|
|
24
|
+
"Jakub Drobník <jakub.drobnik@apify.com>",
|
|
25
|
+
"Jan Curn <jan@apify.com>"
|
|
26
|
+
],
|
|
27
|
+
"repository": {
|
|
28
|
+
"type": "git",
|
|
29
|
+
"url": "git+https://github.com/apify/apify-cli.git"
|
|
30
|
+
},
|
|
31
|
+
"keywords": [
|
|
32
|
+
"apify",
|
|
33
|
+
"client",
|
|
34
|
+
"node",
|
|
35
|
+
"command",
|
|
36
|
+
"line",
|
|
37
|
+
"bash"
|
|
38
|
+
],
|
|
39
|
+
"author": {
|
|
40
|
+
"name": "Apify",
|
|
41
|
+
"email": "support@apify.com",
|
|
42
|
+
"url": "https://www.apify.com"
|
|
43
|
+
},
|
|
44
|
+
"license": "Apache-2.0",
|
|
45
|
+
"bugs": {
|
|
46
|
+
"url": "https://github.com/apify/apify-cli/issues"
|
|
47
|
+
},
|
|
48
|
+
"homepage": "https://github.com/apify/apify-cli#readme",
|
|
49
|
+
"engines": {
|
|
50
|
+
"node": ">=12.0.0"
|
|
51
|
+
},
|
|
52
|
+
"dependencies": {
|
|
53
|
+
"@apify/actor-templates": "^0.1.3",
|
|
54
|
+
"@apify/consts": "^1.7.0",
|
|
55
|
+
"@apify/input_schema": "^3.3.0",
|
|
56
|
+
"@crawlee/memory-storage": "^3.0.3",
|
|
57
|
+
"@oclif/command": "^1.8.16",
|
|
58
|
+
"@oclif/config": "^1.18.3",
|
|
59
|
+
"@oclif/errors": "^1.3.5",
|
|
60
|
+
"@oclif/plugin-commands": "^2.1.0",
|
|
61
|
+
"@oclif/plugin-help": "^5.1.12",
|
|
62
|
+
"ajv": "^8.10.0",
|
|
63
|
+
"apify-client": "^2.2.0",
|
|
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.1.0",
|
|
69
|
+
"got-scraping": "^3.2.9",
|
|
70
|
+
"inquirer": "^7.3.3",
|
|
71
|
+
"is-online": "^10.0.0",
|
|
72
|
+
"istextorbinary": "^6.0.0",
|
|
73
|
+
"load-json-file": "^6.2.0",
|
|
74
|
+
"mime": "^2.6.0",
|
|
75
|
+
"minimist": "^1.2.5",
|
|
76
|
+
"ow": "^0.28.1",
|
|
77
|
+
"rimraf": "^3.0.2",
|
|
78
|
+
"semver": "^7.3.5",
|
|
79
|
+
"underscore": "^1.13.2",
|
|
80
|
+
"unzipper": "^0.10.11",
|
|
81
|
+
"write-json-file": "^4.3.0"
|
|
82
|
+
},
|
|
83
|
+
"devDependencies": {
|
|
84
|
+
"@apify/eslint-config": "^0.2.3",
|
|
85
|
+
"@oclif/dev-cli": "^1.26.0",
|
|
86
|
+
"@oclif/test": "^2.1.0",
|
|
87
|
+
"chai": "^4.3.4",
|
|
88
|
+
"chai-as-promised": "^7.1.1",
|
|
89
|
+
"eslint": "^8.11.0",
|
|
90
|
+
"mocha": "^10.0.0",
|
|
91
|
+
"sinon": "^9.2.4"
|
|
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
|
}
|