apify-cli 1.0.0-beta.15 → 1.0.0-beta.17
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 +18 -18
- package/bin/dev.js +7 -0
- package/bin/run.js +7 -0
- package/oclif.manifest.json +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -307,7 +307,7 @@ DESCRIPTION
|
|
|
307
307
|
Commands are designed to be used in Actor runs. All commands are in PoC state, do not use in production environments.
|
|
308
308
|
```
|
|
309
309
|
|
|
310
|
-
_See code: [src/commands/actor/index.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.
|
|
310
|
+
_See code: [src/commands/actor/index.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.17/src/commands/actor/index.ts)_
|
|
311
311
|
|
|
312
312
|
## `apify actor get-input`
|
|
313
313
|
|
|
@@ -321,7 +321,7 @@ DESCRIPTION
|
|
|
321
321
|
Gets the Actor input value from the default key-value store associated with the Actor run.
|
|
322
322
|
```
|
|
323
323
|
|
|
324
|
-
_See code: [src/commands/actor/get-input.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.
|
|
324
|
+
_See code: [src/commands/actor/get-input.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.17/src/commands/actor/get-input.ts)_
|
|
325
325
|
|
|
326
326
|
## `apify actor get-value KEY`
|
|
327
327
|
|
|
@@ -338,7 +338,7 @@ DESCRIPTION
|
|
|
338
338
|
Gets a value from the default key-value store associated with the Actor run.
|
|
339
339
|
```
|
|
340
340
|
|
|
341
|
-
_See code: [src/commands/actor/get-value.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.
|
|
341
|
+
_See code: [src/commands/actor/get-value.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.17/src/commands/actor/get-value.ts)_
|
|
342
342
|
|
|
343
343
|
## `apify actor push-data [ITEM]`
|
|
344
344
|
|
|
@@ -360,7 +360,7 @@ DESCRIPTION
|
|
|
360
360
|
$ cat ./test.json | apify actor:push-data
|
|
361
361
|
```
|
|
362
362
|
|
|
363
|
-
_See code: [src/commands/actor/push-data.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.
|
|
363
|
+
_See code: [src/commands/actor/push-data.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.17/src/commands/actor/push-data.ts)_
|
|
364
364
|
|
|
365
365
|
## `apify actor set-value KEY [VALUE]`
|
|
366
366
|
|
|
@@ -389,7 +389,7 @@ DESCRIPTION
|
|
|
389
389
|
$ cat ./my-text-file.txt | apify actor:set-value KEY --contentType text/plain
|
|
390
390
|
```
|
|
391
391
|
|
|
392
|
-
_See code: [src/commands/actor/set-value.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.
|
|
392
|
+
_See code: [src/commands/actor/set-value.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.17/src/commands/actor/set-value.ts)_
|
|
393
393
|
|
|
394
394
|
## `apify call [ACTORID]`
|
|
395
395
|
|
|
@@ -415,7 +415,7 @@ DESCRIPTION
|
|
|
415
415
|
takes input for the Actor from the default local key-value store by default.
|
|
416
416
|
```
|
|
417
417
|
|
|
418
|
-
_See code: [src/commands/call.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.
|
|
418
|
+
_See code: [src/commands/call.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.17/src/commands/call.ts)_
|
|
419
419
|
|
|
420
420
|
## `apify create [ACTORNAME]`
|
|
421
421
|
|
|
@@ -439,7 +439,7 @@ DESCRIPTION
|
|
|
439
439
|
Creates a new Actor project directory from a selected boilerplate template.
|
|
440
440
|
```
|
|
441
441
|
|
|
442
|
-
_See code: [src/commands/create.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.
|
|
442
|
+
_See code: [src/commands/create.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.17/src/commands/create.ts)_
|
|
443
443
|
|
|
444
444
|
## `apify help [COMMAND]`
|
|
445
445
|
|
|
@@ -474,7 +474,7 @@ DESCRIPTION
|
|
|
474
474
|
The information is printed to the console.
|
|
475
475
|
```
|
|
476
476
|
|
|
477
|
-
_See code: [src/commands/info.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.
|
|
477
|
+
_See code: [src/commands/info.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.17/src/commands/info.ts)_
|
|
478
478
|
|
|
479
479
|
## `apify init [ACTORNAME]`
|
|
480
480
|
|
|
@@ -502,7 +502,7 @@ DESCRIPTION
|
|
|
502
502
|
WARNING: The directory at "storage" will be overwritten if it already exists.
|
|
503
503
|
```
|
|
504
504
|
|
|
505
|
-
_See code: [src/commands/init.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.
|
|
505
|
+
_See code: [src/commands/init.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.17/src/commands/init.ts)_
|
|
506
506
|
|
|
507
507
|
## `apify login`
|
|
508
508
|
|
|
@@ -523,7 +523,7 @@ DESCRIPTION
|
|
|
523
523
|
"apify" commands. To log out, call "apify logout".
|
|
524
524
|
```
|
|
525
525
|
|
|
526
|
-
_See code: [src/commands/login.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.
|
|
526
|
+
_See code: [src/commands/login.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.17/src/commands/login.ts)_
|
|
527
527
|
|
|
528
528
|
## `apify logout`
|
|
529
529
|
|
|
@@ -539,7 +539,7 @@ DESCRIPTION
|
|
|
539
539
|
call "apify login".
|
|
540
540
|
```
|
|
541
541
|
|
|
542
|
-
_See code: [src/commands/logout.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.
|
|
542
|
+
_See code: [src/commands/logout.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.17/src/commands/logout.ts)_
|
|
543
543
|
|
|
544
544
|
## `apify pull [ACTORID]`
|
|
545
545
|
|
|
@@ -561,7 +561,7 @@ DESCRIPTION
|
|
|
561
561
|
cloned. If it is defined as Web IDE, it will fetch the files.
|
|
562
562
|
```
|
|
563
563
|
|
|
564
|
-
_See code: [src/commands/pull.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.
|
|
564
|
+
_See code: [src/commands/pull.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.17/src/commands/pull.ts)_
|
|
565
565
|
|
|
566
566
|
## `apify push [ACTORID]`
|
|
567
567
|
|
|
@@ -599,7 +599,7 @@ DESCRIPTION
|
|
|
599
599
|
overwritten with --force flag.
|
|
600
600
|
```
|
|
601
601
|
|
|
602
|
-
_See code: [src/commands/push.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.
|
|
602
|
+
_See code: [src/commands/push.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.17/src/commands/push.ts)_
|
|
603
603
|
|
|
604
604
|
## `apify run`
|
|
605
605
|
|
|
@@ -627,7 +627,7 @@ DESCRIPTION
|
|
|
627
627
|
package.json file. You can set up your own main file or environment variables by changing it.
|
|
628
628
|
```
|
|
629
629
|
|
|
630
|
-
_See code: [src/commands/run.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.
|
|
630
|
+
_See code: [src/commands/run.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.17/src/commands/run.ts)_
|
|
631
631
|
|
|
632
632
|
## `apify secrets`
|
|
633
633
|
|
|
@@ -657,7 +657,7 @@ DESCRIPTION
|
|
|
657
657
|
of the Actor.
|
|
658
658
|
```
|
|
659
659
|
|
|
660
|
-
_See code: [src/commands/secrets/index.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.
|
|
660
|
+
_See code: [src/commands/secrets/index.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.17/src/commands/secrets/index.ts)_
|
|
661
661
|
|
|
662
662
|
## `apify secrets add NAME VALUE`
|
|
663
663
|
|
|
@@ -676,7 +676,7 @@ DESCRIPTION
|
|
|
676
676
|
The secrets are stored to a file at ~/.apify
|
|
677
677
|
```
|
|
678
678
|
|
|
679
|
-
_See code: [src/commands/secrets/add.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.
|
|
679
|
+
_See code: [src/commands/secrets/add.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.17/src/commands/secrets/add.ts)_
|
|
680
680
|
|
|
681
681
|
## `apify secrets rm NAME`
|
|
682
682
|
|
|
@@ -693,7 +693,7 @@ DESCRIPTION
|
|
|
693
693
|
Removes the secret.
|
|
694
694
|
```
|
|
695
695
|
|
|
696
|
-
_See code: [src/commands/secrets/rm.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.
|
|
696
|
+
_See code: [src/commands/secrets/rm.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.17/src/commands/secrets/rm.ts)_
|
|
697
697
|
|
|
698
698
|
## `apify vis [PATH]`
|
|
699
699
|
|
|
@@ -718,5 +718,5 @@ DESCRIPTION
|
|
|
718
718
|
You can also pass any custom path to your input schema to have it validated instead.
|
|
719
719
|
```
|
|
720
720
|
|
|
721
|
-
_See code: [src/commands/vis.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.
|
|
721
|
+
_See code: [src/commands/vis.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.17/src/commands/vis.ts)_
|
|
722
722
|
<!-- commandsstop -->
|
package/bin/dev.js
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import { execute } from '@oclif/core';
|
|
2
|
+
import { satisfies } from 'semver';
|
|
2
3
|
|
|
4
|
+
import { SUPPORTED_NODEJS_VERSION } from '../src/lib/consts.js';
|
|
3
5
|
import { error } from '../src/lib/outputs.ts';
|
|
4
6
|
|
|
7
|
+
if (!satisfies(process.version, SUPPORTED_NODEJS_VERSION)) {
|
|
8
|
+
error(`Apify CLI requires Node.js version ${SUPPORTED_NODEJS_VERSION}. Your current version is ${process.version}.`);
|
|
9
|
+
process.exit(1);
|
|
10
|
+
}
|
|
11
|
+
|
|
5
12
|
try {
|
|
6
13
|
await execute({ development: true, dir: import.meta.url });
|
|
7
14
|
} catch (err) {
|
package/bin/run.js
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { execute } from '@oclif/core';
|
|
4
|
+
import { satisfies } from 'semver';
|
|
4
5
|
|
|
6
|
+
import { SUPPORTED_NODEJS_VERSION } from '../dist/lib/consts.js';
|
|
5
7
|
import { error } from '../dist/lib/outputs.js';
|
|
6
8
|
|
|
9
|
+
if (!satisfies(process.version, SUPPORTED_NODEJS_VERSION)) {
|
|
10
|
+
error(`Apify CLI requires Node.js version ${SUPPORTED_NODEJS_VERSION}. Your current version is ${process.version}.`);
|
|
11
|
+
process.exit(1);
|
|
12
|
+
}
|
|
13
|
+
|
|
7
14
|
try {
|
|
8
15
|
await execute({ development: false, dir: import.meta.url });
|
|
9
16
|
} catch (err) {
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "apify-cli",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.17",
|
|
4
4
|
"description": "Apify command-line interface (CLI) helps you manage the Apify cloud platform and develop, build, and deploy Apify Actors.",
|
|
5
5
|
"exports": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
},
|
|
53
53
|
"homepage": "https://github.com/apify/apify-cli#readme",
|
|
54
54
|
"engines": {
|
|
55
|
-
"node": ">=
|
|
55
|
+
"node": ">=18"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@apify/actor-templates": "~0.1.5",
|