ize init

Initialize project

Synopsis

Initialize a new ize project from a template

ize init [flags] <path>

Examples

  # Init project from url
  ize init --template https://github.com/<org>/<repo>
  
  # Init project from internal examples (https://github.com/hazelops/ize/tree/main/examples)
  ize init --template simple-monorepo
  
  # Display all internal templates
  ize init --list

Options

  -h, --help              help for init
      --list              show list of examples
      --skip-examples     generate ize.toml without commented examples
      --template string   set template (url or internal)

Options inherited from parent commands

  -p, --aws-profile string         (required) set AWS profile (overrides value in ize.toml and IZE_AWS_PROFILE / AWS_PROFILE if any of them are set)
  -r, --aws-region string          (required) set AWS region (overrides value in ize.toml and IZE_AWS_REGION / AWS_REGION if any of them are set)
  -c, --config-file string         set config file name
  -e, --env string                 (required) set environment name (overrides value set in IZE_ENV / ENV if any of them are set)
  -l, --log-level string           set log level. Possible levels: info, debug, trace, panic, warn, error, fatal(default)
  -n, --namespace string           (required) set namespace (overrides value in ize.toml and IZE_NAMESPACE / NAMESPACE if any of them are set)
      --plain-text-output          enable plain text output
      --prefer-runtime string      set prefer runtime (native, docker or docker-arm64) (default "native")
      --terraform-version string   set terraform-version

SEE ALSO

Auto generated by spf13/cobra on 28-Jan-2025