@@ -17,27 +17,40 @@ usage() {
17
17
Installs code-server for Linux, macOS and FreeBSD.
18
18
It tries to use the system package manager if possible.
19
19
After successful installation it explains how to start using code-server.
20
+
21
+ Pass in user@host to install code-server on user@host over ssh and forward
22
+ the code-server port in the foreground so that you can immediately access it!
23
+ If you rerun the script, code-server will be updated only when required.
20
24
${not_curl_usage-}
21
25
Usage:
22
26
23
- $arg0 [--dry-run] [--version X.X.X] [--method detect] [--prefix ~/.local] [user@host]
27
+ $arg0 [--dry-run] [--version X.X.X] [--method detect] [--prefix ~/.local] [--start] [ user@host]
24
28
25
29
--dry-run
26
30
Echo the commands for the install process without running them.
31
+
27
32
--version X.X.X
28
33
Install a specific version instead of the latest.
34
+
29
35
--method [detect | standalone]
30
36
Choose the installation method. Defaults to detect.
31
37
- detect detects the system package manager and tries to use it.
32
38
Full reference on the process is further below.
33
39
- standalone installs a standalone release archive into ~/.local
34
40
Add ~/.local/bin to your \$ PATH to use it.
41
+
35
42
--prefix <dir>
36
43
Sets the prefix used by standalone release archives. Defaults to ~/.local
37
44
The release is unarchived into ~/.local/lib/code-server-X.X.X
38
45
and the binary symlinked into ~/.local/bin/code-server
39
46
To install system wide pass ---prefix=/usr/local
40
47
48
+ --start
49
+ Ensures code-server is running and prints the URL at which it can be accessed.
50
+ Also will print code-server's password and when installing over ssh, will forward
51
+ the code-server port so that it can be easily accessed locally.
52
+ Will block on tailing code-server's logs.
53
+
41
54
- For Debian, Ubuntu and Raspbian it will install the latest deb package.
42
55
- For Fedora, CentOS, RHEL and openSUSE it will install the latest rpm package.
43
56
- For Arch Linux it will install the AUR package.
56
69
- The npm package builds the native modules on postinstall.
57
70
58
71
It will cache all downloaded assets into ~/.cache/code-server
72
+ With ssh installation, assets will be transferred over via scp
73
+ as needed instead of being downloaded directly on the ssh host.
59
74
60
75
More installation docs are at https://github.com/cdr/code-server/blob/master/doc/install.md
61
76
EOF
0 commit comments