apify-cli 0.13.2-beta.0 → 0.14.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 CHANGED
@@ -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.13.2/src/commands/actor/index.js)_
287
+ _See code: [src/commands/actor/index.js](https://github.com/apify/apify-cli/blob/v0.14.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.13.2/src/commands/actor/get-input.js)_
298
+ _See code: [src/commands/actor/get-input.js](https://github.com/apify/apify-cli/blob/v0.14.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.13.2/src/commands/actor/get-value.js)_
312
+ _See code: [src/commands/actor/get-value.js](https://github.com/apify/apify-cli/blob/v0.14.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.13.2/src/commands/actor/push-data.js)_
333
+ _See code: [src/commands/actor/push-data.js](https://github.com/apify/apify-cli/blob/v0.14.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.13.2/src/commands/actor/set-value.js)_
363
+ _See code: [src/commands/actor/set-value.js](https://github.com/apify/apify-cli/blob/v0.14.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.13.2/src/commands/call.js)_
388
+ _See code: [src/commands/call.js](https://github.com/apify/apify-cli/blob/v0.14.1/src/commands/call.js)_
389
389
 
390
390
  ## `apify create [ACTORNAME]`
391
391
 
@@ -407,7 +407,7 @@ OPTIONS
407
407
  --skip-dependency-install Skip installing actor dependencies.
408
408
  ```
409
409
 
410
- _See code: [src/commands/create.js](https://github.com/apify/apify-cli/blob/v0.13.2/src/commands/create.js)_
410
+ _See code: [src/commands/create.js](https://github.com/apify/apify-cli/blob/v0.14.1/src/commands/create.js)_
411
411
 
412
412
  ## `apify info`
413
413
 
@@ -421,7 +421,7 @@ DESCRIPTION
421
421
  The information is printed to the console.
422
422
  ```
423
423
 
424
- _See code: [src/commands/info.js](https://github.com/apify/apify-cli/blob/v0.13.2/src/commands/info.js)_
424
+ _See code: [src/commands/info.js](https://github.com/apify/apify-cli/blob/v0.14.1/src/commands/info.js)_
425
425
 
426
426
  ## `apify init [ACTORNAME]`
427
427
 
@@ -441,7 +441,7 @@ DESCRIPTION
441
441
  WARNING: The directory at "storage" will be overwritten if it already exists.
442
442
  ```
443
443
 
444
- _See code: [src/commands/init.js](https://github.com/apify/apify-cli/blob/v0.13.2/src/commands/init.js)_
444
+ _See code: [src/commands/init.js](https://github.com/apify/apify-cli/blob/v0.14.1/src/commands/init.js)_
445
445
 
446
446
  ## `apify login`
447
447
 
@@ -459,7 +459,7 @@ DESCRIPTION
459
459
  "apify" commands. To log out, call "apify logout".
460
460
  ```
461
461
 
462
- _See code: [src/commands/login.js](https://github.com/apify/apify-cli/blob/v0.13.2/src/commands/login.js)_
462
+ _See code: [src/commands/login.js](https://github.com/apify/apify-cli/blob/v0.14.1/src/commands/login.js)_
463
463
 
464
464
  ## `apify logout`
465
465
 
@@ -474,7 +474,7 @@ DESCRIPTION
474
474
  call "apify login".
475
475
  ```
476
476
 
477
- _See code: [src/commands/logout.js](https://github.com/apify/apify-cli/blob/v0.13.2/src/commands/logout.js)_
477
+ _See code: [src/commands/logout.js](https://github.com/apify/apify-cli/blob/v0.14.1/src/commands/logout.js)_
478
478
 
479
479
  ## `apify push [ACTORID]`
480
480
 
@@ -509,7 +509,7 @@ DESCRIPTION
509
509
  WARNING: If the target actor already exists in your Apify account, it will be overwritten!
510
510
  ```
511
511
 
512
- _See code: [src/commands/push.js](https://github.com/apify/apify-cli/blob/v0.13.2/src/commands/push.js)_
512
+ _See code: [src/commands/push.js](https://github.com/apify/apify-cli/blob/v0.14.1/src/commands/push.js)_
513
513
 
514
514
  ## `apify run`
515
515
 
@@ -539,7 +539,7 @@ DESCRIPTION
539
539
  You can set up your own main file or environment variables by changing it.
540
540
  ```
541
541
 
542
- _See code: [src/commands/run.js](https://github.com/apify/apify-cli/blob/v0.13.2/src/commands/run.js)_
542
+ _See code: [src/commands/run.js](https://github.com/apify/apify-cli/blob/v0.14.1/src/commands/run.js)_
543
543
 
544
544
  ## `apify secrets`
545
545
 
@@ -567,7 +567,7 @@ DESCRIPTION
567
567
  of the actor.
568
568
  ```
569
569
 
570
- _See code: [src/commands/secrets/index.js](https://github.com/apify/apify-cli/blob/v0.13.2/src/commands/secrets/index.js)_
570
+ _See code: [src/commands/secrets/index.js](https://github.com/apify/apify-cli/blob/v0.14.1/src/commands/secrets/index.js)_
571
571
 
572
572
  ## `apify secrets:add NAME VALUE`
573
573
 
@@ -585,7 +585,7 @@ DESCRIPTION
585
585
  The secrets are stored to a file at ~/.apify
586
586
  ```
587
587
 
588
- _See code: [src/commands/secrets/add.js](https://github.com/apify/apify-cli/blob/v0.13.2/src/commands/secrets/add.js)_
588
+ _See code: [src/commands/secrets/add.js](https://github.com/apify/apify-cli/blob/v0.14.1/src/commands/secrets/add.js)_
589
589
 
590
590
  ## `apify secrets:rm NAME`
591
591
 
@@ -599,7 +599,7 @@ ARGUMENTS
599
599
  NAME Name of the secret
600
600
  ```
601
601
 
602
- _See code: [src/commands/secrets/rm.js](https://github.com/apify/apify-cli/blob/v0.13.2/src/commands/secrets/rm.js)_
602
+ _See code: [src/commands/secrets/rm.js](https://github.com/apify/apify-cli/blob/v0.14.1/src/commands/secrets/rm.js)_
603
603
 
604
604
  ## `apify vis [PATH]`
605
605
 
@@ -623,5 +623,5 @@ DESCRIPTION
623
623
  You can also pass any custom path to your input schema to have it validated instead.
624
624
  ```
625
625
 
626
- _See code: [src/commands/vis.js](https://github.com/apify/apify-cli/blob/v0.13.2/src/commands/vis.js)_
626
+ _See code: [src/commands/vis.js](https://github.com/apify/apify-cli/blob/v0.14.1/src/commands/vis.js)_
627
627
  <!-- commandsstop -->
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "apify-cli",
3
- "version": "0.13.2",
3
+ "version": "0.14.1",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "apify-cli",
9
- "version": "0.13.2",
9
+ "version": "0.14.1",
10
10
  "hasInstallScript": true,
11
11
  "license": "Apache-2.0",
12
12
  "dependencies": {
@@ -1 +1 @@
1
- {"version":"0.13.2","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 \".actor/actor.json\" file.","required":false}]},"check-version":{"id":"check-version","description":"Checks that installed Apify CLI version is up to date.","pluginName":"apify-cli","pluginType":"core","hidden":true,"aliases":["cv"],"flags":{"enforce-update":{"name":"enforce-update","type":"boolean","char":"e","description":"[Optional] Enforce version update from NPM","required":false,"allowNo":false}},"args":[]},"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.\nVisit https://raw.githubusercontent.com/apify/actor-templates/master/templates/manifest.json to find available template names.","required":false},"skip-dependency-install":{"name":"skip-dependency-install","type":"boolean","description":"Skip installing actor dependencies.","required":false,"allowNo":false},"template-archive-url":{"name":"template-archive-url","type":"option","description":"Actor template archive url. Useful for developing new templates.","hidden":true,"required":false}},"args":[{"name":"actorName","description":"Name of the actor and its directory","required":false}]},"edit-input-schema":{"id":"edit-input-schema","description":"Lets you edit your input schema that would be used on the platform in a visual input schema editor.","pluginName":"apify-cli","pluginType":"core","hidden":true,"aliases":["eis"],"flags":{},"args":[{"name":"path","description":"Optional path to your INPUT_SCHEMA.json file. If not provided default platform location for input schema is used.","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 \".actor/actor.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 \".actor/actor.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 \".actor/actor.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 \".actor/actor.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 \".actor/actor.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 \".actor/actor.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 command's default behavior by overriding the 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 and prints errors found.\nThe input schema for the actor is used from these locations in order of preference.\nThe first one found is validated as it would be the one used on the Apify platform.\n1. Directly embedded object in \".actor/actor.json\" under 'input' key\n2. Path to JSON file referenced in \".actor/actor.json\" under 'input' key\n3. JSON file at .actor/INPUT_SCHEMA.json\n4. JSON file at INPUT_SCHEMA.json\n\nYou can also pass any custom path to your input schema to have it validated instead.\n","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 \".actor/actor.json\" file by adding the \"@\" prefix:\n\n{\n \"actorSpecification\": 1,\n \"name\": \"my_actor\",\n \"environmentVariables\": { \"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.14.1","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 \".actor/actor.json\" file.","required":false}]},"check-version":{"id":"check-version","description":"Checks that installed Apify CLI version is up to date.","pluginName":"apify-cli","pluginType":"core","hidden":true,"aliases":["cv"],"flags":{"enforce-update":{"name":"enforce-update","type":"boolean","char":"e","description":"[Optional] Enforce version update from NPM","required":false,"allowNo":false}},"args":[]},"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.\nVisit https://raw.githubusercontent.com/apify/actor-templates/master/templates/manifest.json to find available template names.","required":false},"skip-dependency-install":{"name":"skip-dependency-install","type":"boolean","description":"Skip installing actor dependencies.","required":false,"allowNo":false},"template-archive-url":{"name":"template-archive-url","type":"option","description":"Actor template archive url. Useful for developing new templates.","hidden":true,"required":false}},"args":[{"name":"actorName","description":"Name of the actor and its directory","required":false}]},"edit-input-schema":{"id":"edit-input-schema","description":"Lets you edit your input schema that would be used on the platform in a visual input schema editor.","pluginName":"apify-cli","pluginType":"core","hidden":true,"aliases":["eis"],"flags":{},"args":[{"name":"path","description":"Optional path to your INPUT_SCHEMA.json file. If not provided default platform location for input schema is used.","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 \".actor/actor.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 \".actor/actor.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 \".actor/actor.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 \".actor/actor.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 \".actor/actor.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 \".actor/actor.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 command's default behavior by overriding the 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 and prints errors found.\nThe input schema for the actor is used from these locations in order of preference.\nThe first one found is validated as it would be the one used on the Apify platform.\n1. Directly embedded object in \".actor/actor.json\" under 'input' key\n2. Path to JSON file referenced in \".actor/actor.json\" under 'input' key\n3. JSON file at .actor/INPUT_SCHEMA.json\n4. JSON file at INPUT_SCHEMA.json\n\nYou can also pass any custom path to your input schema to have it validated instead.\n","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 \".actor/actor.json\" file by adding the \"@\" prefix:\n\n{\n \"actorSpecification\": 1,\n \"name\": \"my_actor\",\n \"environmentVariables\": { \"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,107 +1,107 @@
1
1
  {
2
- "name": "apify-cli",
3
- "version": "0.13.2-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
- "prepare-release": "npm run manifest && npm run commands-md && npm run prod-shrinkwrap",
12
- "prod-shrinkwrap": "rm -rf node_modules && npm install --production && npm shrinkwrap",
13
- "manifest": "rm -f oclif.manifest.json && oclif-dev manifest",
14
- "postinstall": "node \"./src/bin/run\" check-version"
15
- },
16
- "files": [
17
- "src",
18
- "oclif.manifest.json",
19
- "index.js",
20
- "package.json"
21
- ],
22
- "bin": {
23
- "apify": "./src/bin/run"
24
- },
25
- "contributors": [
26
- "Jakub Drobník <jakub.drobnik@apify.com>",
27
- "Jan Curn <jan@apify.com>"
28
- ],
29
- "repository": {
30
- "type": "git",
31
- "url": "git+https://github.com/apify/apify-cli.git"
32
- },
33
- "keywords": [
34
- "apify",
35
- "client",
36
- "node",
37
- "command",
38
- "line",
39
- "bash"
40
- ],
41
- "author": {
42
- "name": "Apify",
43
- "email": "support@apify.com",
44
- "url": "https://www.apify.com"
45
- },
46
- "license": "Apache-2.0",
47
- "bugs": {
48
- "url": "https://github.com/apify/apify-cli/issues"
49
- },
50
- "homepage": "https://github.com/apify/apify-cli#readme",
51
- "engines": {
52
- "node": ">=16.0.0"
53
- },
54
- "dependencies": {
55
- "@apify/actor-templates": "^0.1.3",
56
- "@apify/consts": "^2.7.0",
57
- "@apify/input_schema": "^3.3.0",
58
- "@apify/utilities": "^2.2.3",
59
- "@crawlee/memory-storage": "^3.0.3",
60
- "@oclif/command": "^1.8.16",
61
- "@oclif/config": "^1.18.3",
62
- "@oclif/errors": "^1.3.5",
63
- "@oclif/plugin-commands": "^2.1.0",
64
- "@oclif/plugin-help": "^5.1.12",
65
- "ajv": "^8.10.0",
66
- "apify-client": "^2.2.0",
67
- "archiver-promise": "^1.0.0",
68
- "chalk": "^4.1.2",
69
- "cors": "^2.8.5",
70
- "cross-spawn": "^7.0.3",
71
- "detect-indent": "^6.1.0",
72
- "express": "^4.18.2",
73
- "globby": "^11.1.0",
74
- "got-scraping": "^3.2.9",
75
- "inquirer": "^7.3.3",
76
- "is-online": "^10.0.0",
77
- "istextorbinary": "^6.0.0",
78
- "load-json-file": "^6.2.0",
79
- "mime": "^2.6.0",
80
- "open": "^8.4.0",
81
- "ow": "^0.28.1",
82
- "rimraf": "^3.0.2",
83
- "semver": "^7.3.5",
84
- "underscore": "^1.13.2",
85
- "unzipper": "^0.10.11",
86
- "write-json-file": "^4.3.0"
87
- },
88
- "devDependencies": {
89
- "@apify/eslint-config": "^0.2.3",
90
- "@oclif/dev-cli": "^1.26.0",
91
- "@oclif/test": "^2.1.0",
92
- "chai": "^4.3.4",
93
- "chai-match": "^1.1.1",
94
- "eslint": "^8.11.0",
95
- "mocha": "^10.0.0",
96
- "sinon": "^9.2.4"
97
- },
98
- "oclif": {
99
- "bin": "apify",
100
- "commands": "./src/commands",
101
- "hooks": {
102
- "init": [
103
- "./src/hooks/init"
104
- ]
2
+ "name": "apify-cli",
3
+ "version": "0.14.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
+ "prepare-release": "npm run manifest && npm run commands-md && npm run prod-shrinkwrap",
12
+ "prod-shrinkwrap": "rm -rf node_modules && npm install --production && npm shrinkwrap",
13
+ "manifest": "rm -f oclif.manifest.json && oclif-dev manifest",
14
+ "postinstall": "node \"./src/bin/run\" check-version"
15
+ },
16
+ "files": [
17
+ "src",
18
+ "oclif.manifest.json",
19
+ "index.js",
20
+ "package.json"
21
+ ],
22
+ "bin": {
23
+ "apify": "./src/bin/run"
24
+ },
25
+ "contributors": [
26
+ "Jakub Drobník <jakub.drobnik@apify.com>",
27
+ "Jan Curn <jan@apify.com>"
28
+ ],
29
+ "repository": {
30
+ "type": "git",
31
+ "url": "git+https://github.com/apify/apify-cli.git"
32
+ },
33
+ "keywords": [
34
+ "apify",
35
+ "client",
36
+ "node",
37
+ "command",
38
+ "line",
39
+ "bash"
40
+ ],
41
+ "author": {
42
+ "name": "Apify",
43
+ "email": "support@apify.com",
44
+ "url": "https://www.apify.com"
45
+ },
46
+ "license": "Apache-2.0",
47
+ "bugs": {
48
+ "url": "https://github.com/apify/apify-cli/issues"
49
+ },
50
+ "homepage": "https://github.com/apify/apify-cli#readme",
51
+ "engines": {
52
+ "node": ">=16.0.0"
53
+ },
54
+ "dependencies": {
55
+ "@apify/actor-templates": "^0.1.3",
56
+ "@apify/consts": "^2.7.0",
57
+ "@apify/input_schema": "^3.3.0",
58
+ "@apify/utilities": "^2.2.3",
59
+ "@crawlee/memory-storage": "^3.0.3",
60
+ "@oclif/command": "^1.8.16",
61
+ "@oclif/config": "^1.18.3",
62
+ "@oclif/errors": "^1.3.5",
63
+ "@oclif/plugin-commands": "^2.1.0",
64
+ "@oclif/plugin-help": "^5.1.12",
65
+ "ajv": "^8.10.0",
66
+ "apify-client": "^2.2.0",
67
+ "archiver-promise": "^1.0.0",
68
+ "chalk": "^4.1.2",
69
+ "cors": "^2.8.5",
70
+ "cross-spawn": "^7.0.3",
71
+ "detect-indent": "^6.1.0",
72
+ "express": "^4.18.2",
73
+ "globby": "^11.1.0",
74
+ "got-scraping": "^3.2.9",
75
+ "inquirer": "^7.3.3",
76
+ "is-online": "^10.0.0",
77
+ "istextorbinary": "^6.0.0",
78
+ "load-json-file": "^6.2.0",
79
+ "mime": "^2.6.0",
80
+ "open": "^8.4.0",
81
+ "ow": "^0.28.1",
82
+ "rimraf": "^3.0.2",
83
+ "semver": "^7.3.5",
84
+ "underscore": "^1.13.2",
85
+ "unzipper": "^0.10.11",
86
+ "write-json-file": "^4.3.0"
87
+ },
88
+ "devDependencies": {
89
+ "@apify/eslint-config": "^0.2.3",
90
+ "@oclif/dev-cli": "^1.26.0",
91
+ "@oclif/test": "^2.1.0",
92
+ "chai": "^4.3.4",
93
+ "chai-match": "^1.1.1",
94
+ "eslint": "^8.11.0",
95
+ "mocha": "^10.0.0",
96
+ "sinon": "^9.2.4"
97
+ },
98
+ "oclif": {
99
+ "bin": "apify",
100
+ "commands": "./src/commands",
101
+ "hooks": {
102
+ "init": [
103
+ "./src/hooks/init"
104
+ ]
105
+ }
105
106
  }
106
- }
107
107
  }