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.
Examples
# 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
--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 - Group of data platform related commands.