|
1 | 1 | # Workspaces
|
2 | 2 |
|
3 |
| -Coder users create workspaces |
| 3 | +Workspaces contain the dependencies, IDEs, and configuration information needed for software development. |
4 | 4 |
|
5 |
| -## Managing workspaces |
| 5 | +## Create workspaces |
| 6 | + |
| 7 | +Each Coder user has their own workspaces, created from a shared [template](./templates.md). |
| 8 | + |
| 9 | +```sh |
| 10 | +# create a workspace from template, specify any variables |
| 11 | +coder workspaces create <workspace-name> |
| 12 | + |
| 13 | +# show the resources behind the workspace, and how to connect |
| 14 | +coder workspaces show <workspace-name> |
| 15 | +``` |
| 16 | + |
| 17 | +## Connect with SSH |
| 18 | + |
| 19 | +Once Coder workspaces are added to your SSH hosts, you can connect from any IDE with remote development support. |
| 20 | + |
| 21 | +```sh |
| 22 | +coder config-ssh |
| 23 | + |
| 24 | +ssh coder.<workspace-name> |
| 25 | +``` |
| 26 | + |
| 27 | +## Editors and IDEs |
| 28 | + |
| 29 | +The following desktop IDEs have been tested with Coder. Any IDE with SSH support should work! |
| 30 | + |
| 31 | +- VS Code (with [Remote - SSH](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-ssh) extension) |
| 32 | +- JetBrains (with [Gateway](https://www.jetbrains.com/help/idea/remote-development-a.html#launch_gateway) installed) |
| 33 | + - IntelliJ IDEA |
| 34 | + - CLion |
| 35 | + - GoLand |
| 36 | + - PyCharm |
| 37 | + - Rider |
| 38 | + - RubyMine |
| 39 | + - WebStorm |
| 40 | + |
| 41 | +## Workspace lifecycle |
| 42 | + |
| 43 | +Workspaces in Coder are started and stopped, often based on activity or when a [template update](./templates.md#manage-templates) is available. |
| 44 | + |
| 45 | +While the exact behavior depends on the template, resources are often destroyed and re-created when a workspace is restarted. For more details, see [persistent and ephemeral resources](./templates.md#persistent-and-ephemeral-resources). |
| 46 | + |
| 47 | +> ⚠️ To avoid data loss, reference your template documentation to see where to store files, install software, etc. Default templates are documented in [../examples](../examples/). |
| 48 | +> |
| 49 | +> You can use `coder workspace show <workspace-name>` to see which resources are persistent vs ephemeral. |
| 50 | +
|
| 51 | +When a workspace is deleted, all of the workspace's resources are deleted. |
| 52 | + |
| 53 | +## Updating workspaces |
| 54 | + |
| 55 | +Use the following command to update a workspace to the latest version of a template. The workspace will be stopped and started. |
| 56 | + |
| 57 | +```sh |
| 58 | +coder workspaces update <workspace-name> |
| 59 | +``` |
0 commit comments