apify-cli 1.0.0-beta.3 → 1.0.0-beta.31
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 +200 -0
- package/README.md +55 -49
- package/bin/dev.js +7 -2
- package/bin/dev.sh +4 -0
- package/bin/run.js +7 -0
- package/dist/.tsbuildinfo +1 -1
- package/dist/commands/call.d.ts.map +1 -1
- package/dist/commands/call.js +6 -1
- package/dist/commands/call.js.map +1 -1
- package/dist/commands/create.d.ts +1 -0
- package/dist/commands/create.d.ts.map +1 -1
- package/dist/commands/create.js +10 -1
- package/dist/commands/create.js.map +1 -1
- package/dist/commands/login.d.ts +1 -0
- package/dist/commands/login.d.ts.map +1 -1
- package/dist/commands/login.js +143 -12
- package/dist/commands/login.js.map +1 -1
- package/dist/commands/push.d.ts +2 -0
- package/dist/commands/push.d.ts.map +1 -1
- package/dist/commands/push.js +33 -3
- package/dist/commands/push.js.map +1 -1
- package/dist/commands/secrets/index.js +1 -1
- package/dist/lib/consts.d.ts +7 -0
- package/dist/lib/consts.d.ts.map +1 -1
- package/dist/lib/consts.js +9 -0
- package/dist/lib/consts.js.map +1 -1
- package/dist/lib/exec.js +1 -1
- package/dist/lib/exec.js.map +1 -1
- package/dist/lib/secrets.js +3 -3
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/lib/utils.js +8 -0
- package/dist/lib/utils.js.map +1 -1
- package/oclif.manifest.json +31 -31
- package/package.json +145 -141
- package/dist/commands/login-new.d.ts +0 -10
- package/dist/commands/login-new.d.ts.map +0 -1
- package/dist/commands/login-new.js +0 -166
- package/dist/commands/login-new.js.map +0 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
**Changelog file is no longer maintained, you can check all changes in [GitHub Releases](https://github.com/apify/apify-cli/releases).**
|
|
2
|
+
|
|
3
|
+
0.6.1 / 2020-05-18
|
|
4
|
+
==================
|
|
5
|
+
- **BREAKING:** Templates are now fully decoupled from this project and
|
|
6
|
+
the [templates repository](https://github.com/apify/actor-templates)
|
|
7
|
+
serves as the single source of truth. Some templates were replaced
|
|
8
|
+
and others were renamed to better clarify their purpose.
|
|
9
|
+
- **BREAKING:** Providing an invalid template in `apify.json` no longer
|
|
10
|
+
throws, but rather silently uses a reasonable default configuration.
|
|
11
|
+
This is to support regular changes to templates without breaking older
|
|
12
|
+
versions of the CLI.
|
|
13
|
+
|
|
14
|
+
0.5.3 / 2020-03-03
|
|
15
|
+
==================
|
|
16
|
+
- Moved templates to separate repository
|
|
17
|
+
- Fixed: creating `apify_storage` in root folder after `apify create` command
|
|
18
|
+
|
|
19
|
+
0.5.2 / 2020-01-22
|
|
20
|
+
==================
|
|
21
|
+
- Added bot(dependabot.com) to check latest Apify SDK version in all templates
|
|
22
|
+
- Updated apify package in all templates
|
|
23
|
+
- Updated npm packages and fixed all npm audit issues
|
|
24
|
+
|
|
25
|
+
0.5.1 / 2019-12-19
|
|
26
|
+
==================
|
|
27
|
+
- Added warning about outdated node.js version
|
|
28
|
+
- Fixed infinite push, when the previous one was interrupted
|
|
29
|
+
- Fixed calling public actors with `apify call`
|
|
30
|
+
- `apify init` create empty INPUT.json file
|
|
31
|
+
|
|
32
|
+
0.5.0 / 2019-11-27
|
|
33
|
+
==================
|
|
34
|
+
- Drop support for node 8 and 9
|
|
35
|
+
- Fix: Pass the --max-http-header-size=80000 to the nodeJs process
|
|
36
|
+
|
|
37
|
+
0.4.1 / 2019-10-02
|
|
38
|
+
==================
|
|
39
|
+
- New actor template for Apify projects, you can create it with `apify create --template apify_project`
|
|
40
|
+
- `apify vis` - Using improved schema validator
|
|
41
|
+
|
|
42
|
+
0.4.0 / 2019-09-23
|
|
43
|
+
==================
|
|
44
|
+
- Breaking Change - `apify push`: Pushes source code as a "Multiple source files" in case source code is less that 3 MB
|
|
45
|
+
|
|
46
|
+
0.3.12 / 2019-09-18
|
|
47
|
+
==================
|
|
48
|
+
Bug fixes:
|
|
49
|
+
- `apify create`: Added validation for actor name
|
|
50
|
+
- `apify init` skips creation of apify.json if already exists
|
|
51
|
+
- `apify run -p` runs actor, if apify_storage doesn't exist
|
|
52
|
+
- Updated packages
|
|
53
|
+
- Additional minor fixes
|
|
54
|
+
|
|
55
|
+
0.3.11 / 2019-07-26
|
|
56
|
+
==================
|
|
57
|
+
- Updated packages
|
|
58
|
+
- Updated Cheerio Crawler template
|
|
59
|
+
- Updated Apify package version in all templates
|
|
60
|
+
|
|
61
|
+
0.3.10 / 2019-06-03
|
|
62
|
+
==================
|
|
63
|
+
- Updated packages
|
|
64
|
+
|
|
65
|
+
0.3.9 / 2019-05-15
|
|
66
|
+
==================
|
|
67
|
+
- Improved the templates and texts
|
|
68
|
+
|
|
69
|
+
0.3.8 / 2019-03-29
|
|
70
|
+
==================
|
|
71
|
+
- Updated all templates regarding the last version of apify SDK.
|
|
72
|
+
|
|
73
|
+
0.3.7 / 2019-03-18
|
|
74
|
+
==================
|
|
75
|
+
- Fixed templates to use Apify.getInput(), replaced deprecated function and options,
|
|
76
|
+
added debug fields, added .idea to .gitignore
|
|
77
|
+
- Updated packages
|
|
78
|
+
- Fixed bug: Users without username can use push/call command
|
|
79
|
+
|
|
80
|
+
0.3.6 / 2019-01-29
|
|
81
|
+
==================
|
|
82
|
+
- Added command `apify vis` that validates actor input schema.
|
|
83
|
+
|
|
84
|
+
0.3.5 / 2019-01-25
|
|
85
|
+
==================
|
|
86
|
+
- Upgraded to apify@0.11 in templates
|
|
87
|
+
|
|
88
|
+
0.3.3 / 2018-12-12
|
|
89
|
+
==================
|
|
90
|
+
- Omitted CMD command in all templates Dockerfile.
|
|
91
|
+
|
|
92
|
+
0.3.2 / 2018-12-05
|
|
93
|
+
==================
|
|
94
|
+
- Updated apify-client package. It fixed bug, when user can not push actor, whe he changed version in apify.json.
|
|
95
|
+
|
|
96
|
+
0.3.1 / 2018-11-29
|
|
97
|
+
==================
|
|
98
|
+
- :tada: New commands to manage secret environment variables: `apify secrets:add`, `apify secrets:rm`.
|
|
99
|
+
- 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
|
+
- **BREAKING CHANGES**: Simplified `apify.json` structure. It will be updated automatically before execution apify run and push command.
|
|
101
|
+
- Command `apify create` now shows progress bar of npm install.
|
|
102
|
+
- Small bugs fixes
|
|
103
|
+
|
|
104
|
+
0.2.7 / 2018-11-27
|
|
105
|
+
==================
|
|
106
|
+
- Updated all templates to latest apify packages
|
|
107
|
+
|
|
108
|
+
0.2.6 / 2018-11-09
|
|
109
|
+
==================
|
|
110
|
+
- Added warning if `apify run` reuse old state in storage
|
|
111
|
+
- Fixed issues #70 #65 #68
|
|
112
|
+
|
|
113
|
+
0.2.5 / 2018-10-31
|
|
114
|
+
==================
|
|
115
|
+
- Updated NPM dependencies
|
|
116
|
+
- Upgraded to apify-shared@0.1.6
|
|
117
|
+
- Fixed templates to use apify/actor-node-chrome Docker image instead of outdated apify/actor-node-puppeteer
|
|
118
|
+
|
|
119
|
+
0.2.3 / 2018-09-17
|
|
120
|
+
==================
|
|
121
|
+
- Updated all templates to apify version 0.8.*
|
|
122
|
+
- Added template named hello_word
|
|
123
|
+
|
|
124
|
+
0.2.1 / 2018-09-17
|
|
125
|
+
==================
|
|
126
|
+
- **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.* to 0.2.*.
|
|
128
|
+
- You can specified another file that main.js for `apify run` command using npm start script.
|
|
129
|
+
|
|
130
|
+
0.2.0 / 2018-09-12
|
|
131
|
+
==================
|
|
132
|
+
- **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
|
+
has been changed according to Apify SDK version 0.7.0.
|
|
134
|
+
- Dropped support for Node 7
|
|
135
|
+
|
|
136
|
+
0.1.18 / 2018-09-12
|
|
137
|
+
===================
|
|
138
|
+
- Updated NPM dependencies, npm-shrinkwrap.json replaced with package-lock.json
|
|
139
|
+
- Updated NPM dependencies in code templates
|
|
140
|
+
|
|
141
|
+
0.1.15 / 2018-07-23
|
|
142
|
+
===================
|
|
143
|
+
- Rename act to actor
|
|
144
|
+
|
|
145
|
+
0.1.13 / 2018-07-12
|
|
146
|
+
===================
|
|
147
|
+
- Add environment variables for enable live view for local actors.
|
|
148
|
+
|
|
149
|
+
0.1.12 / 2018-06-28
|
|
150
|
+
===================
|
|
151
|
+
- From now `apify call` and `apify push` commands stream live logs from run and build to your terminal
|
|
152
|
+
- Add options -p, --purge, --purge-dataset, --purge-key-value-store, --purge-queue in `apify run` to clean stores before runs actor locally
|
|
153
|
+
- 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
|
+
- Fixes #26, #33, #34, #36, #38, #39, #37, #35
|
|
155
|
+
|
|
156
|
+
0.1.11 / 2018-05-30
|
|
157
|
+
===================
|
|
158
|
+
- Use npm-shrinkwrap.json instead of package-lock.json for published module
|
|
159
|
+
- Update template, where we using proxy
|
|
160
|
+
- Fix #30
|
|
161
|
+
|
|
162
|
+
0.1.9 / 2018-04-18
|
|
163
|
+
==================
|
|
164
|
+
- apify run takes APIFY_USER_ID and APIFY_TOKEN as environments variables, if client is logged locally
|
|
165
|
+
- apify call takes input from default local key-value-store
|
|
166
|
+
- Fix: duplicates new lines in log
|
|
167
|
+
|
|
168
|
+
0.1.8 / 2018-04-17
|
|
169
|
+
==================
|
|
170
|
+
- Print warning if you have old version of cli
|
|
171
|
+
- apify run - kills all sub processes for SIGINT signal (ctrl+c) - It kills all related browsers in apify run command, related issue:
|
|
172
|
+
https://github.com/apify/apify-js/issues/72
|
|
173
|
+
|
|
174
|
+
0.1.7 / 2018-04-12
|
|
175
|
+
==================
|
|
176
|
+
- Readme and templates updates
|
|
177
|
+
|
|
178
|
+
0.1.6 / 2018-04-11
|
|
179
|
+
==================
|
|
180
|
+
- Add support for request queue
|
|
181
|
+
|
|
182
|
+
0.1.5 / 2018-04-09
|
|
183
|
+
==================
|
|
184
|
+
- Works for windows
|
|
185
|
+
- New command apify info
|
|
186
|
+
|
|
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
|
+
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
|
package/README.md
CHANGED
|
@@ -51,7 +51,7 @@ If you receive an `EACCES` error, you might need to run the command as root:
|
|
|
51
51
|
sudo npm -g install apify-cli
|
|
52
52
|
```
|
|
53
53
|
|
|
54
|
-
|
|
54
|
+
Alternatively, you can use [Node Version Manager (nvm)](https://github.com/nvm-sh/nvm) and install Apify CLI only into a selected user-level Node version without requiring root privileges:
|
|
55
55
|
|
|
56
56
|
```
|
|
57
57
|
nvm install 16
|
|
@@ -276,13 +276,13 @@ This section contains printouts of `apify help` for all commands.
|
|
|
276
276
|
|
|
277
277
|
<!-- commands -->
|
|
278
278
|
* [`apify actor`](#apify-actor)
|
|
279
|
-
* [`apify actor
|
|
280
|
-
* [`apify actor
|
|
281
|
-
* [`apify actor
|
|
282
|
-
* [`apify actor
|
|
279
|
+
* [`apify actor get-input`](#apify-actor-get-input)
|
|
280
|
+
* [`apify actor get-value KEY`](#apify-actor-get-value-key)
|
|
281
|
+
* [`apify actor push-data [ITEM]`](#apify-actor-push-data-item)
|
|
282
|
+
* [`apify actor set-value KEY [VALUE]`](#apify-actor-set-value-key-value)
|
|
283
283
|
* [`apify call [ACTORID]`](#apify-call-actorid)
|
|
284
284
|
* [`apify create [ACTORNAME]`](#apify-create-actorname)
|
|
285
|
-
* [`apify help [
|
|
285
|
+
* [`apify help [COMMAND]`](#apify-help-command)
|
|
286
286
|
* [`apify info`](#apify-info)
|
|
287
287
|
* [`apify init [ACTORNAME]`](#apify-init-actorname)
|
|
288
288
|
* [`apify login`](#apify-login)
|
|
@@ -291,8 +291,8 @@ This section contains printouts of `apify help` for all commands.
|
|
|
291
291
|
* [`apify push [ACTORID]`](#apify-push-actorid)
|
|
292
292
|
* [`apify run`](#apify-run)
|
|
293
293
|
* [`apify secrets`](#apify-secrets)
|
|
294
|
-
* [`apify secrets
|
|
295
|
-
* [`apify secrets
|
|
294
|
+
* [`apify secrets add NAME VALUE`](#apify-secrets-add-name-value)
|
|
295
|
+
* [`apify secrets rm NAME`](#apify-secrets-rm-name)
|
|
296
296
|
* [`apify vis [PATH]`](#apify-vis-path)
|
|
297
297
|
|
|
298
298
|
## `apify actor`
|
|
@@ -307,29 +307,29 @@ 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.31/src/commands/actor/index.ts)_
|
|
311
311
|
|
|
312
|
-
## `apify actor
|
|
312
|
+
## `apify actor get-input`
|
|
313
313
|
|
|
314
314
|
Gets the Actor input value from the default key-value store associated with the Actor run.
|
|
315
315
|
|
|
316
316
|
```
|
|
317
317
|
USAGE
|
|
318
|
-
$ apify actor
|
|
318
|
+
$ apify actor get-input
|
|
319
319
|
|
|
320
320
|
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.31/src/commands/actor/get-input.ts)_
|
|
325
325
|
|
|
326
|
-
## `apify actor
|
|
326
|
+
## `apify actor get-value KEY`
|
|
327
327
|
|
|
328
328
|
Gets a value from the default key-value store associated with the Actor run.
|
|
329
329
|
|
|
330
330
|
```
|
|
331
331
|
USAGE
|
|
332
|
-
$ apify actor
|
|
332
|
+
$ apify actor get-value KEY
|
|
333
333
|
|
|
334
334
|
ARGUMENTS
|
|
335
335
|
KEY Key of the record in key-value store
|
|
@@ -338,15 +338,15 @@ 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.31/src/commands/actor/get-value.ts)_
|
|
342
342
|
|
|
343
|
-
## `apify actor
|
|
343
|
+
## `apify actor push-data [ITEM]`
|
|
344
344
|
|
|
345
345
|
Stores an object or an array of objects to the default dataset of the Actor run.
|
|
346
346
|
|
|
347
347
|
```
|
|
348
348
|
USAGE
|
|
349
|
-
$ apify actor
|
|
349
|
+
$ apify actor push-data [ITEM]
|
|
350
350
|
|
|
351
351
|
ARGUMENTS
|
|
352
352
|
ITEM JSON string with one object or array of objects containing data to be stored in the default dataset.
|
|
@@ -360,15 +360,15 @@ 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.31/src/commands/actor/push-data.ts)_
|
|
364
364
|
|
|
365
|
-
## `apify actor
|
|
365
|
+
## `apify actor set-value KEY [VALUE]`
|
|
366
366
|
|
|
367
367
|
Sets or removes record into the default KeyValueStore associated with the Actor run.
|
|
368
368
|
|
|
369
369
|
```
|
|
370
370
|
USAGE
|
|
371
|
-
$ apify actor
|
|
371
|
+
$ apify actor set-value KEY [VALUE] [-c <value>]
|
|
372
372
|
|
|
373
373
|
ARGUMENTS
|
|
374
374
|
KEY Key of the record in key-value store.
|
|
@@ -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.31/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.31/src/commands/call.ts)_
|
|
419
419
|
|
|
420
420
|
## `apify create [ACTORNAME]`
|
|
421
421
|
|
|
@@ -423,7 +423,7 @@ Creates a new Actor project directory from a selected boilerplate template.
|
|
|
423
423
|
|
|
424
424
|
```
|
|
425
425
|
USAGE
|
|
426
|
-
$ apify create [ACTORNAME] [-t <value>] [--skip-dependency-install]
|
|
426
|
+
$ apify create [ACTORNAME] [-t <value>] [--skip-dependency-install] [--omit-optional-deps]
|
|
427
427
|
|
|
428
428
|
ARGUMENTS
|
|
429
429
|
ACTORNAME Name of the Actor and its directory
|
|
@@ -433,24 +433,25 @@ FLAGS
|
|
|
433
433
|
Visit
|
|
434
434
|
https://raw.githubusercontent.com/apify/actor-templates/master/templates/manifest.json
|
|
435
435
|
to find available template names.
|
|
436
|
+
--omit-optional-deps Skip installing optional dependencies.
|
|
436
437
|
--skip-dependency-install Skip installing Actor dependencies.
|
|
437
438
|
|
|
438
439
|
DESCRIPTION
|
|
439
440
|
Creates a new Actor project directory from a selected boilerplate template.
|
|
440
441
|
```
|
|
441
442
|
|
|
442
|
-
_See code: [src/commands/create.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.
|
|
443
|
+
_See code: [src/commands/create.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.31/src/commands/create.ts)_
|
|
443
444
|
|
|
444
|
-
## `apify help [
|
|
445
|
+
## `apify help [COMMAND]`
|
|
445
446
|
|
|
446
447
|
Display help for apify.
|
|
447
448
|
|
|
448
449
|
```
|
|
449
450
|
USAGE
|
|
450
|
-
$ apify help [
|
|
451
|
+
$ apify help [COMMAND...] [-n]
|
|
451
452
|
|
|
452
453
|
ARGUMENTS
|
|
453
|
-
|
|
454
|
+
COMMAND... Command to show help for.
|
|
454
455
|
|
|
455
456
|
FLAGS
|
|
456
457
|
-n, --nested-commands Include all nested commands in the output.
|
|
@@ -459,7 +460,7 @@ DESCRIPTION
|
|
|
459
460
|
Display help for apify.
|
|
460
461
|
```
|
|
461
462
|
|
|
462
|
-
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.0.
|
|
463
|
+
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.0.20/src/commands/help.ts)_
|
|
463
464
|
|
|
464
465
|
## `apify info`
|
|
465
466
|
|
|
@@ -474,7 +475,7 @@ DESCRIPTION
|
|
|
474
475
|
The information is printed to the console.
|
|
475
476
|
```
|
|
476
477
|
|
|
477
|
-
_See code: [src/commands/info.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.
|
|
478
|
+
_See code: [src/commands/info.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.31/src/commands/info.ts)_
|
|
478
479
|
|
|
479
480
|
## `apify init [ACTORNAME]`
|
|
480
481
|
|
|
@@ -502,26 +503,28 @@ DESCRIPTION
|
|
|
502
503
|
WARNING: The directory at "storage" will be overwritten if it already exists.
|
|
503
504
|
```
|
|
504
505
|
|
|
505
|
-
_See code: [src/commands/init.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.
|
|
506
|
+
_See code: [src/commands/init.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.31/src/commands/init.ts)_
|
|
506
507
|
|
|
507
508
|
## `apify login`
|
|
508
509
|
|
|
509
|
-
Logs in to your Apify account
|
|
510
|
+
Logs in to your Apify account.
|
|
510
511
|
|
|
511
512
|
```
|
|
512
513
|
USAGE
|
|
513
|
-
$ apify login [-t <value>]
|
|
514
|
+
$ apify login [-t <value>] [-m console|manual]
|
|
514
515
|
|
|
515
516
|
FLAGS
|
|
516
|
-
-
|
|
517
|
+
-m, --method=<option> [Optional] Method of logging in to Apify
|
|
518
|
+
<options: console|manual>
|
|
519
|
+
-t, --token=<value> [Optional] Apify API token
|
|
517
520
|
|
|
518
521
|
DESCRIPTION
|
|
519
|
-
Logs in to your Apify account
|
|
522
|
+
Logs in to your Apify account.
|
|
520
523
|
The API token and other account information is stored in the ~/.apify directory, from where it is read by all other
|
|
521
524
|
"apify" commands. To log out, call "apify logout".
|
|
522
525
|
```
|
|
523
526
|
|
|
524
|
-
_See code: [src/commands/login.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.
|
|
527
|
+
_See code: [src/commands/login.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.31/src/commands/login.ts)_
|
|
525
528
|
|
|
526
529
|
## `apify logout`
|
|
527
530
|
|
|
@@ -537,7 +540,7 @@ DESCRIPTION
|
|
|
537
540
|
call "apify login".
|
|
538
541
|
```
|
|
539
542
|
|
|
540
|
-
_See code: [src/commands/logout.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.
|
|
543
|
+
_See code: [src/commands/logout.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.31/src/commands/logout.ts)_
|
|
541
544
|
|
|
542
545
|
## `apify pull [ACTORID]`
|
|
543
546
|
|
|
@@ -559,7 +562,7 @@ DESCRIPTION
|
|
|
559
562
|
cloned. If it is defined as Web IDE, it will fetch the files.
|
|
560
563
|
```
|
|
561
564
|
|
|
562
|
-
_See code: [src/commands/pull.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.
|
|
565
|
+
_See code: [src/commands/pull.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.31/src/commands/pull.ts)_
|
|
563
566
|
|
|
564
567
|
## `apify push [ACTORID]`
|
|
565
568
|
|
|
@@ -568,6 +571,7 @@ Uploads the Actor to the Apify platform and builds it there.
|
|
|
568
571
|
```
|
|
569
572
|
USAGE
|
|
570
573
|
$ apify push [ACTORID] [--version-number <value>] [-v <value>] [-b <value>] [-w <value>] [--no-prompt]
|
|
574
|
+
[--force]
|
|
571
575
|
|
|
572
576
|
ARGUMENTS
|
|
573
577
|
ACTORID Name or ID of the Actor to push (e.g. "apify/hello-world" or "E2jjCZBezvAZnX8Rb"). If not provided, the
|
|
@@ -579,6 +583,7 @@ FLAGS
|
|
|
579
583
|
-v, --version=<value> Actor version number to which the files should be pushed. By default, it is taken from
|
|
580
584
|
the ".actor/actor.json" file.
|
|
581
585
|
-w, --wait-for-finish=<value> Seconds for waiting to build to finish, if no value passed, it waits forever.
|
|
586
|
+
--force Push an Actor even when the local files are older than the Actor on the platform.
|
|
582
587
|
--no-prompt Do not prompt for opening the Actor details in a browser. This will also not open the
|
|
583
588
|
browser automatically.
|
|
584
589
|
--version-number=<value> DEPRECATED: Use flag version instead. Actor version number to which the files should be
|
|
@@ -591,10 +596,11 @@ DESCRIPTION
|
|
|
591
596
|
NOTE: If the source files are smaller than 3 MB then they are uploaded as
|
|
592
597
|
"Multiple source files", otherwise they are uploaded as "Zip file".
|
|
593
598
|
|
|
594
|
-
|
|
599
|
+
When there's an attempt to push files that are older than the Actor on the platform, the command will fail. Can be
|
|
600
|
+
overwritten with --force flag.
|
|
595
601
|
```
|
|
596
602
|
|
|
597
|
-
_See code: [src/commands/push.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.
|
|
603
|
+
_See code: [src/commands/push.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.31/src/commands/push.ts)_
|
|
598
604
|
|
|
599
605
|
## `apify run`
|
|
600
606
|
|
|
@@ -622,7 +628,7 @@ DESCRIPTION
|
|
|
622
628
|
package.json file. You can set up your own main file or environment variables by changing it.
|
|
623
629
|
```
|
|
624
630
|
|
|
625
|
-
_See code: [src/commands/run.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.
|
|
631
|
+
_See code: [src/commands/run.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.31/src/commands/run.ts)_
|
|
626
632
|
|
|
627
633
|
## `apify secrets`
|
|
628
634
|
|
|
@@ -636,7 +642,7 @@ DESCRIPTION
|
|
|
636
642
|
Manages secret values for Actor environment variables.
|
|
637
643
|
|
|
638
644
|
Example:
|
|
639
|
-
$ apify secrets
|
|
645
|
+
$ apify secrets add mySecret TopSecretValue123
|
|
640
646
|
|
|
641
647
|
Now the "mySecret" value can be used in an environment variable defined in ".actor/actor.json" file by adding the "@"
|
|
642
648
|
prefix:
|
|
@@ -652,15 +658,15 @@ DESCRIPTION
|
|
|
652
658
|
of the Actor.
|
|
653
659
|
```
|
|
654
660
|
|
|
655
|
-
_See code: [src/commands/secrets/index.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.
|
|
661
|
+
_See code: [src/commands/secrets/index.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.31/src/commands/secrets/index.ts)_
|
|
656
662
|
|
|
657
|
-
## `apify secrets
|
|
663
|
+
## `apify secrets add NAME VALUE`
|
|
658
664
|
|
|
659
665
|
Adds a new secret value.
|
|
660
666
|
|
|
661
667
|
```
|
|
662
668
|
USAGE
|
|
663
|
-
$ apify secrets
|
|
669
|
+
$ apify secrets add NAME VALUE
|
|
664
670
|
|
|
665
671
|
ARGUMENTS
|
|
666
672
|
NAME Name of the secret
|
|
@@ -671,15 +677,15 @@ DESCRIPTION
|
|
|
671
677
|
The secrets are stored to a file at ~/.apify
|
|
672
678
|
```
|
|
673
679
|
|
|
674
|
-
_See code: [src/commands/secrets/add.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.
|
|
680
|
+
_See code: [src/commands/secrets/add.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.31/src/commands/secrets/add.ts)_
|
|
675
681
|
|
|
676
|
-
## `apify secrets
|
|
682
|
+
## `apify secrets rm NAME`
|
|
677
683
|
|
|
678
684
|
Removes the secret.
|
|
679
685
|
|
|
680
686
|
```
|
|
681
687
|
USAGE
|
|
682
|
-
$ apify secrets
|
|
688
|
+
$ apify secrets rm NAME
|
|
683
689
|
|
|
684
690
|
ARGUMENTS
|
|
685
691
|
NAME Name of the secret
|
|
@@ -688,7 +694,7 @@ DESCRIPTION
|
|
|
688
694
|
Removes the secret.
|
|
689
695
|
```
|
|
690
696
|
|
|
691
|
-
_See code: [src/commands/secrets/rm.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.
|
|
697
|
+
_See code: [src/commands/secrets/rm.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.31/src/commands/secrets/rm.ts)_
|
|
692
698
|
|
|
693
699
|
## `apify vis [PATH]`
|
|
694
700
|
|
|
@@ -713,5 +719,5 @@ DESCRIPTION
|
|
|
713
719
|
You can also pass any custom path to your input schema to have it validated instead.
|
|
714
720
|
```
|
|
715
721
|
|
|
716
|
-
_See code: [src/commands/vis.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.
|
|
722
|
+
_See code: [src/commands/vis.ts](https://github.com/apify/apify-cli/blob/v1.0.0-beta.31/src/commands/vis.ts)_
|
|
717
723
|
<!-- commandsstop -->
|
package/bin/dev.js
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
#!/usr/bin/env node_modules/.bin/tsx
|
|
2
|
-
|
|
3
1
|
import { execute } from '@oclif/core';
|
|
2
|
+
import { satisfies } from 'semver';
|
|
4
3
|
|
|
4
|
+
import { SUPPORTED_NODEJS_VERSION } from '../src/lib/consts.ts';
|
|
5
5
|
import { error } from '../src/lib/outputs.ts';
|
|
6
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
|
+
|
|
7
12
|
try {
|
|
8
13
|
await execute({ development: true, dir: import.meta.url });
|
|
9
14
|
} catch (err) {
|
package/bin/dev.sh
ADDED
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) {
|