@@ -17,28 +17,54 @@ For a full setup and walkthrough, please see [./doc/guide.md](./doc/guide.md).
17
17
18
18
## Install
19
19
20
- You can easily and securely install code-server with our install script.
20
+ You can easily and securely install code-server with our install script on any Linux or macOS machine .
21
21
22
22
``` bash
23
23
# First run to print out the install process.
24
- curl -sSL https://get.docker.com/ | sh -s -- --dry-run
24
+ curl -fsSL https://code-server.dev/install.sh | sh -s -- --dry-run
25
25
# Now it will actually install.
26
- curl -sSL https://get.docker.com/ | sh -s --
26
+ curl -fsSL https://code-server.dev/install.sh | sh
27
27
```
28
28
29
+ ```
30
+ $ curl -fsSL https://code-server.dev/install.sh | sh -s -- --dry-run --help
31
+
32
+ Installs latest code-server on any macOS or Linux system preferring to use the OS package manager.
33
+
34
+ curl -fsSL https://code-server.dev/install.sh | sh -s --
35
+
29
36
- For Debian, Ubuntu, Raspbian it will install the latest deb package.
30
37
- For Fedora, CentOS, RHEL, openSUSE it will install the latest rpm package.
31
38
- For Arch Linux it will install the AUR package.
32
- - For any unrecognized Linux operating system it will install the latest static release into ` /usr/local/lib/code-server-X.X.X ` .
39
+ - For any unrecognized Linux operating system it will install the latest static release into ~/.local
40
+ - Add ~/.local/bin to your $PATH to run code-server.
41
+
33
42
- For macOS it will install the Homebrew package.
34
- - If Homebrew is not installed it will install the latest static release into ` /usr/local/lib/code-server-X.X.X ` .
43
+ - If Homebrew is not installed it will install the latest static release into ~/.local
44
+ - Add ~/.local/bin to your $PATH to run code-server.
45
+
46
+ - If ran on an architecture with no binary releases or outdated libc/libcxx, it will install the
47
+ npm package with yarn or npm.
48
+ - We only have binary releases for amd64 and arm64 presently.
35
49
36
- If ran on an architecture with no binary releases, it will install the npm package with ` yarn ` or ` npm ` .
37
- We only have binary releases for ` amd64 ` and ` arm64 ` presently.
50
+ --dry-run Enables a dry run where where the steps that would have taken place
51
+ are printed but do not actually execute.
52
+
53
+ --static Forces the installation of a static release into ~/.local
54
+
55
+ This flag takes an optional argument for the installation prefix which defaults to "~/.local".
56
+ code-server will be unarchived into ~/.local/lib/code-server.X.X.X and the binary will be symlinked
57
+ into "~/.local/bin/code-server". You will need to add ~/.local/bin to your $PATH to use it without
58
+ the full path.
59
+
60
+ To install system wide set the prefix to /usr/local.
61
+
62
+ --version Pass to install a specific version instead of the latest release.
63
+ ```
38
64
39
65
If you still don't trust our install script, even with the above explaination and the dry run, we have
40
- docs in [ ./doc/install.md] ( ./doc/install.md ) that explain how to install ` code-server ` each of the above
41
- operating systems . The script runs the exact same commands.
66
+ docs in [ ./doc/install.md] ( ./doc/install.md ) that explain how to install ` code-server ` on a variety of
67
+ platforms . The script runs the exact same commands.
42
68
43
69
### Docker
44
70
@@ -53,6 +79,8 @@ docker run -it -p 127.0.0.1:8080:8080 \
53
79
codercom/code-server:latest
54
80
```
55
81
82
+ You should also check out
83
+
56
84
## FAQ
57
85
58
86
See [ ./doc/FAQ.md] ( ./doc/FAQ.md ) .
0 commit comments