Note
此資訊適用於 Databricks CLI 版本 0.205 及以上。 Databricks CLI 處於 公開預覽狀態。
Databricks CLI 的使用受限於 Databricks 授權 和 Databricks 隱私權聲明,包括任何使用數據條款。
git-credentials 內的命令群組可讓您註冊 Databricks 的個人存取權杖,以代表使用者執行 Git 作業。 請參閱 從 Git 提供者取得存取令牌。
Databricks Git-credentials 新增
為使用者建立 Git 憑證條目。 每個使用者只支援一個 Git 認證,因此如果項目已經存在,任何建立認證嘗試都會失敗。 使用 update 命令來更新現有的認證,或刪除命令來刪除現有的認證。
databricks git-credentials create GIT_PROVIDER [flags]
Arguments
GIT_PROVIDER
Git 提供者。 此欄位不區分大小寫。 可用的 Git 提供者包括 gitHub、bitbucketCloud、gitLab、azureDevOpsServices、gitHubEnterprise、bitbucketServer、gitLabEnterpriseEdition 和 awsCodeCommit。
選項
--git-email string
與您的 Git 提供者帳戶一起提供的電子郵件,視您使用的提供者而定。
--git-username string
Git 提供者帳戶提供的使用者名稱,視您使用的提供者而定。
--json JSON
內嵌的 JSON 字串或 @path 整合至包含要求內容的 JSON 檔案。
--personal-access-token string
用來向對應 Git 提供者進行驗證的個人存取令牌。
使用 Databricks 刪除 Git 凭证
刪除指定的 Git 認證。
databricks git-credentials delete CREDENTIAL_ID [flags]
Arguments
CREDENTIAL_ID
用於存取的對應憑證標識碼。
選項
databricks git-credentials 取得
使用指定的認證識別碼取得 Git 認證。
databricks git-credentials get CREDENTIAL_ID [flags]
Arguments
CREDENTIAL_ID
用於存取的對應憑證標識碼。
選項
databricks git-credentials 清單
列出呼叫使用者的 Git 認證。
databricks git-credentials list [flags]
選項
databricks git-credentials 更新
更新指定的 Git 認證。
databricks git-credentials update CREDENTIAL_ID GIT_PROVIDER [flags]
Arguments
CREDENTIAL_ID
用於存取的對應憑證標識碼。
GIT_PROVIDER
Git 提供者。 此欄位不區分大小寫。 可用的 Git 提供者包括 gitHub、bitbucketCloud、gitLab、azureDevOpsServices、gitHubEnterprise、bitbucketServer、gitLabEnterpriseEdition 和 awsCodeCommit。
選項
--git-email string
與您的 Git 提供者帳戶一起提供的電子郵件,視您使用的提供者而定。
--git-username string
Git 提供者帳戶提供的使用者名稱,視您使用的提供者而定。
--json JSON
內嵌的 JSON 字串或 @path 整合至包含要求內容的 JSON 檔案。
--personal-access-token string
用來向對應 Git 提供者進行驗證的個人存取令牌。
全域旗標
--debug
是否要啟用偵錯記錄。
-h 或 --help
顯示 Databricks CLI、相關命令群組或相關命令的幫助說明。
--log-file 字串
字串,表示要寫入輸出記錄檔的檔案。 若未指定此旗標,則預設值是將輸出記錄寫入 stderr。
--log-format 格式
記錄格式類型,text 或 json。 預設值是 text。
--log-level 字串
表示日誌格式層級的字串。 若未指定,則日誌的格式層級功能將被停用。
-o, --output 類型
指令輸出類型,text 或 json。 預設值是 text。
-p, --profile 字串
用於執行命令的~/.databrickscfg檔案中的配置檔名稱。 如果未指定此旗標,則如果存在,則會使用名為 DEFAULT 的配置檔。
--progress-format 格式
顯示進度記錄的格式:default、、appendinplace、 或json
-t, --target 字串
如果適用,要使用的套件組合目標