# `ok data init`

Initialize a new Databricks bundle using Oslo kommune template

## Synopsis

Initialize a new Databricks bundle with the Oslo kommune template as default.

The TEMPLATE\_PATH is optional. If not provided, uses the Oslo kommune custom
template. You can override the default template URL with the DATA\_TEMPLATE\_URL
environment variable.

This command is a wrapper around `databricks bundle init` that uses Oslo
kommune's standard Databricks project template by default, while still allowing
you to use any other template (built-in or custom) by specifying it explicitly.

```sh
ok data init [TEMPLATE_PATH] [flags]
```

## Examples

```sh
  # Use Oslo kommune template (default)
  ok data init

  # Use built-in Python template
  ok data init default-python

  # Use custom Git template
  ok data init github.com/my/template

  # Specify output directory
  ok data init --output-dir ./my-project

  # Override default template via environment variable
  DATA_TEMPLATE_URL=custom/url ok data init

  # Use specific branch of template
  ok data init --branch main

  # Use specific tag of template
  ok data init --tag v1.0.0
```

## Options

```sh
      --branch string         Git branch to use for template initialization
      --config-file string    JSON file containing key value pairs of input parameters
  -h, --help                  help for init
      --output-dir string     Directory to write the initialized template to
      --tag string            Git tag to use for template initialization
      --template-dir string   Directory path within a Git repository containing the template
```

## See also

[`ok data`](ok_data.md) - Group of data platform related commands.
