environment create

Create an Environment

codepipes environment create

Create an Environment

codepipes environment create [flags]

Options

  -d, --description string            Environment description
      --dir string                    Directory in source code repo where IaC is (default "/")
      --driver string                 Type source code control system. Valid options are 'github', 'gitlab' or 'git' (default "github")
  -e, --env-var stringArray           Environment variable (specified as name[:s]=value - use multiple times for multiple variables)
      --name string                   Environment name
  -c, --pipeline-config stringArray   Pipeline configuration (specified as name=value - use multiple times for multiple configuration values)
      --pipeline-configfile string    Path to YAML file containing any pipeline configuration
  -p, --policysetid string            Policy Set ID
  -r, --repo string                   Source code repo for this environment
  -v, --revision string               Revision of source control to checkout. Format is <type>:<identifier> e.g. branch:master (default "branch:master")
  -t, --tf-var stringArray            Terraform variable (specified as name[:s]=value - use multiple times for multiple variables)
      --tfversion string              Terraform Version (e.g. 1.1.0)
  -f, --varfile string                File that contains variable defintions (use this for sensitive variables)

Options inherited from parent commands

      --config string     Config file (default is $HOME/.codepipes.yml)
  -D, --debug             Turn on debug mode
      --endpoint string   Endpoint where Code Pipes APIs are running (e.g. api.codepipes.io)
      --help              Show help for command
      --org string        Organization ID
      --proj string       Project ID
      --sslmode           Use https instead of http when calling the API endpoint. Use --sslmode=false to use http. (default true)
      --webapp string     Endpoint for Code Pipes web application. If not set, is determined by replacing 'api' prefix on endpoint flag with 'dash'

SEE ALSO