@@ -4,20 +4,20 @@ and macOS.
4
4
5
5
To install, run:
6
6
7
- ``` bash
7
+ ``` shell
8
8
curl -fsSL https://coder.com/install.sh | sh
9
9
```
10
10
11
11
You can preview what occurs during the install process:
12
12
13
- ``` bash
13
+ ``` shell
14
14
curl -fsSL https://coder.com/install.sh | sh -s -- --dry-run
15
15
```
16
16
17
17
You can modify the installation process by including flags. Run the help command
18
18
for reference:
19
19
20
- ``` bash
20
+ ``` shell
21
21
curl -fsSL https://coder.com/install.sh | sh -s -- --help
22
22
```
23
23
@@ -27,87 +27,6 @@ manually via `coder server` or as a system package.
27
27
By default, the Coder server runs on ` http://127.0.0.1:3000 ` and uses a
28
28
[ public tunnel] ( ../admin/configure.md#tunnel ) for workspace connections.
29
29
30
- ## PATH conflicts
31
-
32
- It's possible to end up in situations where you have multiple ` coder ` binaries
33
- in your ` PATH ` , and your system may use a version that you don't intend. Your
34
- ` PATH ` is a variable that tells your shell where to look for programs to run.
35
-
36
- You can check where all of the versions are by running ` which -a coder ` .
37
-
38
- For example, a common conflict on macOS might be between a version installed by
39
- Homebrew, and a version installed manually to the /usr/local/bin directory.
40
-
41
- ``` console
42
- $ which -a coder
43
- /usr/local/bin/coder
44
- /opt/homebrew/bin/coder
45
- ```
46
-
47
- Whichever binary comes first in this list will be used when running ` coder `
48
- commands.
49
-
50
- ### Reordering your PATH
51
-
52
- If you use bash or zsh, you can update your ` PATH ` like this:
53
-
54
- ``` shell
55
- # You might want to add this line to the end of your ~/.bashrc or ~/.zshrc file!
56
- export PATH=" /opt/homebrew/bin:$PATH "
57
- ```
58
-
59
- If you use fish, you can update your ` PATH ` like this:
60
-
61
- ``` shell
62
- # You might want to add this line to the end of your ~/.config/fish/config.fish file!
63
- fish_add_path " /opt/homebrew/bin"
64
- ```
65
-
66
- > ℹ If you ran install.sh with a ` --prefix ` flag, you can replace
67
- > ` /opt/homebrew ` with whatever value you used there. Make sure to leave the
68
- > ` /bin ` at the end!
69
-
70
- Now we can observe that the order has changed:
71
-
72
- ``` console
73
- $ which -a coder
74
- /opt/homebrew/bin/coder
75
- /usr/local/bin/coder
76
- ```
77
-
78
- ### Removing unneeded binaries
79
-
80
- If you want to uninstall a version of ` coder ` that you installed with a package
81
- manager, you can run whichever one of these commands applies:
82
-
83
- ``` shell
84
- # On macOS, with Homebrew installed
85
- brew uninstall coder
86
- ```
87
-
88
- ``` shell
89
- # On Debian/Ubuntu based systems
90
- sudo dpkg -r coder
91
- ```
92
-
93
- ``` shell
94
- # On Fedora/RHEL-like systems
95
- sudo rpm -e coder
96
- ```
97
-
98
- ``` shell
99
- # On Alpine
100
- sudo apk del coder
101
- ```
102
-
103
- If the conflicting binary is not installed by your system package manager, you
104
- can just delete it.
105
-
106
- ``` shell
107
- # You might not need `sudo`, depending on the location
108
- sudo rm /usr/local/bin/coder
109
- ```
110
-
111
30
## Next steps
112
31
113
32
- [ Configuring Coder] ( ../admin/configure.md )
0 commit comments