UNPKG

databricks-cli

Version:

A CLI tool for quick Databricks tasks

60 lines (44 loc) 870 B
# Databricks CLI A command-line interface for quick Databricks tasks using the Databricks SQL API. ## Installation ```bash npm install -g databricks-cli ``` Or use it directly with npx: ```bash npx databricks-cli <command> ``` ## Setup Before using the CLI, you need to configure it with your Databricks credentials: ```bash npx databricks-cli init ``` This will prompt you for: - Databricks SQL warehouse hostname - Access token - HTTP Path (optional) ## Available Commands ### Initialize Configuration ```bash npx databricks-cli init ``` ### Describe Table ```bash npx databricks-cli describe-table --table <table_name> [--schema <schema_name>] ``` ## Development 1. Clone the repository 2. Install dependencies: ```bash npm install ``` 3. Build the project: ```bash npm run build ``` 4. Run in development mode: ```bash npm run dev ``` ## License MIT