2022-06-08 08:37:03 -07:00
|
|
|
# Quickstart
|
|
|
|
|
|
2022-07-11 12:05:05 -05:00
|
|
|
See our [Docker quickstart](./quickstart/docker.md) for the easiest
|
|
|
|
|
possible way to use Coder.
|
2022-06-15 14:52:48 -05:00
|
|
|
|
2022-08-10 21:53:35 -05:00
|
|
|
## Generic Quickstart
|
|
|
|
|
|
|
|
|
|
Please [install Coder](../install.md) before proceeding with the steps below.
|
|
|
|
|
|
2022-08-15 14:40:19 -05:00
|
|
|
## First time owner user setup
|
2022-08-10 21:53:35 -05:00
|
|
|
|
|
|
|
|
1. Run `coder login <your Access URL>` in a new terminal and follow the
|
2022-08-15 14:40:19 -05:00
|
|
|
interactive instructions to create your owner user and password.
|
2022-08-10 21:53:35 -05:00
|
|
|
|
|
|
|
|
> If using `coder server --tunnel`, the Access URL appears in the terminal logs.
|
|
|
|
|
|
|
|
|
|
## Templates
|
|
|
|
|
|
|
|
|
|
To get started using templates, run the following command to generate a sample template:
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
coder templates init
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Follow the CLI instructions to select an example that you can modify for your
|
|
|
|
|
specific usage (e.g., a template to **Develop code-server in Docker**):
|
|
|
|
|
|
|
|
|
|
1. Navigate into your new templates folder and create your first template using
|
|
|
|
|
the provided command (e.g., `cd ./docker-code-server && coder templates create`)
|
|
|
|
|
|
|
|
|
|
1. Answer the CLI prompts; when done, confirm that you want to create your template.
|
|
|
|
|
|
|
|
|
|
## Create a workspace
|
|
|
|
|
|
|
|
|
|
Now, create a workspace using your template:
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
coder create --template="yourTemplate" <workspaceName>
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Connect to your workspace via SSH:
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
coder ssh <workspaceName>
|
|
|
|
|
```
|
|
|
|
|
|
2022-08-18 18:47:12 -05:00
|
|
|
To access your workspace in the Coder dashboard, navigate to the [configured access URL](./install/configure.md),
|
2022-08-15 14:40:19 -05:00
|
|
|
and log in with the owner credentials provided to you by Coder.
|
2022-08-10 21:53:35 -05:00
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
You can also create workspaces using the access URL and the Templates UI.
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
## Modifying templates
|
|
|
|
|
|
|
|
|
|
You can edit the Terraform template as follows:
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
coder templates init
|
|
|
|
|
cd gcp-linux # modify this line as needed to access the template
|
|
|
|
|
vim main.tf
|
2022-08-16 09:52:31 -05:00
|
|
|
coder templates push gcp-linux # updates the template
|
2022-08-10 21:53:35 -05:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Up Next
|
|
|
|
|
|
|
|
|
|
Learn about [templates](../templates.md).
|