@@ -17,28 +17,54 @@ For a full setup and walkthrough, please see [./doc/guide.md](./doc/guide.md).
1717
1818## Install
1919
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 .
2121
2222``` bash
2323# 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
2525# Now it will actually install.
26- curl -sSL https://get.docker.com/ | sh -s --
26+ curl -fsSL https://code-server.dev/install.sh | sh
2727```
2828
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+
2936- For Debian, Ubuntu, Raspbian it will install the latest deb package.
3037- For Fedora, CentOS, RHEL, openSUSE it will install the latest rpm package.
3138- 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+
3342- 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.
3549
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+ ```
3864
3965If 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.
4268
4369### Docker
4470
@@ -53,6 +79,8 @@ docker run -it -p 127.0.0.1:8080:8080 \
5379 codercom/code-server:latest
5480```
5581
82+ You should also check out
83+
5684## FAQ
5785
5886See [ ./doc/FAQ.md] ( ./doc/FAQ.md ) .
0 commit comments