mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat(cli): add --id parameter to templates init command (#7116)
This PR makes the following changes: - Adds an --id parameter to coder templates init so that you can non-interactively initialize a specific example template by ID (e.g. folder name) - Updates develop.sh and lima/coder.yaml to use this parameter to select the docker example template.
This commit is contained in:
@@ -7,5 +7,15 @@ Get started with a templated template.
|
||||
## Usage
|
||||
|
||||
```console
|
||||
coder templates init [directory]
|
||||
coder templates init [flags] [directory]
|
||||
```
|
||||
|
||||
## Options
|
||||
|
||||
### --id
|
||||
|
||||
| | |
|
||||
| ---- | ---------------------------- | --------- | ----------- | ----------- | -------- | ------ | -------------------- | ---------------- | --------- | ---------------- | ----------- | ------------------ |
|
||||
| Type | <code>enum[aws-ecs-container | aws-linux | aws-windows | azure-linux | do-linux | docker | docker-with-dotfiles | fly-docker-image | gcp-linux | gcp-vm-container | gcp-windows | kubernetes]</code> |
|
||||
|
||||
Specify a given example template by ID.
|
||||
|
||||
Reference in New Issue
Block a user