Import / Export Azure Databricks Notebooks
1 min readJun 10, 2019
Goal: Export and import Azure Databricks Notebooks using Databricks CLI.
Export a specific Azure Databricks Notebook in HTML Format.
databricks workspace export -f HTML /Test_folder/MY_NOTEBOOK C:\Users\caio.f.moreno\Desktop\DATABRICKS_NOTEBOOKS\MY_NOTEBOOK.HTML
Export an entire Azure Databricks folder (the files will be exported in .py, .scala, .r format)
databricks workspace export_dir /Test_folder/ C:\Users\caio.f.moreno\Desktop\DATABRICKS_NOTEBOOKS\
Import an entire Azure Databricks folder
databricks workspace import_dir C:\Users\caio.f.moreno\Desktop\DATABRICKS_NOTEBOOKS /Test_folder