You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On macOS (or Linux), you can install the Apify CLI via the [Homebrew package manager](https://brew.sh).
@@ -31,7 +45,7 @@ brew install apify-cli
31
45
32
46
### Via NPM
33
47
34
-
First, make sure you have [Node.js](https://nodejs.org) version 16 or higher with NPM installed on your computer:
48
+
First, make sure you have [Node.js](https://nodejs.org) version 22 or higher with NPM installed on your computer:
35
49
36
50
```bash
37
51
node --version
@@ -41,21 +55,15 @@ npm --version
41
55
Install or upgrade Apify CLI by running:
42
56
43
57
```bash
44
-
npm -g install apify-cli
58
+
npm install -g apify-cli
45
59
```
46
60
47
-
If you receive an `EACCES` error, you might need to run the command as root:
61
+
Alternatively, you can use [fnm (Fast Node Manager)](https://github.com/Schniz/fnm) and install Apify CLI only into a selected user-level Node version without requiring root privileges:
48
62
49
63
```bash
50
-
sudo npm -g install apify-cli
51
-
```
52
-
53
-
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:
54
-
55
-
```
56
-
nvm install 16
57
-
nvm use 16
58
-
npm -g install apify-cli
64
+
fnm install 22
65
+
fnm use 22
66
+
npm install -g apify-cli
59
67
```
60
68
61
69
Finally, verify that Apify CLI was installed correctly by running:
@@ -64,12 +72,6 @@ Finally, verify that Apify CLI was installed correctly by running:
64
72
apify --version
65
73
```
66
74
67
-
which should print something like:
68
-
69
-
```
70
-
apify-cli/0.10.0 darwin-x64 node-v16.14.2
71
-
```
72
-
73
75
> You can also skip the manual global installation altogether and use `npx apify-cli` with all the following commands instead.
74
76
75
77
## Basic usage
@@ -114,7 +116,7 @@ You can find more information about by running `apify help run`.
114
116
115
117
### Create a new Actor from Scrapy project
116
118
117
-
If you want to run a Scrapy project on Apify platform, follow the Scrapy integration guide[here](https://docs.apify.com/cli/docs/integrating-scrapy).
119
+
If you want to run a Scrapy project on Apify platform, follow the [Scrapy integration guide](https://docs.apify.com/cli/docs/integrating-scrapy).
118
120
119
121
### Run the Actor locally
120
122
@@ -278,4 +280,4 @@ or [contact us](https://www.apify.com/contact).
278
280
279
281
## Command reference
280
282
281
-
This section contains printouts of `apify help` for all commands.
283
+
See a list of all our commands on the [reference page](https://docs.apify.com/cli/docs/reference)
0 commit comments