apify-cli 0.20.3 → 0.20.4-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 +77 -83
- package/README.md +48 -40
- package/dist/.tsbuildinfo +1 -1
- package/dist/commands/run.d.ts.map +1 -1
- package/dist/commands/run.js +12 -2
- package/dist/commands/run.js.map +1 -1
- package/dist/lib/commands/resolve-input.d.ts.map +1 -1
- package/dist/lib/commands/resolve-input.js +56 -7
- package/dist/lib/commands/resolve-input.js.map +1 -1
- package/dist/typechecking.tsbuildinfo +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +12 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
**Changelog file is no longer maintained, you can check all changes in [GitHub Releases](https://github.com/apify/apify-cli/releases).**
|
|
2
2
|
|
|
3
|
-
0.6.1 / 2020-05-18
|
|
4
|
-
|
|
3
|
+
# 0.6.1 / 2020-05-18
|
|
4
|
+
|
|
5
5
|
- **BREAKING:** Templates are now fully decoupled from this project and
|
|
6
6
|
the [templates repository](https://github.com/apify/actor-templates)
|
|
7
7
|
serves as the single source of truth. Some templates were replaced
|
|
@@ -11,190 +11,184 @@
|
|
|
11
11
|
This is to support regular changes to templates without breaking older
|
|
12
12
|
versions of the CLI.
|
|
13
13
|
|
|
14
|
-
0.5.3 / 2020-03-03
|
|
15
|
-
|
|
14
|
+
# 0.5.3 / 2020-03-03
|
|
15
|
+
|
|
16
16
|
- Moved templates to separate repository
|
|
17
17
|
- Fixed: creating `apify_storage` in root folder after `apify create` command
|
|
18
18
|
|
|
19
|
-
0.5.2 / 2020-01-22
|
|
20
|
-
|
|
19
|
+
# 0.5.2 / 2020-01-22
|
|
20
|
+
|
|
21
21
|
- Added bot(dependabot.com) to check latest Apify SDK version in all templates
|
|
22
22
|
- Updated apify package in all templates
|
|
23
23
|
- Updated npm packages and fixed all npm audit issues
|
|
24
24
|
|
|
25
|
-
0.5.1 / 2019-12-19
|
|
26
|
-
|
|
25
|
+
# 0.5.1 / 2019-12-19
|
|
26
|
+
|
|
27
27
|
- Added warning about outdated node.js version
|
|
28
28
|
- Fixed infinite push, when the previous one was interrupted
|
|
29
29
|
- Fixed calling public actors with `apify call`
|
|
30
30
|
- `apify init` create empty INPUT.json file
|
|
31
31
|
|
|
32
|
-
0.5.0 / 2019-11-27
|
|
33
|
-
|
|
32
|
+
# 0.5.0 / 2019-11-27
|
|
33
|
+
|
|
34
34
|
- Drop support for node 8 and 9
|
|
35
35
|
- Fix: Pass the --max-http-header-size=80000 to the nodeJs process
|
|
36
36
|
|
|
37
|
-
0.4.1 / 2019-10-02
|
|
38
|
-
|
|
37
|
+
# 0.4.1 / 2019-10-02
|
|
38
|
+
|
|
39
39
|
- New actor template for Apify projects, you can create it with `apify create --template apify_project`
|
|
40
40
|
- `apify vis` - Using improved schema validator
|
|
41
41
|
|
|
42
|
-
0.4.0 / 2019-09-23
|
|
43
|
-
|
|
42
|
+
# 0.4.0 / 2019-09-23
|
|
43
|
+
|
|
44
44
|
- Breaking Change - `apify push`: Pushes source code as a "Multiple source files" in case source code is less that 3 MB
|
|
45
45
|
|
|
46
|
-
0.3.12 / 2019-09-18
|
|
47
|
-
|
|
48
|
-
Bug fixes:
|
|
46
|
+
# 0.3.12 / 2019-09-18
|
|
47
|
+
|
|
48
|
+
Bug fixes:
|
|
49
|
+
|
|
49
50
|
- `apify create`: Added validation for actor name
|
|
50
51
|
- `apify init` skips creation of apify.json if already exists
|
|
51
52
|
- `apify run -p` runs actor, if apify_storage doesn't exist
|
|
52
53
|
- Updated packages
|
|
53
54
|
- Additional minor fixes
|
|
54
55
|
|
|
55
|
-
0.3.11 / 2019-07-26
|
|
56
|
-
|
|
56
|
+
# 0.3.11 / 2019-07-26
|
|
57
|
+
|
|
57
58
|
- Updated packages
|
|
58
59
|
- Updated Cheerio Crawler template
|
|
59
60
|
- Updated Apify package version in all templates
|
|
60
61
|
|
|
61
|
-
0.3.10 / 2019-06-03
|
|
62
|
-
|
|
62
|
+
# 0.3.10 / 2019-06-03
|
|
63
|
+
|
|
63
64
|
- Updated packages
|
|
64
65
|
|
|
65
|
-
0.3.9 / 2019-05-15
|
|
66
|
-
|
|
66
|
+
# 0.3.9 / 2019-05-15
|
|
67
|
+
|
|
67
68
|
- Improved the templates and texts
|
|
68
69
|
|
|
69
|
-
0.3.8 / 2019-03-29
|
|
70
|
-
|
|
70
|
+
# 0.3.8 / 2019-03-29
|
|
71
|
+
|
|
71
72
|
- Updated all templates regarding the last version of apify SDK.
|
|
72
73
|
|
|
73
|
-
0.3.7 / 2019-03-18
|
|
74
|
-
|
|
74
|
+
# 0.3.7 / 2019-03-18
|
|
75
|
+
|
|
75
76
|
- Fixed templates to use Apify.getInput(), replaced deprecated function and options,
|
|
76
|
-
added debug fields, added .idea to .gitignore
|
|
77
|
+
added debug fields, added .idea to .gitignore
|
|
77
78
|
- Updated packages
|
|
78
79
|
- Fixed bug: Users without username can use push/call command
|
|
79
80
|
|
|
80
|
-
0.3.6 / 2019-01-29
|
|
81
|
-
|
|
81
|
+
# 0.3.6 / 2019-01-29
|
|
82
|
+
|
|
82
83
|
- Added command `apify vis` that validates actor input schema.
|
|
83
84
|
|
|
84
|
-
0.3.5 / 2019-01-25
|
|
85
|
-
|
|
85
|
+
# 0.3.5 / 2019-01-25
|
|
86
|
+
|
|
86
87
|
- Upgraded to apify@0.11 in templates
|
|
87
88
|
|
|
88
|
-
0.3.3 / 2018-12-12
|
|
89
|
-
|
|
89
|
+
# 0.3.3 / 2018-12-12
|
|
90
|
+
|
|
90
91
|
- Omitted CMD command in all templates Dockerfile.
|
|
91
92
|
|
|
92
|
-
0.3.2 / 2018-12-05
|
|
93
|
-
|
|
93
|
+
# 0.3.2 / 2018-12-05
|
|
94
|
+
|
|
94
95
|
- Updated apify-client package. It fixed bug, when user can not push actor, whe he changed version in apify.json.
|
|
95
96
|
|
|
96
|
-
0.3.1 / 2018-11-29
|
|
97
|
-
|
|
97
|
+
# 0.3.1 / 2018-11-29
|
|
98
|
+
|
|
98
99
|
- :tada: New commands to manage secret environment variables: `apify secrets:add`, `apify secrets:rm`.
|
|
99
100
|
- New documentation how to set environment variable in `apify.json`, see [documentation](https://github.com/apify/apify-cli/blob/master/README.md#environment-variables).
|
|
100
101
|
- **BREAKING CHANGES**: Simplified `apify.json` structure. It will be updated automatically before execution apify run and push command.
|
|
101
102
|
- Command `apify create` now shows progress bar of npm install.
|
|
102
103
|
- Small bugs fixes
|
|
103
104
|
|
|
104
|
-
0.2.7 / 2018-11-27
|
|
105
|
-
|
|
105
|
+
# 0.2.7 / 2018-11-27
|
|
106
|
+
|
|
106
107
|
- Updated all templates to latest apify packages
|
|
107
108
|
|
|
108
|
-
0.2.6 / 2018-11-09
|
|
109
|
-
|
|
109
|
+
# 0.2.6 / 2018-11-09
|
|
110
|
+
|
|
110
111
|
- Added warning if `apify run` reuse old state in storage
|
|
111
112
|
- Fixed issues #70 #65 #68
|
|
112
113
|
|
|
113
|
-
0.2.5 / 2018-10-31
|
|
114
|
-
|
|
114
|
+
# 0.2.5 / 2018-10-31
|
|
115
|
+
|
|
115
116
|
- Updated NPM dependencies
|
|
116
117
|
- Upgraded to apify-shared@0.1.6
|
|
117
118
|
- Fixed templates to use apify/actor-node-chrome Docker image instead of outdated apify/actor-node-puppeteer
|
|
118
119
|
|
|
119
|
-
0.2.3 / 2018-09-17
|
|
120
|
-
|
|
121
|
-
- Updated all templates to apify version 0.8
|
|
120
|
+
# 0.2.3 / 2018-09-17
|
|
121
|
+
|
|
122
|
+
- Updated all templates to apify version 0.8.\*
|
|
122
123
|
- Added template named hello_word
|
|
123
124
|
|
|
124
|
-
0.2.1 / 2018-09-17
|
|
125
|
-
|
|
125
|
+
# 0.2.1 / 2018-09-17
|
|
126
|
+
|
|
126
127
|
- **BREAKING CHANGES**: The local storage directories have been renamed and package.json files needs a new `start` command.
|
|
127
|
-
See [migration guide](/MIGRATIONS.md) for existing projects if you are upgrading from 0.1
|
|
128
|
+
See [migration guide](/MIGRATIONS.md) for existing projects if you are upgrading from 0.1._ to 0.2._.
|
|
128
129
|
- You can specified another file that main.js for `apify run` command using npm start script.
|
|
129
130
|
|
|
130
|
-
0.2.0 / 2018-09-12
|
|
131
|
-
|
|
131
|
+
# 0.2.0 / 2018-09-12
|
|
132
|
+
|
|
132
133
|
- **BREAKING CHANGES**: Version 0.2.0 of Apify CLI supports only version 0.7.0 of API SDK or newer as management of environment variables
|
|
133
134
|
has been changed according to Apify SDK version 0.7.0.
|
|
134
135
|
- Dropped support for Node 7
|
|
135
136
|
|
|
136
|
-
0.1.18 / 2018-09-12
|
|
137
|
-
|
|
137
|
+
# 0.1.18 / 2018-09-12
|
|
138
|
+
|
|
138
139
|
- Updated NPM dependencies, npm-shrinkwrap.json replaced with package-lock.json
|
|
139
140
|
- Updated NPM dependencies in code templates
|
|
140
141
|
|
|
141
|
-
0.1.15 / 2018-07-23
|
|
142
|
-
|
|
142
|
+
# 0.1.15 / 2018-07-23
|
|
143
|
+
|
|
143
144
|
- Rename act to actor
|
|
144
145
|
|
|
145
|
-
0.1.13 / 2018-07-12
|
|
146
|
-
|
|
146
|
+
# 0.1.13 / 2018-07-12
|
|
147
|
+
|
|
147
148
|
- Add environment variables for enable live view for local actors.
|
|
148
149
|
|
|
149
|
-
0.1.12 / 2018-06-28
|
|
150
|
-
|
|
150
|
+
# 0.1.12 / 2018-06-28
|
|
151
|
+
|
|
151
152
|
- From now `apify call` and `apify push` commands stream live logs from run and build to your terminal
|
|
152
153
|
- Add options -p, --purge, --purge-dataset, --purge-key-value-store, --purge-queue in `apify run` to clean stores before runs actor locally
|
|
153
154
|
- Add option -w, --wait-for-finish=wait-for-finish in `apify push` and `apify call` - command waits x seconds to finish run or build on Apify
|
|
154
155
|
- Fixes #26, #33, #34, #36, #38, #39, #37, #35
|
|
155
156
|
|
|
156
|
-
0.1.11 / 2018-05-30
|
|
157
|
-
|
|
157
|
+
# 0.1.11 / 2018-05-30
|
|
158
|
+
|
|
158
159
|
- Use npm-shrinkwrap.json instead of package-lock.json for published module
|
|
159
160
|
- Update template, where we using proxy
|
|
160
161
|
- Fix #30
|
|
161
162
|
|
|
162
|
-
0.1.9 / 2018-04-18
|
|
163
|
-
|
|
163
|
+
# 0.1.9 / 2018-04-18
|
|
164
|
+
|
|
164
165
|
- apify run takes APIFY_USER_ID and APIFY_TOKEN as environments variables, if client is logged locally
|
|
165
166
|
- apify call takes input from default local key-value-store
|
|
166
167
|
- Fix: duplicates new lines in log
|
|
167
168
|
|
|
168
|
-
0.1.8 / 2018-04-17
|
|
169
|
-
|
|
169
|
+
# 0.1.8 / 2018-04-17
|
|
170
|
+
|
|
170
171
|
- Print warning if you have old version of cli
|
|
171
172
|
- apify run - kills all sub processes for SIGINT signal (ctrl+c) - It kills all related browsers in apify run command, related issue:
|
|
172
173
|
https://github.com/apify/apify-js/issues/72
|
|
173
174
|
|
|
174
|
-
0.1.7 / 2018-04-12
|
|
175
|
-
|
|
175
|
+
# 0.1.7 / 2018-04-12
|
|
176
|
+
|
|
176
177
|
- Readme and templates updates
|
|
177
178
|
|
|
178
|
-
0.1.6 / 2018-04-11
|
|
179
|
-
|
|
179
|
+
# 0.1.6 / 2018-04-11
|
|
180
|
+
|
|
180
181
|
- Add support for request queue
|
|
181
182
|
|
|
182
|
-
0.1.5 / 2018-04-09
|
|
183
|
-
|
|
183
|
+
# 0.1.5 / 2018-04-09
|
|
184
|
+
|
|
184
185
|
- Works for windows
|
|
185
186
|
- New command apify info
|
|
186
187
|
|
|
187
|
-
0.1.x / 2018-04-01
|
|
188
|
-
==================
|
|
189
|
-
- The first public release
|
|
190
|
-
|
|
191
|
-
0.0.x / 2018-03-01
|
|
192
|
-
==================
|
|
193
|
-
- Initial development, lot of new stuff
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
188
|
+
# 0.1.x / 2018-04-01
|
|
198
189
|
|
|
190
|
+
- The first public release
|
|
199
191
|
|
|
192
|
+
# 0.0.x / 2018-03-01
|
|
200
193
|
|
|
194
|
+
- Initial development, lot of new stuff
|
package/README.md
CHANGED
|
@@ -19,7 +19,6 @@ Note that Actors running on the Apify platform are executed in Docker containers
|
|
|
19
19
|
you can build your Actors in any programming language.
|
|
20
20
|
However, we recommend using JavaScript / Node.js, for which we provide most libraries and support.
|
|
21
21
|
|
|
22
|
-
|
|
23
22
|
## Installation
|
|
24
23
|
|
|
25
24
|
### Via Homebrew
|
|
@@ -66,6 +65,7 @@ apify --version
|
|
|
66
65
|
```
|
|
67
66
|
|
|
68
67
|
which should print something like:
|
|
68
|
+
|
|
69
69
|
```
|
|
70
70
|
apify-cli/0.10.0 darwin-x64 node-v16.14.2
|
|
71
71
|
```
|
|
@@ -94,10 +94,12 @@ for the Actor and a few configuration files.
|
|
|
94
94
|
cd ./my/awesome/project
|
|
95
95
|
apify init
|
|
96
96
|
```
|
|
97
|
+
|
|
97
98
|
This command will only set up local Actor development environment in an existing directory,
|
|
98
99
|
i.e. it will create the `.actor/actor.json` file and `apify_storage` directory.
|
|
99
100
|
|
|
100
101
|
Before you can run your project locally using `apify run`, you have to set up the right start command in `package.json` under scripts.start. For example:
|
|
102
|
+
|
|
101
103
|
```text
|
|
102
104
|
{
|
|
103
105
|
...
|
|
@@ -107,6 +109,7 @@ Before you can run your project locally using `apify run`, you have to set up th
|
|
|
107
109
|
...
|
|
108
110
|
}
|
|
109
111
|
```
|
|
112
|
+
|
|
110
113
|
You can find more information about by running `apify help run`.
|
|
111
114
|
|
|
112
115
|
### Create a new Actor from Scrapy project
|
|
@@ -134,7 +137,6 @@ and log in to it using the above command. You will be prompted for
|
|
|
134
137
|
your [Apify API token](https://console.apify.com/settings/integrations).
|
|
135
138
|
Note that the command will store the API token and other sensitive information to `~/.apify`.
|
|
136
139
|
|
|
137
|
-
|
|
138
140
|
### Push the Actor to the Apify cloud
|
|
139
141
|
|
|
140
142
|
```bash
|
|
@@ -165,7 +167,6 @@ Make sure you commit this file to the Git repository.
|
|
|
165
167
|
|
|
166
168
|
For example, `.actor/actor.json` file can look as follows:
|
|
167
169
|
|
|
168
|
-
|
|
169
170
|
```json
|
|
170
171
|
{
|
|
171
172
|
"actorSpecification": 1,
|
|
@@ -173,8 +174,8 @@ For example, `.actor/actor.json` file can look as follows:
|
|
|
173
174
|
"version": "0.0",
|
|
174
175
|
"buildTag": "latest",
|
|
175
176
|
"environmentVariables": {
|
|
176
|
-
|
|
177
|
-
|
|
177
|
+
"MYSQL_USER": "my_username",
|
|
178
|
+
"MYSQL_PASSWORD": "@mySecretPassword"
|
|
178
179
|
},
|
|
179
180
|
"dockerfile": "./Dockerfile",
|
|
180
181
|
"readme": "./ACTOR.md",
|
|
@@ -198,48 +199,54 @@ You can embed your [input schema](https://docs.apify.com/actors/development/inpu
|
|
|
198
199
|
You can define the schema of the items in your dataset under the `storages.dataset` field. This can be either an embedded object or a path to a JSON schema file. You can read more about the schema of your Actor output [here](https://docs.apify.com/actors/development/output-schema#specification-version-1).
|
|
199
200
|
|
|
200
201
|
**Note on migration from deprecated config "apify.json"**\
|
|
201
|
-
|
|
202
|
+
_Note that previously, Actor config was stored in the `apify.json` file that has been deprecated. You can find the (very slight) differences and migration info in [migration guidelines](https://github.com/apify/apify-cli/blob/master/MIGRATIONS.md)._
|
|
202
203
|
|
|
203
204
|
## Environment variables
|
|
204
205
|
|
|
205
206
|
There are two options how you can set up environment variables for Actors.
|
|
206
207
|
|
|
207
208
|
### Set up environment variables in .actor/actor.json
|
|
209
|
+
|
|
208
210
|
All keys from `env` will be set as environment variables into Apify platform after you push Actor to Apify. Current values on Apify will be overridden.
|
|
211
|
+
|
|
209
212
|
```json
|
|
210
213
|
{
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
214
|
+
"actorSpecification": 1,
|
|
215
|
+
"name": "dataset-to-mysql",
|
|
216
|
+
"version": "0.1",
|
|
217
|
+
"buildTag": "latest",
|
|
218
|
+
"environmentVariables": {
|
|
219
|
+
"MYSQL_USER": "my_username",
|
|
220
|
+
"MYSQL_PASSWORD": "@mySecretPassword"
|
|
221
|
+
}
|
|
219
222
|
}
|
|
220
223
|
```
|
|
221
224
|
|
|
222
225
|
### Set up environment variables in Apify Console
|
|
226
|
+
|
|
223
227
|
In [Apify Console](https://console.apify.com/actors) select your Actor, you can set up variables into Source tab.
|
|
224
228
|
After setting up variables in the app, remove the `environmentVariables` from `.actor/actor.json`. Otherwise, variables from `.actor/actor.json` will override variables in the app.
|
|
229
|
+
|
|
225
230
|
```json
|
|
226
231
|
{
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
232
|
+
"actorSpecification": 1,
|
|
233
|
+
"name": "dataset-to-mysql",
|
|
234
|
+
"version": "0.1",
|
|
235
|
+
"buildTag": "latest"
|
|
231
236
|
}
|
|
232
237
|
```
|
|
233
238
|
|
|
234
|
-
|
|
235
239
|
#### How to set secret environment variables in .actor/actor.json
|
|
236
240
|
|
|
237
241
|
CLI provides commands to manage secrets environment variables. Secrets are stored to the `~/.apify` directory.
|
|
238
242
|
You can add a new secret using the command:
|
|
243
|
+
|
|
239
244
|
```bash
|
|
240
245
|
apify secrets:add mySecretPassword pwd1234
|
|
241
246
|
```
|
|
247
|
+
|
|
242
248
|
After adding a new secret you can use the secret in `.actor/actor.json`.
|
|
249
|
+
|
|
243
250
|
```text
|
|
244
251
|
{
|
|
245
252
|
"actorSpecification": 1,
|
|
@@ -269,11 +276,11 @@ apify help COMMAND
|
|
|
269
276
|
Still haven't found what you were looking for? Please go to [Apify Help center](https://www.apify.com/help)
|
|
270
277
|
or [contact us](https://www.apify.com/contact).
|
|
271
278
|
|
|
272
|
-
|
|
273
279
|
## Command reference
|
|
274
280
|
|
|
275
281
|
This section contains printouts of `apify help` for all commands.
|
|
276
282
|
|
|
283
|
+
<!-- prettier-ignore-start -->
|
|
277
284
|
<!-- commands -->
|
|
278
285
|
* [`apify actor`](#apify-actor)
|
|
279
286
|
* [`apify actor get-input`](#apify-actor-get-input)
|
|
@@ -309,7 +316,7 @@ DESCRIPTION
|
|
|
309
316
|
Commands are designed to be used in Actor runs. All commands are in PoC state, do not use in production environments.
|
|
310
317
|
```
|
|
311
318
|
|
|
312
|
-
_See code: [src/commands/actor/index.ts](https://github.com/apify/apify-cli/blob/v0.20.
|
|
319
|
+
_See code: [src/commands/actor/index.ts](https://github.com/apify/apify-cli/blob/v0.20.4-beta.0/src/commands/actor/index.ts)_
|
|
313
320
|
|
|
314
321
|
## `apify actor get-input`
|
|
315
322
|
|
|
@@ -323,7 +330,7 @@ DESCRIPTION
|
|
|
323
330
|
Gets the Actor input value from the default key-value store associated with the Actor run.
|
|
324
331
|
```
|
|
325
332
|
|
|
326
|
-
_See code: [src/commands/actor/get-input.ts](https://github.com/apify/apify-cli/blob/v0.20.
|
|
333
|
+
_See code: [src/commands/actor/get-input.ts](https://github.com/apify/apify-cli/blob/v0.20.4-beta.0/src/commands/actor/get-input.ts)_
|
|
327
334
|
|
|
328
335
|
## `apify actor get-value KEY`
|
|
329
336
|
|
|
@@ -340,7 +347,7 @@ DESCRIPTION
|
|
|
340
347
|
Gets a value from the default key-value store associated with the Actor run.
|
|
341
348
|
```
|
|
342
349
|
|
|
343
|
-
_See code: [src/commands/actor/get-value.ts](https://github.com/apify/apify-cli/blob/v0.20.
|
|
350
|
+
_See code: [src/commands/actor/get-value.ts](https://github.com/apify/apify-cli/blob/v0.20.4-beta.0/src/commands/actor/get-value.ts)_
|
|
344
351
|
|
|
345
352
|
## `apify actor push-data [ITEM]`
|
|
346
353
|
|
|
@@ -362,7 +369,7 @@ DESCRIPTION
|
|
|
362
369
|
$ cat ./test.json | apify actor push-data
|
|
363
370
|
```
|
|
364
371
|
|
|
365
|
-
_See code: [src/commands/actor/push-data.ts](https://github.com/apify/apify-cli/blob/v0.20.
|
|
372
|
+
_See code: [src/commands/actor/push-data.ts](https://github.com/apify/apify-cli/blob/v0.20.4-beta.0/src/commands/actor/push-data.ts)_
|
|
366
373
|
|
|
367
374
|
## `apify actor set-value KEY [VALUE]`
|
|
368
375
|
|
|
@@ -391,7 +398,7 @@ DESCRIPTION
|
|
|
391
398
|
$ cat ./my-text-file.txt | apify actor set-value KEY --contentType text/plain
|
|
392
399
|
```
|
|
393
400
|
|
|
394
|
-
_See code: [src/commands/actor/set-value.ts](https://github.com/apify/apify-cli/blob/v0.20.
|
|
401
|
+
_See code: [src/commands/actor/set-value.ts](https://github.com/apify/apify-cli/blob/v0.20.4-beta.0/src/commands/actor/set-value.ts)_
|
|
395
402
|
|
|
396
403
|
## `apify call [ACTORID]`
|
|
397
404
|
|
|
@@ -421,7 +428,7 @@ DESCRIPTION
|
|
|
421
428
|
takes input for the Actor from the default local key-value store by default.
|
|
422
429
|
```
|
|
423
430
|
|
|
424
|
-
_See code: [src/commands/call.ts](https://github.com/apify/apify-cli/blob/v0.20.
|
|
431
|
+
_See code: [src/commands/call.ts](https://github.com/apify/apify-cli/blob/v0.20.4-beta.0/src/commands/call.ts)_
|
|
425
432
|
|
|
426
433
|
## `apify create [ACTORNAME]`
|
|
427
434
|
|
|
@@ -446,7 +453,7 @@ DESCRIPTION
|
|
|
446
453
|
Creates a new Actor project directory from a selected boilerplate template.
|
|
447
454
|
```
|
|
448
455
|
|
|
449
|
-
_See code: [src/commands/create.ts](https://github.com/apify/apify-cli/blob/v0.20.
|
|
456
|
+
_See code: [src/commands/create.ts](https://github.com/apify/apify-cli/blob/v0.20.4-beta.0/src/commands/create.ts)_
|
|
450
457
|
|
|
451
458
|
## `apify help [COMMAND]`
|
|
452
459
|
|
|
@@ -481,7 +488,7 @@ DESCRIPTION
|
|
|
481
488
|
The information is printed to the console.
|
|
482
489
|
```
|
|
483
490
|
|
|
484
|
-
_See code: [src/commands/info.ts](https://github.com/apify/apify-cli/blob/v0.20.
|
|
491
|
+
_See code: [src/commands/info.ts](https://github.com/apify/apify-cli/blob/v0.20.4-beta.0/src/commands/info.ts)_
|
|
485
492
|
|
|
486
493
|
## `apify init [ACTORNAME]`
|
|
487
494
|
|
|
@@ -509,7 +516,7 @@ DESCRIPTION
|
|
|
509
516
|
WARNING: The directory at "storage" will be overwritten if it already exists.
|
|
510
517
|
```
|
|
511
518
|
|
|
512
|
-
_See code: [src/commands/init.ts](https://github.com/apify/apify-cli/blob/v0.20.
|
|
519
|
+
_See code: [src/commands/init.ts](https://github.com/apify/apify-cli/blob/v0.20.4-beta.0/src/commands/init.ts)_
|
|
513
520
|
|
|
514
521
|
## `apify login`
|
|
515
522
|
|
|
@@ -530,7 +537,7 @@ DESCRIPTION
|
|
|
530
537
|
"apify" commands. To log out, call "apify logout".
|
|
531
538
|
```
|
|
532
539
|
|
|
533
|
-
_See code: [src/commands/login.ts](https://github.com/apify/apify-cli/blob/v0.20.
|
|
540
|
+
_See code: [src/commands/login.ts](https://github.com/apify/apify-cli/blob/v0.20.4-beta.0/src/commands/login.ts)_
|
|
534
541
|
|
|
535
542
|
## `apify logout`
|
|
536
543
|
|
|
@@ -546,7 +553,7 @@ DESCRIPTION
|
|
|
546
553
|
call "apify login".
|
|
547
554
|
```
|
|
548
555
|
|
|
549
|
-
_See code: [src/commands/logout.ts](https://github.com/apify/apify-cli/blob/v0.20.
|
|
556
|
+
_See code: [src/commands/logout.ts](https://github.com/apify/apify-cli/blob/v0.20.4-beta.0/src/commands/logout.ts)_
|
|
550
557
|
|
|
551
558
|
## `apify pull [ACTORID]`
|
|
552
559
|
|
|
@@ -568,7 +575,7 @@ DESCRIPTION
|
|
|
568
575
|
cloned. If it is defined as Web IDE, it will fetch the files.
|
|
569
576
|
```
|
|
570
577
|
|
|
571
|
-
_See code: [src/commands/pull.ts](https://github.com/apify/apify-cli/blob/v0.20.
|
|
578
|
+
_See code: [src/commands/pull.ts](https://github.com/apify/apify-cli/blob/v0.20.4-beta.0/src/commands/pull.ts)_
|
|
572
579
|
|
|
573
580
|
## `apify push [ACTORID]`
|
|
574
581
|
|
|
@@ -606,7 +613,7 @@ DESCRIPTION
|
|
|
606
613
|
overwritten with --force flag.
|
|
607
614
|
```
|
|
608
615
|
|
|
609
|
-
_See code: [src/commands/push.ts](https://github.com/apify/apify-cli/blob/v0.20.
|
|
616
|
+
_See code: [src/commands/push.ts](https://github.com/apify/apify-cli/blob/v0.20.4-beta.0/src/commands/push.ts)_
|
|
610
617
|
|
|
611
618
|
## `apify run`
|
|
612
619
|
|
|
@@ -642,7 +649,7 @@ DESCRIPTION
|
|
|
642
649
|
package.json file. You can set up your own main file or environment variables by changing it.
|
|
643
650
|
```
|
|
644
651
|
|
|
645
|
-
_See code: [src/commands/run.ts](https://github.com/apify/apify-cli/blob/v0.20.
|
|
652
|
+
_See code: [src/commands/run.ts](https://github.com/apify/apify-cli/blob/v0.20.4-beta.0/src/commands/run.ts)_
|
|
646
653
|
|
|
647
654
|
## `apify secrets`
|
|
648
655
|
|
|
@@ -672,7 +679,7 @@ DESCRIPTION
|
|
|
672
679
|
of the Actor.
|
|
673
680
|
```
|
|
674
681
|
|
|
675
|
-
_See code: [src/commands/secrets/index.ts](https://github.com/apify/apify-cli/blob/v0.20.
|
|
682
|
+
_See code: [src/commands/secrets/index.ts](https://github.com/apify/apify-cli/blob/v0.20.4-beta.0/src/commands/secrets/index.ts)_
|
|
676
683
|
|
|
677
684
|
## `apify secrets add NAME VALUE`
|
|
678
685
|
|
|
@@ -691,7 +698,7 @@ DESCRIPTION
|
|
|
691
698
|
The secrets are stored to a file at ~/.apify
|
|
692
699
|
```
|
|
693
700
|
|
|
694
|
-
_See code: [src/commands/secrets/add.ts](https://github.com/apify/apify-cli/blob/v0.20.
|
|
701
|
+
_See code: [src/commands/secrets/add.ts](https://github.com/apify/apify-cli/blob/v0.20.4-beta.0/src/commands/secrets/add.ts)_
|
|
695
702
|
|
|
696
703
|
## `apify secrets rm NAME`
|
|
697
704
|
|
|
@@ -708,7 +715,7 @@ DESCRIPTION
|
|
|
708
715
|
Removes the secret.
|
|
709
716
|
```
|
|
710
717
|
|
|
711
|
-
_See code: [src/commands/secrets/rm.ts](https://github.com/apify/apify-cli/blob/v0.20.
|
|
718
|
+
_See code: [src/commands/secrets/rm.ts](https://github.com/apify/apify-cli/blob/v0.20.4-beta.0/src/commands/secrets/rm.ts)_
|
|
712
719
|
|
|
713
720
|
## `apify task`
|
|
714
721
|
|
|
@@ -722,7 +729,7 @@ DESCRIPTION
|
|
|
722
729
|
Commands are designed to be used to interact with Tasks.
|
|
723
730
|
```
|
|
724
731
|
|
|
725
|
-
_See code: [src/commands/task/index.ts](https://github.com/apify/apify-cli/blob/v0.20.
|
|
732
|
+
_See code: [src/commands/task/index.ts](https://github.com/apify/apify-cli/blob/v0.20.4-beta.0/src/commands/task/index.ts)_
|
|
726
733
|
|
|
727
734
|
## `apify task run TASKID`
|
|
728
735
|
|
|
@@ -747,7 +754,7 @@ DESCRIPTION
|
|
|
747
754
|
takes input for the Actor from the default local key-value store by default.
|
|
748
755
|
```
|
|
749
756
|
|
|
750
|
-
_See code: [src/commands/task/run.ts](https://github.com/apify/apify-cli/blob/v0.20.
|
|
757
|
+
_See code: [src/commands/task/run.ts](https://github.com/apify/apify-cli/blob/v0.20.4-beta.0/src/commands/task/run.ts)_
|
|
751
758
|
|
|
752
759
|
## `apify validate-schema [PATH]`
|
|
753
760
|
|
|
@@ -772,5 +779,6 @@ DESCRIPTION
|
|
|
772
779
|
You can also pass any custom path to your input schema to have it validated instead.
|
|
773
780
|
```
|
|
774
781
|
|
|
775
|
-
_See code: [src/commands/validate-schema.ts](https://github.com/apify/apify-cli/blob/v0.20.
|
|
782
|
+
_See code: [src/commands/validate-schema.ts](https://github.com/apify/apify-cli/blob/v0.20.4-beta.0/src/commands/validate-schema.ts)_
|
|
776
783
|
<!-- commandsstop -->
|
|
784
|
+
<!-- prettier-ignore-end -->
|