Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Unide envs (create|edit) commands #168

Merged
merged 6 commits into from
Nov 4, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup! Style cleanup
  • Loading branch information
cmoog committed Nov 4, 2020
commit 35d2807e8771736e916c24743644865cdd469d63
2 changes: 2 additions & 0 deletions docs/coder_envs.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ Perform operations on the Coder environments owned by the active user.
### SEE ALSO

* [coder](coder.md) - coder provides a CLI for working with an existing Coder Enterprise installation
* [coder envs create](coder_envs_create.md) - create a new environment.
* [coder envs edit](coder_envs_edit.md) - edit an existing environment and initiate a rebuild.
* [coder envs ls](coder_envs_ls.md) - list all environments owned by the active user
* [coder envs rebuild](coder_envs_rebuild.md) - rebuild a Coder environment
* [coder envs rm](coder_envs_rm.md) - remove Coder environments by name
Expand Down
45 changes: 45 additions & 0 deletions docs/coder_envs_create.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
## coder envs create

create a new environment.

### Synopsis

Create a new Coder environment.

```
coder envs create [environment_name] [flags]
```

### Examples

```
# create a new environment using default resource amounts
coder envs create my-new-env --image ubuntu
coder envs create my-new-powerful-env --cpu 12 --disk 100 --memory 16 --image ubuntu
```

### Options

```
-c, --cpu float32 number of cpu cores the environment should be provisioned with.
-d, --disk int GB of disk storage an environment should be provisioned with.
--follow follow buildlog after initiating rebuild
-g, --gpus int number GPUs an environment should be provisioned with.
-h, --help help for create
-i, --image string name of the image to base the environment off of.
-m, --memory float32 GB of RAM an environment should be provisioned with.
-o, --org string ID of the organization the environment should be created under.
-t, --tag string tag of the image the environment will be based off of. (default "latest")
```

### Options inherited from parent commands

```
--user string Specify the user whose resources to target (default "me")
-v, --verbose show verbose output
```

### SEE ALSO

* [coder envs](coder_envs.md) - Interact with Coder environments

45 changes: 45 additions & 0 deletions docs/coder_envs_edit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
## coder envs edit

edit an existing environment and initiate a rebuild.

### Synopsis

Edit an existing environment and initate a rebuild.

```
coder envs edit [flags]
```

### Examples

```
coder envs edit back-end-env --cpu 4

coder envs edit back-end-env --disk 20
```

### Options

```
-c, --cpu float32 The number of cpu cores the environment should be provisioned with.
-d, --disk int The amount of disk storage an environment should be provisioned with.
--follow follow buildlog after initiating rebuild
-g, --gpu int The amount of disk storage to provision the environment with.
-h, --help help for edit
-i, --image string name of the image you want the environment to be based off of.
-m, --memory float32 The amount of RAM an environment should be provisioned with.
-o, --org string name of the organization the environment should be created under.
-t, --tag string image tag of the image you want to base the environment off of. (default "latest")
```

### Options inherited from parent commands

```
--user string Specify the user whose resources to target (default "me")
-v, --verbose show verbose output
```

### SEE ALSO

* [coder envs](coder_envs.md) - Interact with Coder environments