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

Add envs create command #149

Merged
merged 1 commit into from
Oct 22, 2020
Merged

Add envs create command #149

merged 1 commit into from
Oct 22, 2020

Conversation

fuskovic
Copy link
Contributor

@fuskovic fuskovic commented Oct 21, 2020

Usage

Adds the create command to the envs command.

Create a new environment under the active user.

Usage:
  coder envs create [environment_name] [flags]

Examples:
# create a new environment using default resource amounts
coder envs create --image id-of-imported-image my-env-name

# create a new environment using custom resource amounts
coder envs create --cores 4 --disk 100 --memory 8 --image id-of-imported-image --org id-of-existing-organization my-env-name

# using short-hand flags.
coder envs create -c 4 -d 100 -m 8 -i id-of-imported-image -o id-of-existing-organization my-env-name

Flags:
  -c, --cpu float32      number of cpu cores the environment should be provisioned with. (default 1)
  -d, --disk int         GB of disk storage an environment should be provisioned with. (default 10)
      --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     ID of the image to base the environment off of.
  -m, --memory float32   GB of RAM an environment should be provisioned with. (default 1)
  -o, --org string       ID of the organization the environment should be created under. (default "default")
  -t, --tag string       tag of the image the environment will be based off of. (default "latest")

Example:

Create a simple environment with default resource values

default_resource_amounts

Create a new environment with custom resource values.

custom_resource_amounts

@fuskovic fuskovic marked this pull request as draft October 21, 2020 13:01
@fuskovic fuskovic force-pushed the faris/ch1867/coder-envs-create branch from 06b2819 to 5c51b63 Compare October 21, 2020 20:51
@fuskovic fuskovic marked this pull request as ready for review October 21, 2020 20:55
@fuskovic fuskovic requested a review from cmoog October 21, 2020 20:55
@fuskovic fuskovic force-pushed the faris/ch1867/coder-envs-create branch 5 times, most recently from 8fc1d63 to 87b9aaf Compare October 22, 2020 14:36
@fuskovic fuskovic requested a review from cmoog October 22, 2020 14:51
Copy link
Contributor

@cmoog cmoog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few fix-ups then it's good to go.

@fuskovic fuskovic force-pushed the faris/ch1867/coder-envs-create branch from cfbf472 to bb0f544 Compare October 22, 2020 15:15
@fuskovic fuskovic force-pushed the faris/ch1867/coder-envs-create branch from 8719c5d to 2c14487 Compare October 22, 2020 15:16
@fuskovic fuskovic merged commit 717ad15 into master Oct 22, 2020
@cmoog cmoog deleted the faris/ch1867/coder-envs-create branch October 22, 2020 16:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants