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
Copy file name to clipboardexpand all lines: README.md
+23-20
Original file line number
Diff line number
Diff line change
@@ -21,12 +21,19 @@ npm install -g tldr
21
21
To see tldr pages:
22
22
23
23
-`tldr <command>` show examples for this command
24
-
-`tldr <command> --os=<platform>` show command page for the given platform (`linux`, `osx`, `sunos`, `windows`)
25
-
-`tldr --search "<query>"` search all pages for the query
24
+
-`tldr <command> --platform=<osx, darwin, macos, freebsd, linux, netbsd, openbsd, sunos, android, windows, win32>` show command page for the given platform
25
+
-`tldr --android <command>` show command page for Android
26
+
-`tldr --darwin <command>` show command page for darwin (macOS)
27
+
-`tldr --freebsd <command>` show command page for FreeBSD
26
28
-`tldr --linux <command>` show command page for Linux
27
-
-`tldr --osx <command>` show command page for OSX
29
+
-`tldr --macos <command>` show command page for macOS
30
+
-`tldr --netbsd <command>` show command page for NetBSD
31
+
-`tldr --openbsd <command>` show command page for OpenBSD
32
+
-`tldr --osx <command>` show command page for osx (macOS)
28
33
-`tldr --sunos <command>` show command page for SunOS
34
+
-`tldr --win32 <command>` show command page for win32 (Windows)
29
35
-`tldr --windows <command>` show command page for Windows
36
+
-`tldr --search "<query>"` search all pages for the query
30
37
-`tldr --list` show all pages for current platform
31
38
-`tldr --list-all` show all available pages
32
39
-`tldr --random` show a page at random
@@ -91,7 +98,7 @@ you can put it in the config file:
91
98
The default platform value can be overwritten with command-line option:
92
99
93
100
```shell
94
-
tldr du --os=osx
101
+
tldr du --platform=<osx>
95
102
```
96
103
97
104
As a contributor, you can also point to your own fork containing the `tldr.zip` file. The file is just a zipped version of the entire tldr repo:
Then most probably your npm's default installation directory has improper permissions. You can resolve it by clicking [here](https://docs.npmjs.com/getting-started/fixing-npm-permissions)
177
184
178
185
- If you are trying to install as a root user (`sudo npm install -g tldr`) and get something like:
179
186
180
-
```
187
+
```shell
181
188
as root ->
182
189
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/tldr/node_modules/webworker-threads/.node-gyp"
183
190
gyp WARN EACCES user "root" does not have permission to access the dev dir "/usr/local/lib/node_modules/tldr/node_modules/webworker-threads/.node-gyp/8.9.1"
@@ -187,14 +194,14 @@ You need to add the option `--unsafe-perm` to your command. This is because when
187
194
188
195
- If you see an error related to `webworker-threads` like:
0 commit comments