-
Notifications
You must be signed in to change notification settings - Fork 6k
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 |
---|---|---|
|
@@ -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` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Feels a bit difficult to parse this. Maybe:
|
||
|
||
### 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` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I realize this is correct for Linux, but for mac (at least on my installation), the local VS Code configuration is stored in |
||
|
||
### 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 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe:
Use VS Code Data
Use your existing VS Code configuration and extensions using the
--user-data-dir
and--extensions-dir
flags. View the quick start guide for more.