apify-cli 1.0.0 → 1.1.1-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +242 -84
- package/LICENSE.md +201 -0
- package/README.md +49 -543
- package/dist/.tsbuildinfo +1 -1
- package/dist/actor.js +3 -0
- package/dist/actor.js.map +1 -0
- package/dist/apify.js +3 -0
- package/dist/apify.js.map +1 -0
- package/dist/chunk-C7RW4NOZ.js +242 -0
- package/dist/chunk-C7RW4NOZ.js.map +1 -0
- package/dist/index.js +2 -3
- package/package.json +113 -89
- package/bin/dev.cmd +0 -3
- package/bin/dev.js +0 -21
- package/bin/dev.sh +0 -4
- package/bin/run.cmd +0 -3
- package/bin/run.js +0 -23
- package/dist/commands/actor/get-input.d.ts +0 -6
- package/dist/commands/actor/get-input.d.ts.map +0 -1
- package/dist/commands/actor/get-input.js +0 -14
- package/dist/commands/actor/get-input.js.map +0 -1
- package/dist/commands/actor/get-value.d.ts +0 -9
- package/dist/commands/actor/get-value.d.ts.map +0 -1
- package/dist/commands/actor/get-value.js +0 -27
- package/dist/commands/actor/get-value.js.map +0 -1
- package/dist/commands/actor/index.d.ts +0 -6
- package/dist/commands/actor/index.d.ts.map +0 -1
- package/dist/commands/actor/index.js +0 -13
- package/dist/commands/actor/index.js.map +0 -1
- package/dist/commands/actor/push-data.d.ts +0 -11
- package/dist/commands/actor/push-data.d.ts.map +0 -1
- package/dist/commands/actor/push-data.js +0 -56
- package/dist/commands/actor/push-data.js.map +0 -1
- package/dist/commands/actor/set-value.d.ts +0 -15
- package/dist/commands/actor/set-value.d.ts.map +0 -1
- package/dist/commands/actor/set-value.js +0 -76
- package/dist/commands/actor/set-value.js.map +0 -1
- package/dist/commands/call.d.ts +0 -19
- package/dist/commands/call.d.ts.map +0 -1
- package/dist/commands/call.js +0 -193
- package/dist/commands/call.js.map +0 -1
- package/dist/commands/check-version.d.ts +0 -11
- package/dist/commands/check-version.d.ts.map +0 -1
- package/dist/commands/check-version.js +0 -39
- package/dist/commands/check-version.js.map +0 -1
- package/dist/commands/create.d.ts +0 -15
- package/dist/commands/create.d.ts.map +0 -1
- package/dist/commands/create.js +0 -201
- package/dist/commands/create.js.map +0 -1
- package/dist/commands/edit-input-schema.d.ts +0 -11
- package/dist/commands/edit-input-schema.d.ts.map +0 -1
- package/dist/commands/edit-input-schema.js +0 -176
- package/dist/commands/edit-input-schema.js.map +0 -1
- package/dist/commands/info.d.ts +0 -6
- package/dist/commands/info.d.ts.map +0 -1
- package/dist/commands/info.js +0 -26
- package/dist/commands/info.js.map +0 -1
- package/dist/commands/init-wrap-scrapy.d.ts +0 -10
- package/dist/commands/init-wrap-scrapy.d.ts.map +0 -1
- package/dist/commands/init-wrap-scrapy.js +0 -41
- package/dist/commands/init-wrap-scrapy.js.map +0 -1
- package/dist/commands/init.d.ts +0 -12
- package/dist/commands/init.d.ts.map +0 -1
- package/dist/commands/init.js +0 -88
- package/dist/commands/init.js.map +0 -1
- package/dist/commands/login.d.ts +0 -10
- package/dist/commands/login.d.ts.map +0 -1
- package/dist/commands/login.js +0 -174
- package/dist/commands/login.js.map +0 -1
- package/dist/commands/logout.d.ts +0 -6
- package/dist/commands/logout.d.ts.map +0 -1
- package/dist/commands/logout.js +0 -20
- package/dist/commands/logout.js.map +0 -1
- package/dist/commands/pull.d.ts +0 -12
- package/dist/commands/pull.d.ts.map +0 -1
- package/dist/commands/pull.js +0 -148
- package/dist/commands/pull.js.map +0 -1
- package/dist/commands/push.d.ts +0 -18
- package/dist/commands/push.d.ts.map +0 -1
- package/dist/commands/push.js +0 -298
- package/dist/commands/push.js.map +0 -1
- package/dist/commands/run.d.ts +0 -16
- package/dist/commands/run.d.ts.map +0 -1
- package/dist/commands/run.js +0 -383
- package/dist/commands/run.js.map +0 -1
- package/dist/commands/secrets/add.d.ts +0 -10
- package/dist/commands/secrets/add.d.ts.map +0 -1
- package/dist/commands/secrets/add.js +0 -31
- package/dist/commands/secrets/add.js.map +0 -1
- package/dist/commands/secrets/index.d.ts +0 -6
- package/dist/commands/secrets/index.d.ts.map +0 -1
- package/dist/commands/secrets/index.js +0 -24
- package/dist/commands/secrets/index.js.map +0 -1
- package/dist/commands/secrets/rm.d.ts +0 -9
- package/dist/commands/secrets/rm.d.ts.map +0 -1
- package/dist/commands/secrets/rm.js +0 -27
- package/dist/commands/secrets/rm.js.map +0 -1
- package/dist/commands/task/index.d.ts +0 -6
- package/dist/commands/task/index.d.ts.map +0 -1
- package/dist/commands/task/index.js +0 -13
- package/dist/commands/task/index.js.map +0 -1
- package/dist/commands/task/run.d.ts +0 -16
- package/dist/commands/task/run.d.ts.map +0 -1
- package/dist/commands/task/run.js +0 -91
- package/dist/commands/task/run.js.map +0 -1
- package/dist/commands/validate-schema.d.ts +0 -10
- package/dist/commands/validate-schema.d.ts.map +0 -1
- package/dist/commands/validate-schema.js +0 -58
- package/dist/commands/validate-schema.js.map +0 -1
- package/dist/hooks/deprecations.d.ts +0 -4
- package/dist/hooks/deprecations.d.ts.map +0 -1
- package/dist/hooks/deprecations.js +0 -18
- package/dist/hooks/deprecations.js.map +0 -1
- package/dist/hooks/init.d.ts +0 -7
- package/dist/hooks/init.d.ts.map +0 -1
- package/dist/hooks/init.js +0 -17
- package/dist/hooks/init.js.map +0 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/lib/actor.d.ts +0 -27
- package/dist/lib/actor.d.ts.map +0 -1
- package/dist/lib/actor.js +0 -67
- package/dist/lib/actor.js.map +0 -1
- package/dist/lib/apify-oclif-help.d.ts +0 -15
- package/dist/lib/apify-oclif-help.d.ts.map +0 -1
- package/dist/lib/apify-oclif-help.js +0 -19
- package/dist/lib/apify-oclif-help.js.map +0 -1
- package/dist/lib/apify_command.d.ts +0 -21
- package/dist/lib/apify_command.d.ts.map +0 -1
- package/dist/lib/apify_command.js +0 -104
- package/dist/lib/apify_command.js.map +0 -1
- package/dist/lib/commands/resolve-input.d.ts +0 -5
- package/dist/lib/commands/resolve-input.d.ts.map +0 -1
- package/dist/lib/commands/resolve-input.js +0 -29
- package/dist/lib/commands/resolve-input.js.map +0 -1
- package/dist/lib/commands/run-on-cloud.d.ts +0 -20
- package/dist/lib/commands/run-on-cloud.d.ts.map +0 -1
- package/dist/lib/commands/run-on-cloud.js +0 -89
- package/dist/lib/commands/run-on-cloud.js.map +0 -1
- package/dist/lib/community.d.ts +0 -2
- package/dist/lib/community.d.ts.map +0 -1
- package/dist/lib/community.js +0 -4
- package/dist/lib/community.js.map +0 -1
- package/dist/lib/consts.d.ts +0 -54
- package/dist/lib/consts.d.ts.map +0 -1
- package/dist/lib/consts.js +0 -65
- package/dist/lib/consts.js.map +0 -1
- package/dist/lib/create-utils.d.ts +0 -8
- package/dist/lib/create-utils.d.ts.map +0 -1
- package/dist/lib/create-utils.js +0 -148
- package/dist/lib/create-utils.js.map +0 -1
- package/dist/lib/exec.d.ts +0 -3
- package/dist/lib/exec.d.ts.map +0 -1
- package/dist/lib/exec.js +0 -40
- package/dist/lib/exec.js.map +0 -1
- package/dist/lib/files.d.ts +0 -14
- package/dist/lib/files.d.ts.map +0 -1
- package/dist/lib/files.js +0 -58
- package/dist/lib/files.js.map +0 -1
- package/dist/lib/input_schema.d.ts +0 -28
- package/dist/lib/input_schema.d.ts.map +0 -1
- package/dist/lib/input_schema.js +0 -126
- package/dist/lib/input_schema.js.map +0 -1
- package/dist/lib/local_state.d.ts +0 -11
- package/dist/lib/local_state.d.ts.map +0 -1
- package/dist/lib/local_state.js +0 -27
- package/dist/lib/local_state.js.map +0 -1
- package/dist/lib/outputs.d.ts +0 -19
- package/dist/lib/outputs.d.ts.map +0 -1
- package/dist/lib/outputs.js +0 -45
- package/dist/lib/outputs.js.map +0 -1
- package/dist/lib/project_analyzer.d.ts +0 -4
- package/dist/lib/project_analyzer.d.ts.map +0 -1
- package/dist/lib/project_analyzer.js +0 -30
- package/dist/lib/project_analyzer.js.map +0 -1
- package/dist/lib/projects/CrawleeAnalyzer.d.ts +0 -4
- package/dist/lib/projects/CrawleeAnalyzer.d.ts.map +0 -1
- package/dist/lib/projects/CrawleeAnalyzer.js +0 -20
- package/dist/lib/projects/CrawleeAnalyzer.js.map +0 -1
- package/dist/lib/projects/OldApifySDKAnalyzer.d.ts +0 -4
- package/dist/lib/projects/OldApifySDKAnalyzer.d.ts.map +0 -1
- package/dist/lib/projects/OldApifySDKAnalyzer.js +0 -38
- package/dist/lib/projects/OldApifySDKAnalyzer.js.map +0 -1
- package/dist/lib/projects/scrapy/ScrapyProjectAnalyzer.d.ts +0 -17
- package/dist/lib/projects/scrapy/ScrapyProjectAnalyzer.d.ts.map +0 -1
- package/dist/lib/projects/scrapy/ScrapyProjectAnalyzer.js +0 -87
- package/dist/lib/projects/scrapy/ScrapyProjectAnalyzer.js.map +0 -1
- package/dist/lib/projects/scrapy/Spider.d.ts +0 -14
- package/dist/lib/projects/scrapy/Spider.d.ts.map +0 -1
- package/dist/lib/projects/scrapy/Spider.js +0 -33
- package/dist/lib/projects/scrapy/Spider.js.map +0 -1
- package/dist/lib/projects/scrapy/SpiderFileAnalyzer.d.ts +0 -7
- package/dist/lib/projects/scrapy/SpiderFileAnalyzer.d.ts.map +0 -1
- package/dist/lib/projects/scrapy/SpiderFileAnalyzer.js +0 -25
- package/dist/lib/projects/scrapy/SpiderFileAnalyzer.js.map +0 -1
- package/dist/lib/projects/scrapy/wrapScrapyProject.d.ts +0 -4
- package/dist/lib/projects/scrapy/wrapScrapyProject.d.ts.map +0 -1
- package/dist/lib/projects/scrapy/wrapScrapyProject.js +0 -109
- package/dist/lib/projects/scrapy/wrapScrapyProject.js.map +0 -1
- package/dist/lib/projects/shared.d.ts +0 -2
- package/dist/lib/projects/shared.d.ts.map +0 -1
- package/dist/lib/projects/shared.js +0 -13
- package/dist/lib/projects/shared.js.map +0 -1
- package/dist/lib/secrets.d.ts +0 -22
- package/dist/lib/secrets.d.ts.map +0 -1
- package/dist/lib/secrets.js +0 -104
- package/dist/lib/secrets.js.map +0 -1
- package/dist/lib/telemetry.d.ts +0 -21
- package/dist/lib/telemetry.d.ts.map +0 -1
- package/dist/lib/telemetry.js +0 -87
- package/dist/lib/telemetry.js.map +0 -1
- package/dist/lib/types.d.ts +0 -11
- package/dist/lib/types.d.ts.map +0 -1
- package/dist/lib/types.js +0 -2
- package/dist/lib/types.js.map +0 -1
- package/dist/lib/utils.d.ts +0 -102
- package/dist/lib/utils.d.ts.map +0 -1
- package/dist/lib/utils.js +0 -577
- package/dist/lib/utils.js.map +0 -1
- package/dist/lib/version_check.d.ts +0 -14
- package/dist/lib/version_check.d.ts.map +0 -1
- package/dist/lib/version_check.js +0 -90
- package/dist/lib/version_check.js.map +0 -1
- package/oclif.manifest.json +0 -867
package/dist/index.js
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
// src/index.ts
|
|
2
|
+
throw new Error("Apify CLI cannot be used as a library.");
|
package/package.json
CHANGED
|
@@ -1,33 +1,41 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "apify-cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1-beta.0",
|
|
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
|
-
"types": "./dist/index.d.ts",
|
|
7
6
|
"type": "module",
|
|
8
7
|
"scripts": {
|
|
9
|
-
"dev": "tsx ./
|
|
10
|
-
"
|
|
11
|
-
"test
|
|
12
|
-
"
|
|
13
|
-
"
|
|
8
|
+
"dev:apify": "tsx ./src/entrypoints/apify.ts",
|
|
9
|
+
"dev:actor": "tsx ./src/entrypoints/actor.ts",
|
|
10
|
+
"test:all": "yarn test:local && yarn test:api",
|
|
11
|
+
"test:local": "vitest run --testNamePattern '^((?!\\[api]).)*$' --exclude ./test/api",
|
|
12
|
+
"test:api": "vitest run --testNamePattern '\\[api\\]'",
|
|
13
|
+
"test:python": "vitest run --testNamePattern '\\[python\\]'",
|
|
14
|
+
"test:cucumber": "cross-env NODE_OPTIONS=\"--import tsx\" cucumber-js",
|
|
15
|
+
"lint": "eslint src test scripts features --ext .ts,.cjs,.mjs",
|
|
16
|
+
"lint:fix": "eslint src test scripts features --fix --ext .ts,.cjs,.mjs",
|
|
17
|
+
"format": "biome format . && prettier --check \"**/*.{md,yml,yaml}\"",
|
|
18
|
+
"format:fix": "biome format --write . && prettier --write \"**/*.{md,yml,yaml}\"",
|
|
14
19
|
"clean": "rimraf dist",
|
|
15
|
-
"build": "yarn clean && tsc",
|
|
16
|
-
"
|
|
17
|
-
"prepack": "yarn
|
|
18
|
-
"
|
|
20
|
+
"build": "yarn clean && tsc && tsup",
|
|
21
|
+
"build-bundles": "bun run scripts/build-cli-bundles.ts",
|
|
22
|
+
"prepack": "yarn insert-cli-metadata && yarn build && yarn update-docs",
|
|
23
|
+
"insert-cli-metadata": "tsx scripts/insert-cli-metadata.ts",
|
|
24
|
+
"update-docs": "tsx scripts/generate-cli-docs.ts",
|
|
25
|
+
"postinstall": "node -e \"console.log('We have an active developer community on Discord. You can find it on https://discord.gg/crawlee-apify-801163717915574323.');\""
|
|
19
26
|
},
|
|
20
27
|
"files": [
|
|
21
|
-
"dist"
|
|
22
|
-
"oclif.manifest.json",
|
|
23
|
-
"bin"
|
|
28
|
+
"dist"
|
|
24
29
|
],
|
|
25
30
|
"bin": {
|
|
26
|
-
"
|
|
31
|
+
"actor": "./dist/actor.js",
|
|
32
|
+
"apify": "./dist/apify.js",
|
|
33
|
+
"apify-cli": "./dist/apify.js"
|
|
27
34
|
},
|
|
28
35
|
"contributors": [
|
|
29
36
|
"Jakub Drobník <jakub.drobnik@apify.com>",
|
|
30
|
-
"Jan Curn <jan@apify.com>"
|
|
37
|
+
"Jan Curn <jan@apify.com>",
|
|
38
|
+
"Vlad Frangu <vlad.frangu@apify.com>"
|
|
31
39
|
],
|
|
32
40
|
"repository": {
|
|
33
41
|
"type": "git",
|
|
@@ -52,105 +60,121 @@
|
|
|
52
60
|
},
|
|
53
61
|
"homepage": "https://github.com/apify/apify-cli#readme",
|
|
54
62
|
"engines": {
|
|
55
|
-
"node": ">=
|
|
63
|
+
"node": ">=20"
|
|
56
64
|
},
|
|
57
65
|
"dependencies": {
|
|
58
|
-
"@apify/actor-templates": "
|
|
59
|
-
"@apify/consts": "
|
|
60
|
-
"@apify/input_schema": "
|
|
61
|
-
"@apify/utilities": "
|
|
62
|
-
"@crawlee/memory-storage": "
|
|
63
|
-
"@
|
|
64
|
-
"@
|
|
66
|
+
"@apify/actor-templates": "^0.1.5",
|
|
67
|
+
"@apify/consts": "^2.36.0",
|
|
68
|
+
"@apify/input_schema": "^3.17.0",
|
|
69
|
+
"@apify/utilities": "^2.18.0",
|
|
70
|
+
"@crawlee/memory-storage": "^3.12.0",
|
|
71
|
+
"@inquirer/core": "^10.1.15",
|
|
72
|
+
"@inquirer/input": "^4.2.1",
|
|
73
|
+
"@inquirer/password": "^4.0.17",
|
|
74
|
+
"@inquirer/select": "^4.3.1",
|
|
65
75
|
"@root/walk": "~1.1.0",
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
76
|
+
"@sapphire/duration": "^1.1.2",
|
|
77
|
+
"@sapphire/result": "^2.7.2",
|
|
78
|
+
"@sapphire/timestamp": "^1.0.3",
|
|
79
|
+
"@skyra/jaro-winkler": "^1.1.1",
|
|
80
|
+
"adm-zip": "~0.5.15",
|
|
81
|
+
"ajv": "~8.17.1",
|
|
82
|
+
"apify-client": "^2.14.0",
|
|
83
|
+
"archiver": "~7.0.1",
|
|
84
|
+
"axios": "^1.11.0",
|
|
85
|
+
"chalk": "~5.5.0",
|
|
86
|
+
"cli-table3": "^0.6.5",
|
|
72
87
|
"computer-name": "~0.1.0",
|
|
73
88
|
"configparser": "~0.3.10",
|
|
74
89
|
"cors": "~2.8.5",
|
|
75
90
|
"detect-indent": "~7.0.1",
|
|
76
91
|
"escape-string-regexp": "~5.0.0",
|
|
77
|
-
"
|
|
78
|
-
"
|
|
92
|
+
"execa": "^9.5.2",
|
|
93
|
+
"express": "~5.1.0",
|
|
94
|
+
"globby": "~14.1.0",
|
|
79
95
|
"handlebars": "~4.7.8",
|
|
80
|
-
"
|
|
81
|
-
"is-ci": "~
|
|
82
|
-
"is-online": "~10.0.0",
|
|
96
|
+
"indent-string": "^5.0.0",
|
|
97
|
+
"is-ci": "~4.1.0",
|
|
83
98
|
"istextorbinary": "~9.5.0",
|
|
84
99
|
"jju": "~1.4.0",
|
|
85
|
-
"
|
|
100
|
+
"js-levenshtein": "^1.1.6",
|
|
86
101
|
"lodash.clonedeep": "^4.5.0",
|
|
87
|
-
"mime": "~4.0.
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
102
|
+
"mime": "~4.0.4",
|
|
103
|
+
"open": "~10.2.0",
|
|
104
|
+
"rimraf": "~6.0.1",
|
|
105
|
+
"semver": "~7.7.0",
|
|
106
|
+
"string-width": "^7.2.0",
|
|
107
|
+
"strip-ansi": "^7.1.0",
|
|
93
108
|
"tiged": "~2.12.7",
|
|
94
|
-
"
|
|
95
|
-
"
|
|
109
|
+
"which": "^5.0.0",
|
|
110
|
+
"widest-line": "^5.0.0",
|
|
111
|
+
"wrap-ansi": "^9.0.0"
|
|
96
112
|
},
|
|
97
113
|
"devDependencies": {
|
|
98
|
-
"@apify/eslint-config": "^0.
|
|
99
|
-
"@apify/
|
|
100
|
-
"@
|
|
101
|
-
"@crawlee/types": "^3.
|
|
102
|
-
"@
|
|
114
|
+
"@apify/eslint-config": "^1.0.0",
|
|
115
|
+
"@apify/tsconfig": "^0.1.1",
|
|
116
|
+
"@biomejs/biome": "^2.0.0",
|
|
117
|
+
"@crawlee/types": "^3.11.1",
|
|
118
|
+
"@cucumber/cucumber": "^12.0.0",
|
|
103
119
|
"@types/adm-zip": "^0.5.5",
|
|
104
120
|
"@types/archiver": "^6.0.2",
|
|
105
|
-
"@types/
|
|
121
|
+
"@types/bun": "^1.2.5",
|
|
122
|
+
"@types/chai": "^4.3.17",
|
|
106
123
|
"@types/cors": "^2.8.17",
|
|
107
|
-
"@types/
|
|
108
|
-
"@types/
|
|
124
|
+
"@types/execa": "^2.0.2",
|
|
125
|
+
"@types/express": "^5.0.0",
|
|
126
|
+
"@types/fs-extra": "^11",
|
|
109
127
|
"@types/is-ci": "^3.0.4",
|
|
110
128
|
"@types/jju": "^1.4.5",
|
|
129
|
+
"@types/js-levenshtein": "^1",
|
|
111
130
|
"@types/lodash.clonedeep": "^4",
|
|
112
131
|
"@types/mime": "^4.0.0",
|
|
113
|
-
"@types/node": "^
|
|
132
|
+
"@types/node": "^22.0.0",
|
|
114
133
|
"@types/semver": "^7.5.8",
|
|
115
|
-
"@types/
|
|
116
|
-
"@
|
|
117
|
-
"
|
|
118
|
-
"@yarnpkg/core": "^4.0.3",
|
|
134
|
+
"@types/which": "^3.0.4",
|
|
135
|
+
"@yarnpkg/core": "^4.1.2",
|
|
136
|
+
"apify": "^3.2.4",
|
|
119
137
|
"chai": "^4.4.1",
|
|
120
|
-
"
|
|
138
|
+
"cross-env": "^10.0.0",
|
|
139
|
+
"eslint": "^9.25.1",
|
|
140
|
+
"eslint-config-prettier": "^10.1.2",
|
|
141
|
+
"lint-staged": "^16.0.0",
|
|
142
|
+
"mdast-util-from-markdown": "^2.0.2",
|
|
121
143
|
"mock-stdin": "^1.0.0",
|
|
122
|
-
"
|
|
123
|
-
"
|
|
124
|
-
"
|
|
125
|
-
"
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
"bin": "apify",
|
|
129
|
-
"dirname": "apify",
|
|
130
|
-
"commands": "./dist/commands",
|
|
131
|
-
"plugins": [
|
|
132
|
-
"@oclif/plugin-help"
|
|
133
|
-
],
|
|
134
|
-
"hooks": {
|
|
135
|
-
"init": [
|
|
136
|
-
"./dist/hooks/init"
|
|
137
|
-
],
|
|
138
|
-
"prerun": [
|
|
139
|
-
"./dist/hooks/deprecations"
|
|
140
|
-
]
|
|
141
|
-
},
|
|
142
|
-
"helpClass": "./dist/lib/apify-oclif-help",
|
|
143
|
-
"additionalHelpFlags": [
|
|
144
|
-
"-h"
|
|
145
|
-
],
|
|
146
|
-
"additionalVersionFlags": [
|
|
147
|
-
"-v"
|
|
148
|
-
],
|
|
149
|
-
"topicSeparator": " "
|
|
144
|
+
"prettier": "^3.5.3",
|
|
145
|
+
"tsup": "^8.5.0",
|
|
146
|
+
"tsx": "^4.16.5",
|
|
147
|
+
"typescript": "^5.8.3",
|
|
148
|
+
"typescript-eslint": "^8.31.0",
|
|
149
|
+
"vitest": "^3.0.0"
|
|
150
150
|
},
|
|
151
151
|
"volta": {
|
|
152
|
-
"node": "
|
|
153
|
-
"yarn": "4.
|
|
152
|
+
"node": "22.18.0",
|
|
153
|
+
"yarn": "4.9.2"
|
|
154
|
+
},
|
|
155
|
+
"packageManager": "yarn@4.9.2",
|
|
156
|
+
"devEngines": {
|
|
157
|
+
"runtime": [
|
|
158
|
+
{
|
|
159
|
+
"name": "node",
|
|
160
|
+
"version": ">= 20",
|
|
161
|
+
"onFail": "error"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"name": "bun",
|
|
165
|
+
"version": ">= 1.2.5",
|
|
166
|
+
"onFail": "ignore"
|
|
167
|
+
}
|
|
168
|
+
],
|
|
169
|
+
"packageManager": {
|
|
170
|
+
"name": "yarn",
|
|
171
|
+
"version": ">= 4",
|
|
172
|
+
"onFail": "warn"
|
|
173
|
+
}
|
|
154
174
|
},
|
|
155
|
-
"
|
|
175
|
+
"lint-staged": {
|
|
176
|
+
"*": "biome format --write --no-errors-on-unmatched",
|
|
177
|
+
"*.{mjs,js,ts}": "eslint --fix --ext mjs,js,ts",
|
|
178
|
+
"*.md": "prettier --write"
|
|
179
|
+
}
|
|
156
180
|
}
|
package/bin/dev.cmd
DELETED
package/bin/dev.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { execute } from '@oclif/core';
|
|
2
|
-
import { satisfies } from 'semver';
|
|
3
|
-
|
|
4
|
-
import { SUPPORTED_NODEJS_VERSION } from '../src/lib/consts.ts';
|
|
5
|
-
import { error } from '../src/lib/outputs.ts';
|
|
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
|
-
|
|
12
|
-
try {
|
|
13
|
-
await execute({ development: true, dir: import.meta.url });
|
|
14
|
-
} catch (err) {
|
|
15
|
-
const exitCode = (err.oclif && err.oclif.exit !== undefined) ? err.oclif.exit : 1;
|
|
16
|
-
if (exitCode !== 0) {
|
|
17
|
-
error(err.message);
|
|
18
|
-
if (process.env.DEBUG) console.error(err);
|
|
19
|
-
process.exit(exitCode);
|
|
20
|
-
}
|
|
21
|
-
}
|
package/bin/dev.sh
DELETED
package/bin/run.cmd
DELETED
package/bin/run.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
import { execute } from '@oclif/core';
|
|
4
|
-
import { satisfies } from 'semver';
|
|
5
|
-
|
|
6
|
-
import { SUPPORTED_NODEJS_VERSION } from '../dist/lib/consts.js';
|
|
7
|
-
import { error } from '../dist/lib/outputs.js';
|
|
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
|
-
|
|
14
|
-
try {
|
|
15
|
-
await execute({ development: false, dir: import.meta.url });
|
|
16
|
-
} catch (err) {
|
|
17
|
-
const exitCode = (err.oclif && err.oclif.exit !== undefined) ? err.oclif.exit : 1;
|
|
18
|
-
if (exitCode !== 0) {
|
|
19
|
-
error(err.message);
|
|
20
|
-
if (process.env.DEBUG) console.error(err);
|
|
21
|
-
process.exit(exitCode);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-input.d.ts","sourceRoot":"","sources":["../../../src/commands/actor/get-input.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,qBAAa,eAAgB,SAAQ,YAAY,CAAC,OAAO,eAAe,CAAC;IACrE,OAAgB,WAAW,SAAgG;IAErH,GAAG;CAGZ"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { outputInputFromDefaultStore } from '../../lib/actor.js';
|
|
2
|
-
import { ApifyCommand } from '../../lib/apify_command.js';
|
|
3
|
-
export class GetInputCommand extends ApifyCommand {
|
|
4
|
-
async run() {
|
|
5
|
-
await outputInputFromDefaultStore();
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(GetInputCommand, "description", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
configurable: true,
|
|
11
|
-
writable: true,
|
|
12
|
-
value: 'Gets the Actor input value from the default key-value store associated with the Actor run.'
|
|
13
|
-
});
|
|
14
|
-
//# sourceMappingURL=get-input.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-input.js","sourceRoot":"","sources":["../../../src/commands/actor/get-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,MAAM,OAAO,eAAgB,SAAQ,YAAoC;IAGrE,KAAK,CAAC,GAAG;QACL,MAAM,2BAA2B,EAAE,CAAC;IACxC,CAAC;;AAJe;;;;WAAc,4FAA4F;GAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ApifyCommand } from '../../lib/apify_command.js';
|
|
2
|
-
export declare class GetValueCommand extends ApifyCommand<typeof GetValueCommand> {
|
|
3
|
-
static description: string;
|
|
4
|
-
static args: {
|
|
5
|
-
key: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
6
|
-
};
|
|
7
|
-
run(): Promise<void>;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=get-value.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-value.d.ts","sourceRoot":"","sources":["../../../src/commands/actor/get-value.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,qBAAa,eAAgB,SAAQ,YAAY,CAAC,OAAO,eAAe,CAAC;IACrE,OAAgB,WAAW,SAAkF;IAE7G,OAAgB,IAAI;;MAKlB;IAEI,GAAG;CAKZ"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { Args } from '@oclif/core';
|
|
2
|
-
import { outputRecordFromDefaultStore } from '../../lib/actor.js';
|
|
3
|
-
import { ApifyCommand } from '../../lib/apify_command.js';
|
|
4
|
-
export class GetValueCommand extends ApifyCommand {
|
|
5
|
-
async run() {
|
|
6
|
-
const { key } = this.args;
|
|
7
|
-
await outputRecordFromDefaultStore(key);
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
Object.defineProperty(GetValueCommand, "description", {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
configurable: true,
|
|
13
|
-
writable: true,
|
|
14
|
-
value: 'Gets a value from the default key-value store associated with the Actor run.'
|
|
15
|
-
});
|
|
16
|
-
Object.defineProperty(GetValueCommand, "args", {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
configurable: true,
|
|
19
|
-
writable: true,
|
|
20
|
-
value: {
|
|
21
|
-
key: Args.string({
|
|
22
|
-
required: true,
|
|
23
|
-
description: 'Key of the record in key-value store',
|
|
24
|
-
}),
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
//# sourceMappingURL=get-value.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-value.js","sourceRoot":"","sources":["../../../src/commands/actor/get-value.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAEnC,OAAO,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,MAAM,OAAO,eAAgB,SAAQ,YAAoC;IAUrE,KAAK,CAAC,GAAG;QACL,MAAM,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC;QAE1B,MAAM,4BAA4B,CAAC,GAAG,CAAC,CAAC;IAC5C,CAAC;;AAbe;;;;WAAc,8EAA8E;GAAC;AAE7F;;;;WAAO;QACnB,GAAG,EAAE,IAAI,CAAC,MAAM,CAAC;YACb,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,sCAAsC;SACtD,CAAC;KACL;GAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/actor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,qBAAa,iBAAkB,SAAQ,YAAY,CAAC,OAAO,iBAAiB,CAAC;IACzE,OAAgB,WAAW,SAA6H;IAClJ,GAAG;CAGZ"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ApifyCommand } from '../../lib/apify_command.js';
|
|
2
|
-
export class ActorIndexCommand extends ApifyCommand {
|
|
3
|
-
async run() {
|
|
4
|
-
await this.printHelp();
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
Object.defineProperty(ActorIndexCommand, "description", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
configurable: true,
|
|
10
|
-
writable: true,
|
|
11
|
-
value: 'Commands are designed to be used in Actor runs. All commands are in PoC state, do not use in production environments.\n'
|
|
12
|
-
});
|
|
13
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/actor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,MAAM,OAAO,iBAAkB,SAAQ,YAAsC;IAEzE,KAAK,CAAC,GAAG;QACL,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC;IAC3B,CAAC;;AAHe;;;;WAAc,yHAAyH;GAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ApifyCommand } from '../../lib/apify_command.js';
|
|
2
|
-
export declare class PushDataCommand extends ApifyCommand<typeof PushDataCommand> {
|
|
3
|
-
static description: string;
|
|
4
|
-
static args: {
|
|
5
|
-
item: import("@oclif/core/interfaces").Arg<string | undefined, Record<string, unknown>>;
|
|
6
|
-
};
|
|
7
|
-
private stdin?;
|
|
8
|
-
init(): Promise<void>;
|
|
9
|
-
run(): Promise<void>;
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=push-data.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"push-data.d.ts","sourceRoot":"","sources":["../../../src/commands/actor/push-data.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,qBAAa,eAAgB,SAAQ,YAAY,CAAC,OAAO,eAAe,CAAC;IACrE,OAAgB,WAAW,SAKyB;IAEpD,OAAgB,IAAI;;MAKlB;IAEF,OAAO,CAAC,KAAK,CAAC,CAAS;IAER,IAAI;IAMb,GAAG;CAgBZ"}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { Args } from '@oclif/core';
|
|
2
|
-
import { APIFY_STORAGE_TYPES, getApifyStorageClient, getDefaultStorageId } from '../../lib/actor.js';
|
|
3
|
-
import { ApifyCommand } from '../../lib/apify_command.js';
|
|
4
|
-
export class PushDataCommand extends ApifyCommand {
|
|
5
|
-
constructor() {
|
|
6
|
-
super(...arguments);
|
|
7
|
-
Object.defineProperty(this, "stdin", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
configurable: true,
|
|
10
|
-
writable: true,
|
|
11
|
-
value: void 0
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
async init() {
|
|
15
|
-
await super.init();
|
|
16
|
-
// Read data from stdin of the command
|
|
17
|
-
this.stdin = await this.readStdin(process.stdin);
|
|
18
|
-
}
|
|
19
|
-
async run() {
|
|
20
|
-
const { item } = this.args;
|
|
21
|
-
const apifyClient = await getApifyStorageClient();
|
|
22
|
-
const defaultStoreId = getDefaultStorageId(APIFY_STORAGE_TYPES.DATASET);
|
|
23
|
-
const data = item || this.stdin;
|
|
24
|
-
let parsedData;
|
|
25
|
-
try {
|
|
26
|
-
parsedData = JSON.parse(data);
|
|
27
|
-
}
|
|
28
|
-
catch (err) {
|
|
29
|
-
throw new Error(`Failed to parse data as JSON string: ${err.message}`);
|
|
30
|
-
}
|
|
31
|
-
await apifyClient.dataset(defaultStoreId).pushItems(parsedData);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
Object.defineProperty(PushDataCommand, "description", {
|
|
35
|
-
enumerable: true,
|
|
36
|
-
configurable: true,
|
|
37
|
-
writable: true,
|
|
38
|
-
value: 'Stores an object or an array of objects to the default dataset of the Actor run.\n'
|
|
39
|
-
+ 'It is possible to pass data using item argument or stdin.\n'
|
|
40
|
-
+ 'Passing data using argument:\n'
|
|
41
|
-
+ '$ apify actor push-data {"foo": "bar"}\n'
|
|
42
|
-
+ 'Passing data using stdin with pipe:\n'
|
|
43
|
-
+ '$ cat ./test.json | apify actor push-data\n'
|
|
44
|
-
});
|
|
45
|
-
Object.defineProperty(PushDataCommand, "args", {
|
|
46
|
-
enumerable: true,
|
|
47
|
-
configurable: true,
|
|
48
|
-
writable: true,
|
|
49
|
-
value: {
|
|
50
|
-
item: Args.string({
|
|
51
|
-
required: false,
|
|
52
|
-
description: 'JSON string with one object or array of objects containing data to be stored in the default dataset.',
|
|
53
|
-
}),
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
//# sourceMappingURL=push-data.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"push-data.js","sourceRoot":"","sources":["../../../src/commands/actor/push-data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAEnC,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACrG,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,MAAM,OAAO,eAAgB,SAAQ,YAAoC;IAAzE;;QAeY;;;;;WAAe;IAwB3B,CAAC;IAtBY,KAAK,CAAC,IAAI;QACf,MAAM,KAAK,CAAC,IAAI,EAAE,CAAC;QACnB,sCAAsC;QACtC,IAAI,CAAC,KAAK,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACrD,CAAC;IAED,KAAK,CAAC,GAAG;QACL,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC;QAE3B,MAAM,WAAW,GAAG,MAAM,qBAAqB,EAAE,CAAC;QAClD,MAAM,cAAc,GAAG,mBAAmB,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC;QACxE,MAAM,IAAI,GAAG,IAAI,IAAI,IAAI,CAAC,KAAK,CAAC;QAEhC,IAAI,UAA+D,CAAC;QACpE,IAAI,CAAC;YACD,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,IAAK,CAAC,CAAC;QACnC,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACX,MAAM,IAAI,KAAK,CAAC,wCAAyC,GAAa,CAAC,OAAO,EAAE,CAAC,CAAC;QACtF,CAAC;QAED,MAAM,WAAW,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IACpE,CAAC;;AArCe;;;;WAAc,oFAAoF;UAC5G,6DAA6D;UAC7D,gCAAgC;UAChC,0CAA0C;UAC1C,uCAAuC;UACvC,6CAA6C;EALxB,CAKyB;AAEpC;;;;WAAO;QACnB,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;YACd,QAAQ,EAAE,KAAK;YACf,WAAW,EAAE,sGAAsG;SACtH,CAAC;KACL;EALmB,CAKlB"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ApifyCommand } from '../../lib/apify_command.js';
|
|
2
|
-
export declare class SetValueCommand extends ApifyCommand<typeof SetValueCommand> {
|
|
3
|
-
static description: string;
|
|
4
|
-
static args: {
|
|
5
|
-
key: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
6
|
-
value: import("@oclif/core/interfaces").Arg<string | undefined, Record<string, unknown>>;
|
|
7
|
-
};
|
|
8
|
-
static flags: {
|
|
9
|
-
contentType: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
-
};
|
|
11
|
-
private stdin?;
|
|
12
|
-
init(): Promise<void>;
|
|
13
|
-
run(): Promise<void>;
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=set-value.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"set-value.d.ts","sourceRoot":"","sources":["../../../src/commands/actor/set-value.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,qBAAa,eAAgB,SAAQ,YAAY,CAAC,OAAO,eAAe,CAAC;IACrE,OAAgB,WAAW,SAK6D;IAExF,OAAgB,IAAI;;;MAYlB;IAEF,OAAgB,KAAK;;MAMnB;IAEF,OAAO,CAAC,KAAK,CAAC,CAAuB;IAEtB,IAAI;IAMb,GAAG;CAgBZ"}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { Args, Flags } from '@oclif/core';
|
|
2
|
-
import { APIFY_STORAGE_TYPES, getApifyStorageClient, getDefaultStorageId } from '../../lib/actor.js';
|
|
3
|
-
import { ApifyCommand } from '../../lib/apify_command.js';
|
|
4
|
-
export class SetValueCommand extends ApifyCommand {
|
|
5
|
-
constructor() {
|
|
6
|
-
super(...arguments);
|
|
7
|
-
Object.defineProperty(this, "stdin", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
configurable: true,
|
|
10
|
-
writable: true,
|
|
11
|
-
value: void 0
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
async init() {
|
|
15
|
-
await super.init();
|
|
16
|
-
// Read data from stdin of the command
|
|
17
|
-
this.stdin = process.stdin;
|
|
18
|
-
}
|
|
19
|
-
async run() {
|
|
20
|
-
const { stdin } = this;
|
|
21
|
-
const { key, value } = this.args;
|
|
22
|
-
const { contentType = 'application/json; charset=utf-8' } = this.flags;
|
|
23
|
-
// NOTE: If user pass value as argument and data on stdin same time. We use the value from argument.
|
|
24
|
-
const recordValue = value || stdin;
|
|
25
|
-
const apifyClient = await getApifyStorageClient();
|
|
26
|
-
const storeClient = apifyClient.keyValueStore(getDefaultStorageId(APIFY_STORAGE_TYPES.KEY_VALUE_STORE));
|
|
27
|
-
if (recordValue === undefined || recordValue === null || recordValue === '' || recordValue === 'null' || recordValue === 'undefined') {
|
|
28
|
-
await storeClient.deleteRecord(key);
|
|
29
|
-
}
|
|
30
|
-
else {
|
|
31
|
-
await storeClient.setRecord({ key, value: recordValue, contentType });
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
Object.defineProperty(SetValueCommand, "description", {
|
|
36
|
-
enumerable: true,
|
|
37
|
-
configurable: true,
|
|
38
|
-
writable: true,
|
|
39
|
-
value: 'Sets or removes record into the default KeyValueStore associated with the Actor run.\n'
|
|
40
|
-
+ 'It is possible to pass data using argument or stdin.\n'
|
|
41
|
-
+ 'Passing data using argument:\n'
|
|
42
|
-
+ '$ apify actor set-value KEY my-value\n'
|
|
43
|
-
+ 'Passing data using stdin with pipe:\n'
|
|
44
|
-
+ '$ cat ./my-text-file.txt | apify actor set-value KEY --contentType text/plain\n'
|
|
45
|
-
});
|
|
46
|
-
Object.defineProperty(SetValueCommand, "args", {
|
|
47
|
-
enumerable: true,
|
|
48
|
-
configurable: true,
|
|
49
|
-
writable: true,
|
|
50
|
-
value: {
|
|
51
|
-
key: Args.string({
|
|
52
|
-
required: true,
|
|
53
|
-
description: 'Key of the record in key-value store.',
|
|
54
|
-
}),
|
|
55
|
-
value: Args.string({
|
|
56
|
-
required: false,
|
|
57
|
-
description: 'Record data, which can be one of the following values:\n'
|
|
58
|
-
+ '- If empty, the record in the key-value store is deleted.\n'
|
|
59
|
-
+ '- If no `contentType` flag is specified, value is expected to be any JSON string value.\n'
|
|
60
|
-
+ '- If options.contentType is set, value is taken as is.',
|
|
61
|
-
}),
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
Object.defineProperty(SetValueCommand, "flags", {
|
|
65
|
-
enumerable: true,
|
|
66
|
-
configurable: true,
|
|
67
|
-
writable: true,
|
|
68
|
-
value: {
|
|
69
|
-
contentType: Flags.string({
|
|
70
|
-
char: 'c',
|
|
71
|
-
description: 'Specifies a custom MIME content type of the record. By default "application/json" is used.',
|
|
72
|
-
required: false,
|
|
73
|
-
}),
|
|
74
|
-
}
|
|
75
|
-
});
|
|
76
|
-
//# sourceMappingURL=set-value.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"set-value.js","sourceRoot":"","sources":["../../../src/commands/actor/set-value.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACrG,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,MAAM,OAAO,eAAgB,SAAQ,YAAoC;IAAzE;;QA8BY;;;;;WAA6B;IAwBzC,CAAC;IAtBY,KAAK,CAAC,IAAI;QACf,MAAM,KAAK,CAAC,IAAI,EAAE,CAAC;QACnB,sCAAsC;QACtC,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC;IAC/B,CAAC;IAED,KAAK,CAAC,GAAG;QACL,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;QACvB,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC;QACjC,MAAM,EAAE,WAAW,GAAG,iCAAiC,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QAEvE,oGAAoG;QACpG,MAAM,WAAW,GAAG,KAAK,IAAI,KAAK,CAAC;QACnC,MAAM,WAAW,GAAG,MAAM,qBAAqB,EAAE,CAAC;QAClD,MAAM,WAAW,GAAG,WAAW,CAAC,aAAa,CAAC,mBAAmB,CAAC,mBAAmB,CAAC,eAAe,CAAC,CAAC,CAAC;QAExG,IAAI,WAAW,KAAK,SAAS,IAAI,WAAW,KAAK,IAAI,IAAI,WAAW,KAAK,EAAE,IAAI,WAAW,KAAK,MAAM,IAAI,WAAW,KAAK,WAAW,EAAE,CAAC;YACnI,MAAM,WAAW,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;QACxC,CAAC;aAAM,CAAC;YACJ,MAAM,WAAW,CAAC,SAAS,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC,CAAC;QAC1E,CAAC;IACL,CAAC;;AApDe;;;;WAAc,wFAAwF;UAChH,wDAAwD;UACxD,gCAAgC;UAChC,wCAAwC;UACxC,uCAAuC;UACvC,iFAAiF;EAL5D,CAK6D;AAExE;;;;WAAO;QACnB,GAAG,EAAE,IAAI,CAAC,MAAM,CAAC;YACb,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,uCAAuC;SACvD,CAAC;QACF,KAAK,EAAE,IAAI,CAAC,MAAM,CAAC;YACf,QAAQ,EAAE,KAAK;YACf,WAAW,EAAE,0DAA0D;kBACrE,6DAA6D;kBAC7D,2FAA2F;kBAC3F,wDAAwD;SAC7D,CAAC;KACL;EAZmB,CAYlB;AAEc;;;;WAAQ;QACpB,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC;YACtB,IAAI,EAAE,GAAG;YACT,WAAW,EAAE,4FAA4F;YACzG,QAAQ,EAAE,KAAK;SAClB,CAAC;KACL;EANoB,CAMnB"}
|
package/dist/commands/call.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ApifyCommand } from '../lib/apify_command.js';
|
|
2
|
-
export declare class ActorCallCommand extends ApifyCommand<typeof ActorCallCommand> {
|
|
3
|
-
static description: string;
|
|
4
|
-
static flags: {
|
|
5
|
-
input: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
6
|
-
'input-file': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
7
|
-
build: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
|
-
timeout: import("@oclif/core/interfaces").OptionFlag<number | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
|
-
memory: import("@oclif/core/interfaces").OptionFlag<number | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
-
'wait-for-finish': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
|
-
};
|
|
12
|
-
static args: {
|
|
13
|
-
actorId: import("@oclif/core/interfaces").Arg<string | undefined, Record<string, unknown>>;
|
|
14
|
-
};
|
|
15
|
-
run(): Promise<void>;
|
|
16
|
-
private static resolveActorId;
|
|
17
|
-
private resolveInputOverride;
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=call.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"call.d.ts","sourceRoot":"","sources":["../../src/commands/call.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAMvD,qBAAa,gBAAiB,SAAQ,YAAY,CAAC,OAAO,gBAAgB,CAAC;IACvE,OAAgB,WAAW,SAE6D;IAExF,OAAgB,KAAK;;;;;;;MAiBnB;IAEF,OAAgB,IAAI;;MAMlB;IAEI,GAAG;mBAqDY,cAAc;YAkDrB,oBAAoB;CA6DrC"}
|