cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Community Platform Discussions
Connect with fellow community members to discuss general topics related to the Databricks platform, industry trends, and best practices. Share experiences, ask questions, and foster collaboration within the community.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Init script upload issue as file format in workspace using databricks cli

Ashlaiyna
New Contributor

Trying to import init script from local to workspace location using databricks cli via YAML pipeline but it is getting uploaded as notebook.

Need to upload it as file format using cli command as workspace init script should be in file format.

Does anyone have any suggestion on this.

1 REPLY 1

Kaniz_Fatma
Community Manager
Community Manager

Hi @Ashlaiyna , To upload a file to Databricks workspace using Databricks CLI, you can use the databricks workspace import command.

However, since you want to upload it as a file and not as a notebook, you need to specify the --format option as SOURCE

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group