dpg init

dpg init

Scaffold a new DPG project

Synopsis

Create the directory structure and configuration files for a new DPG project.

If dir is omitted, the current working directory is used. Existing files are never overwritten.

dpg init [dir] [flags]

Options

      --cluster string    cluster directory name (default "production")
      --database string   database directory name (default "myapp")
  -h, --help              help for init
      --schema string     default schema name (default "public")
      --url string        PostgreSQL connection URL (can be set later)

Options inherited from parent commands

  -C, --dir string   project root directory (default: current working directory)
      --env string   path to .env file (default: .env in project root, if present)

SEE ALSO

  • dpg - Declarative PG — schema compiler and migration tool
Auto generated by spf13/cobra on 26-Aug-2026