Skip to content

Commit 14d9171

Browse files
committed
update code-server usage in documentation
1 parent a657733 commit 14d9171

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

doc/self-hosted/index.md

+16-13
Original file line numberDiff line numberDiff line change
@@ -38,21 +38,24 @@ Usage: code-server [options]
3838
Run VS Code on a remote server.
3939
4040
Options:
41-
-V, --version output the version number
41+
-V, --version output the version number
4242
--cert <value>
4343
--cert-key <value>
44-
-e, --extensions-dir <dir> Set the root path for extensions.
45-
-d --user-data-dir <dir> Specifies the directory that user data is kept in, useful when running as root.
46-
--data-dir <value> DEPRECATED: Use '--user-data-dir' instead. Customize where user-data is stored.
47-
-h, --host <value> Customize the hostname. (default: "0.0.0.0")
48-
-o, --open Open in the browser on startup.
49-
-p, --port <number> Port to bind on. (default: 8443)
50-
-N, --no-auth Start without requiring authentication.
51-
-H, --allow-http Allow http connections.
52-
-P, --password <value> Specify a password for authentication.
53-
--disable-telemetry Disables ALL telemetry.
54-
--help output usage information
55-
```
44+
-e, --extensions-dir <dir> Override the main default path for user extensions.
45+
--extra-extensions-dir [dir] Path to an extra user extension directory (repeatable). (default: [])
46+
--extra-builtin-extensions-dir [dir] Path to an extra built-in extension directory (repeatable). (default: [])
47+
-d --user-data-dir <dir> Specifies the directory that user data is kept in, useful when running as root.
48+
-h, --host <value> Customize the hostname. (default: "0.0.0.0")
49+
-o, --open Open in the browser on startup.
50+
-p, --port <number> Port to bind on. (default: 8443)
51+
-N, --no-auth Start without requiring authentication.
52+
-H, --allow-http Allow http connections.
53+
--disable-telemetry Disables ALL telemetry.
54+
--socket <value> Listen on a UNIX socket. Host and port will be ignored when set.
55+
--trust-proxy Trust the X-Forwarded-For header, useful when using a reverse proxy.
56+
--install-extension <value> Install an extension by its ID.
57+
-h, --help output usage information
58+
```
5659

5760
### Data Directory
5861
Use `code-server -d (path/to/directory)` or `code-server --user-data-dir=(path/to/directory)`, excluding the parentheses to specify the root folder that VS Code will start in.

0 commit comments

Comments
 (0)