Function: createWorkspaceClient()
Function: createWorkspaceClient()
function createWorkspaceClient(opts: WorkspaceClientOptions): WorkspaceClient;Construct an AppKit workspace client.
Auth resolution:
- If
opts.tokenis set, uses PAT credentials. - Otherwise walks the SDK default auth chain (env vars + ~/.databrickscfg).
Host resolution:
- Explicit
opts.host→ use it. - Otherwise resolved by the SDK from
DATABRICKS_HOST/ profile.
Parameters
| Parameter | Type |
|---|---|
opts | WorkspaceClientOptions |