Files
coder/docs/quickstart.md
T

51 lines
1.4 KiB
Markdown
Raw Normal View History

2022-06-08 08:37:03 -07:00
# Quickstart
2022-06-15 14:52:48 -05:00
## Prerequisites
Please [install Coder](./install.md) before proceeding with the steps outlined in this article.
2022-06-08 08:37:03 -07:00
## Creating your first template and workspace
In a new terminal window, run the following to copy a sample template:
```bash
coder templates init
```
2022-06-15 14:52:48 -05:00
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.
2022-06-08 08:37:03 -07:00
Create a workspace using your template:
```bash
coder create --template="yourTemplate" <workspaceName>
```
Connect to your workspace via SSH:
```bash
coder ssh <workspaceName>
```
2022-06-15 14:52:48 -05:00
You can also access your workspace using the **access URL** you provided when
deploying Coder (if you're using a temporary deployment and you opted to use
Coder's tunnel, use the access URL you were provided). Log in with the admin
credentials provided to you by Coder.
![Coder Web UI with code-server](images/code-server.png)
2022-06-08 08:37:03 -07:00
## Modifying templates
2022-06-15 14:52:48 -05:00
You can edit the Terraform template as follows:
2022-06-08 08:37:03 -07:00
```sh
coder templates init
2022-06-15 14:52:48 -05:00
cd gcp-linux # modify this line as needed to access the template
2022-06-08 08:37:03 -07:00
vim main.tf
2022-06-15 14:52:48 -05:00
coder templates update gcp-linux # updates the template
2022-06-08 08:37:03 -07:00
```