|
1 |
| -1. Install Coder |
| 1 | +To use Coder you will need to install the Coder server on your infrastructure. |
| 2 | +There are a number of different ways to install Coder, depending on your needs. |
| 3 | + |
| 4 | +<children> |
| 5 | + This page is rendered on https://coder.com/docs/v2/latest/install. Refer to the other documents in the `install/` directory for per-platform instructions. |
| 6 | +</children> |
| 7 | + |
| 8 | +## Install Coder |
2 | 9 |
|
3 | 10 | <div class="tabs">
|
4 | 11 |
|
5 |
| - ## Install Script (Linux/macOS) |
| 12 | +## Install Script (Linux and macOS) |
6 | 13 |
|
7 |
| - The easiest way to install Coder is to use our |
8 |
| - [install script](https://github.com/coder/coder/blob/main/install.sh) for |
9 |
| - Linux and macOS. |
| 14 | +The easiest way to install Coder on Linux and macOS is to use our |
| 15 | +[install script](https://github.com/coder/coder/blob/main/install.sh). |
10 | 16 |
|
11 |
| - ```shell |
12 |
| - curl -fsSL https://coder.com/install.sh | sh |
13 |
| - ``` |
| 17 | +```shell |
| 18 | +curl -fsSL https://coder.com/install.sh | sh |
| 19 | +``` |
14 | 20 |
|
15 |
| - You can preview what occurs during the install process: |
| 21 | +You can preview what occurs during the install process: |
16 | 22 |
|
17 |
| - ```shell |
18 |
| - curl -fsSL https://coder.com/install.sh | sh -s -- --dry-run |
19 |
| - ``` |
| 23 | +```shell |
| 24 | +curl -fsSL https://coder.com/install.sh | sh -s -- --dry-run |
| 25 | +``` |
20 | 26 |
|
21 |
| - You can modify the installation process by including flags. Run the help |
22 |
| - command for reference: |
| 27 | +You can modify the installation process by including flags. Run the help command |
| 28 | +for reference: |
23 | 29 |
|
24 |
| - ```shell |
25 |
| - curl -fsSL https://coder.com/install.sh | sh -s -- --help |
26 |
| - ``` |
| 30 | +```shell |
| 31 | +curl -fsSL https://coder.com/install.sh | sh -s -- --help |
| 32 | +``` |
27 | 33 |
|
28 |
| - ## Homebrew |
| 34 | +## Homebrew (macOS and Linux) |
29 | 35 |
|
30 |
| - Install Coder from our official |
31 |
| - [Homebrew tap](https://github.com/coder/homebrew-coder) |
| 36 | +To install Coder on macOS and Linux, you can use the |
| 37 | +[Homebrew](https://brew.sh/) package manager. |
32 | 38 |
|
33 |
| - ```shell |
34 |
| - brew install coder/coder/coder |
35 |
| - ``` |
| 39 | +Install Coder from our official |
| 40 | +[Homebrew tap](https://github.com/coder/homebrew-coder) |
36 | 41 |
|
37 |
| - ## Windows |
| 42 | +```shell |
| 43 | +brew install coder/coder/coder |
| 44 | +``` |
38 | 45 |
|
39 |
| - Install using |
40 |
| - [`winget`](https://learn.microsoft.com/en-us/windows/package-manager/winget/#use-winget) |
41 |
| - package manager |
| 46 | +## Windows |
42 | 47 |
|
43 |
| - ```powershell |
44 |
| - winget install Coder.Coder |
45 |
| - ``` |
| 48 | +To install Coder on Windows, you can use the |
| 49 | +[`winget`](https://learn.microsoft.com/en-us/windows/package-manager/winget/#use-winget) |
| 50 | +package manager |
46 | 51 |
|
47 |
| - ## System Packages |
| 52 | +```powershell |
| 53 | +winget install Coder.Coder |
| 54 | +``` |
48 | 55 |
|
49 |
| - Download and install one of the following system packages from |
50 |
| - [GitHub releases](https://github.com/coder/coder/releases/latest) and install |
51 |
| - manullay |
| 56 | + <!-- TODO: Replace with direct link to windows installer after we have https://github.com/coder/coder.com/issues/382 --> |
52 | 57 |
|
53 |
| - - .deb (Debian, Ubuntu) |
54 |
| - - .rpm (Fedora, CentOS, RHEL, SUSE) |
55 |
| - - .apk (Alpine) |
56 |
| - - .exe (Windows) |
| 58 | +Or you can use the windows installer from our |
| 59 | +[GitHub releases](https://github.com/coder/coder/releases/latest) |
57 | 60 |
|
58 |
| - ## Binary |
| 61 | +## Linux |
59 | 62 |
|
60 |
| - 1. Download the |
61 |
| - [release archive](https://github.com/coder/coder/releases/latest) |
62 |
| - appropriate for your operating system |
| 63 | +Coder officially maintains packages for the following Linux distributions: |
63 | 64 |
|
64 |
| - 2. Unzip the folder you just downloaded, and move the `coder` executable to a |
65 |
| - location that's on your `PATH` |
| 65 | +- .deb (Debian, Ubuntu) |
| 66 | +- .rpm (Fedora, CentOS, RHEL, SUSE) |
| 67 | +- .apk (Alpine) |
66 | 68 |
|
67 |
| - ```shell |
68 |
| - # ex. macOS and Linux |
69 |
| - mv coder /usr/local/bin |
70 |
| - ``` |
| 69 | + <div class="tabs"> |
71 | 70 |
|
72 |
| - > Windows users: see |
73 |
| - > [this guide](https://answers.microsoft.com/en-us/windows/forum/all/adding-path-variable/97300613-20cb-4d85-8d0e-cc9d3549ba23) |
74 |
| - > for adding folders to `PATH`. |
| 71 | + ## Debian, Ubuntu |
| 72 | + |
| 73 | + Get the latest `.deb` package from our |
| 74 | + [GitHub releases](https://github.com/coder/coder/releases/latest) and install |
| 75 | + it manually or use the following commands to download and install the latest |
| 76 | + `.deb` package. |
| 77 | + |
| 78 | + ```shell |
| 79 | + # Download the latest .deb package from GitHub releases |
| 80 | + URL=$(curl -s https://api.github.com/repos/coder/coder/releases/latest | jq -r '.assets[] | select(.name | endswith("linux_amd64.deb")) | .browser_download_url') |
| 81 | + curl -fsSL $URL -o coder.deb |
| 82 | + # Install the package |
| 83 | + sudo apt install ./coder.deb |
| 84 | + ``` |
| 85 | + |
| 86 | + ## Fedora, CentOS, RHEL, SUSE |
| 87 | + |
| 88 | + Get the latest `.rpm` package from our |
| 89 | + [GitHub releases](https://github.com/coder/coder/releases/latest) and install |
| 90 | + it manually or use the following commands to download and install the latest |
| 91 | + `.rpm` package. |
| 92 | + |
| 93 | + ```shell |
| 94 | + # Download the latest .rpm package from GitHub releases |
| 95 | + URL=$(curl -s https://api.github.com/repos/coder/coder/releases/latest | jq -r '.assets[] | select(.name | endswith("linux_amd64.rpm")) | .browser_download_url') |
| 96 | + curl -fsSL $URL -o coder.rpm |
| 97 | + # Install the package |
| 98 | + sudo yum install ./coder.rpm |
| 99 | + ``` |
| 100 | + |
| 101 | + ## Alpine |
| 102 | + |
| 103 | + Get the latest `.apk` package from our |
| 104 | + [GitHub releases](https://github.com/coder/coder/releases/latest) and install |
| 105 | + it manually or use the following commands to download and install the latest |
| 106 | + `.apk` package. |
| 107 | + |
| 108 | + ```shell |
| 109 | + # Download the latest .apk package from GitHub releases |
| 110 | + URL=$(curl -s https://api.github.com/repos/coder/coder/releases/latest | jq -r '.assets[] | select(.name | endswith("linux_amd64.apk")) | .browser_download_url') |
| 111 | + curl -fsSL $URL -o coder.apk |
| 112 | + # Install the package |
| 113 | + sudo apk add ./coder.apk |
| 114 | + ``` |
75 | 115 |
|
76 | 116 | </div>
|
77 | 117 |
|
78 |
| -2. After installing, start the Coder server manually via `coder server` or as a |
| 118 | +## Manual |
| 119 | + |
| 120 | +Retrieve the latest release from our GitHub releases page and install it |
| 121 | +manually. |
| 122 | + |
| 123 | +1. Download the |
| 124 | + [release archive](https://github.com/coder/coder/releases/latest) |
| 125 | + appropriate for your operating system |
| 126 | + |
| 127 | +2. Unzip the folder you just downloaded, and move the `coder` executable to a |
| 128 | + location that's on your `PATH` |
| 129 | + |
| 130 | +```shell |
| 131 | +# ex. macOS and Linux |
| 132 | +mv coder /usr/local/bin |
| 133 | +``` |
| 134 | + |
| 135 | +> Windows users: see |
| 136 | +> [this guide](https://answers.microsoft.com/en-us/windows/forum/all/adding-path-variable/97300613-20cb-4d85-8d0e-cc9d3549ba23) |
| 137 | +> for adding folders to `PATH`. |
| 138 | +
|
| 139 | +</div> |
| 140 | + |
| 141 | +## Verify installation |
| 142 | + |
| 143 | +Verify that the installation was successful by opening a new terminal and |
| 144 | +running: |
| 145 | + |
| 146 | +```console |
| 147 | +coder --help |
| 148 | +oder --help |
| 149 | +coder v2.6.0+b3e3521 |
| 150 | + |
| 151 | +USAGE: |
| 152 | + coder [global-flags] <subcommand> |
| 153 | + |
| 154 | + Coder v2.6.0+b3e3521 — A tool for provisioning self-hosted development |
| 155 | + environments with Terraform. |
| 156 | + - Start a Coder server: |
| 157 | + |
| 158 | + $ coder server |
| 159 | + |
| 160 | + - Get started by creating a template from an example: |
| 161 | + |
| 162 | + $ coder templates init |
| 163 | +... |
| 164 | +``` |
| 165 | + |
| 166 | +## Start Coder |
| 167 | + |
| 168 | +1. After installing, start the Coder server manually via `coder server` or as a |
79 | 169 | system package.
|
80 | 170 |
|
81 | 171 | <div class="tabs">
|
|
114 | 204 | By default, the Coder server runs on `http://127.0.0.1:3000` and uses a
|
115 | 205 | [public tunnel](../admin/configure.md#tunnel) for workspace connections.
|
116 | 206 |
|
117 |
| -3. Visit the Coder URL in the logs to set up your first account, or use the CLI |
| 207 | +2. Visit the Coder URL in the logs to set up your first account, or use the CLI |
118 | 208 | to create your first user.
|
119 | 209 |
|
120 | 210 | ```shell
|
121 | 211 | coder login <access url>
|
122 | 212 | ```
|
123 | 213 |
|
124 |
| -There are a number of other different methods to install and run Coder: |
125 |
| - |
126 |
| -<children> |
127 |
| - This page is rendered on https://coder.com/docs/v2/latest/install. Refer to the other documents in the `install/` directory for per-platform instructions. |
128 |
| -</children> |
129 |
| - |
130 | 214 | ## Next steps
|
131 | 215 |
|
132 | 216 | - [Configuring Coder](../admin/configure.md)
|
|
0 commit comments