mirror of https://github.com/databricks/cli.git
a686542b1f
Allow for `labs.yml` definition in target repositories: ``` --- name: dbx context: workspace description: Databricks CLI extensions hooks: install: install.py entrypoint: main.py commands: - name: foo description: foo command flags: - name: first description: first flag description - name: second description: second flag description - name: bar description: bar command flags: - name: first description: first flag description - name: second description: second flag description ``` and simple command entry points that are aware of both CLI flags and Unified Authentication env variables: ``` import os, sys, json print(f'host is {os.environ["DATABRICKS_HOST"]}') payload = json.loads(sys.argv[1]) print(f'[{payload["command"]}]: flags are {payload["flags"]}') answer = input('What is your name? ') print(f'got answer: {answer}') answer = input('Preferences? ') print(f'got answer: {answer}') ``` |
||
---|---|---|
.codegen | ||
.github | ||
.vscode | ||
bundle | ||
cmd | ||
docs | ||
folders | ||
internal | ||
libs | ||
python | ||
.codegen.json | ||
.gitattributes | ||
.gitignore | ||
.goreleaser.yaml | ||
CHANGELOG.md | ||
LICENSE | ||
Makefile | ||
NOTICE | ||
README.md | ||
go.mod | ||
go.sum | ||
main.go | ||
main_test.go |
README.md
Databricks CLI
This project is in Public Preview.
Documentation about the full REST API coverage is available in the docs folder.
Documentation is available at https://docs.databricks.com/dev-tools/cli/databricks-cli.html.
Installation
This CLI is packaged as a dependency-free binary executable and may be located in any directory. See https://github.com/databricks/cli/releases for releases and the docs pages for installation instructions.
Authentication
This CLI follows the Databricks Unified Authentication principles.
You can find a detailed description at https://github.com/databricks/databricks-sdk-go#authentication.