This repository has been archived by the owner on Aug 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Unhide create-from-config (#306)
- Loading branch information
Showing
3 changed files
with
51 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
## coder envs create-from-config | ||
|
||
create a new environment from a template | ||
|
||
### Synopsis | ||
|
||
Create a new Coder environment using a Workspaces As Code template. | ||
|
||
``` | ||
coder envs create-from-config [flags] | ||
``` | ||
|
||
### Examples | ||
|
||
``` | ||
# create a new environment from git repository | ||
coder envs create-from-config --name="dev-env" --repo-url https://github.com/cdr/m --ref my-branch | ||
coder envs create-from-config --name="dev-env" -f coder.yaml | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
-f, --filepath string path to local template file. | ||
--follow follow buildlog after initiating rebuild | ||
-h, --help help for create-from-config | ||
--name string name of the environment to be created | ||
-o, --org string name of the organization the environment should be created under. | ||
--provider string name of Workspace Provider with which to create the environment | ||
--ref string git reference to pull template from. May be a branch, tag, or commit hash. (default "master") | ||
-r, --repo-url string URL of the git repository to pull the config from. Config file must live in '.coder/coder.yaml'. | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
-v, --verbose show verbose output | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [coder envs](coder_envs.md) - Interact with Coder environments | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters