databricks-cli/doc/project-lifecycle.md

1.4 KiB

Project Lifecycle

Project lifecycle consists of different execution phases. This document aims at describing them as toroughly as possible.

init

bricks init creates a databricks.yml file in the directory, where bricks CLI was invoked. It walks you through the interactive command prompts. The goal of this stage is to setup project flavor and connectivity to a Databricks workspapce.

prepare

bricks prepare prepares the local filesystem for the following lifecycle stages, like rolling out the relevant Virtual Environment for Python projects.

build

bricks build triggers the relevant commands to package artifacts, like Java or Scala JARs or Python Wheels. It's also possible to have a multi-flavor project, like Mosaic, where built Wheel depends on a built JAR.

upload

bricks upload takes the artifacts created by bricks build and uploads them to a path following configured isolation level.

deploy

.. creates clusters

install

bricks install takes remote paths created by bricks upload for artifacts created by bricks build and installs them on Development Cluster following the configured isolation level.