-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New flags readme #422
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New flags readme #422
Changes from 3 commits
b810315
43a0afa
3a3b7ba
19356f3
13962c2
7a2ec01
40cc705
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,6 +50,9 @@ Quickstart guides for [Google Cloud](doc/admin/install/google_cloud.md), [AWS](d | |
|
||
How to [secure your setup](/doc/security/ssl.md). | ||
|
||
### Customize User Data | ||
- Use your local VSCode configuration and locally installed extensions with the `--user-data-dir` and `--extensions-dir` flags. View the [quick start](doc/self-hosted/index.md) guide for more. | ||
|
||
|
||
## Development | ||
|
||
### Known Issues | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,24 +37,33 @@ code-server can be ran with a number of arguments to customize your working dire | |
USAGE | ||
$ code-server [WORKDIR] | ||
|
||
ARGUMENTS | ||
WORKDIR [default: (directory to binary)] Specify working dir | ||
|
||
OPTIONS | ||
-d, --data-dir=data-dir | ||
-h, --host=host [default: 0.0.0.0] | ||
-o, --open Open in browser on startup | ||
-p, --port=port [default: 8443] Port to bind on | ||
-v, --version show CLI version | ||
--allow-http | ||
--cert=cert | ||
--cert-key=cert-key | ||
--help show CLI help | ||
--no-auth | ||
--password=password | ||
Run VS Code on a remote server. | ||
|
||
Options: | ||
-V, --version output the version number | ||
--cert <value> | ||
--cert-key <value> | ||
-e, --extensions-dir <dir> Set the root path for extensions. | ||
-d --user-data-dir <dir> Specifies the directory that user data is kept in, useful when running as root. | ||
--data-dir <value> DEPRECATED: Use '--user-data-dir' instead. Customize where user-data is stored. | ||
-h, --host <value> Customize the hostname. (default: "0.0.0.0") | ||
-o, --open Open in the browser on startup. | ||
-p, --port <number> Port to bind on. (default: 8443) | ||
-N, --no-auth Start without requiring authentication. | ||
-H, --allow-http Allow http connections. | ||
-P, --password <value> Specify a password for authentication. | ||
--bootstrap-fork <name> Used for development. Never set. | ||
--fork <name> Used for development. Never set. | ||
--extra-args <args> Used for development. Never set. | ||
-h, --help output usage information | ||
``` | ||
### Extension Directory | ||
Point code-server at a local directory with installed extensions. This allows inheriting local VSCode extensions by specifying `--extensions-dir ~/.vscode/extensions` | ||
|
||
|
||
### Data Directory | ||
### User Data Directory | ||
Specify the root folder that VS Code will start in. This allows inheriting local VS Code configuration. Example `--user-data-dir ~/.config/User` | ||
|
||
|
||
### Data Directory (*deprecated*) | ||
Use `code-server -d (path/to/directory)` or `code-server --data-dir=(path/to/directory)`, excluding the parentheses to specify the root folder that VS Code will start in | ||
|
||
### Host | ||
|