Skip to main content

Create a Databricks app from a template

Create a Databricks app quickly by starting from a template. The UI guides you through selecting a framework, naming your app, and configuring required resources. Once you create the app, Databricks deploys it with example code and setup instructions to help you begin development locally.

  1. In the sidebar, click New Icon New, then select App from the menu.

  2. Under Install from a template, click the tab for your preferred framework, and select a template from the list.

  3. Configure the required resources that your app needs to function properly. See Add resources to a Databricks app.

  4. (Optional) Choose a compute size for the app. See Configure the compute size for a Databricks app.

    Beta

    App compute sizing is in Beta.

  5. Click Next and review the app and user authorization settings.

  6. Click Next.

  7. Enter an app name and optional description.

    note
    • You can’t change an app name after you create it.
    • All users with access to the Databricks workspace can view app names and deployment history.
    • Avoid including sensitive information in app names.
    • Each app name must be unique within the workspace and can only contain lowercase letters, numbers, and hyphens.
  8. Click Install.

Databricks Apps creates and deploys your app, including example code from the template and necessary configuration.

The app details page shows the following:

  • The status of the app creation and deployment.
  • Instructions for continuing development locally, including copying app artifacts to your environment and syncing changes back to the Databricks workspace.

View the details for a templated Databricks app

To learn how to set up your local development environment and update app code, see Develop Databricks apps.

Copy artifacts to your local environment

To copy app artifacts from your workspace to your local development environment, use the Databricks CLI:

Bash
databricks workspace export-dir <workspace-path> <target-path>

Replace the following in the command:

  • <workspace-path> with the path to the workspace files directory that contains your app code and artifacts.
  • <target-path> with a path in your local environment to copy the files to.