Skip to main content
ubx init creates a new ubx project directory with a ubx.yaml config file and a starter stack.iac.

Usage

ubx init [project-name]

Example

ubx init my-platform
cd my-platform
Creates:
my-platform/
  ubx.yaml      # project config
  stack.iac     # starter infrastructure file
  .ubxignore    # excludes .ubx/ from compilation
  .gitignore    # excludes .ubx/ from git

Generated ubx.yaml

project:    my-platform
backend:    file://.ubx/state
defaultEnv: dev

Generated stack.iac

input "env" {
  type    = "string"
  default = "dev"
}

Next Steps

ubx validate   # check for errors
ubx plan       # preview what will deploy
ubx apply      # deploy