duckhaven-cli
dh — the command-line interface for DuckHaven.
It gives analysts, CI pipelines and operators scriptable access to DuckHaven's REST API: running SQL, browsing the catalog, publishing dbt lineage and semantic models, managing grants, and operating service accounts, users and agents.
Like every member of this repo it is a pure HTTP client of DuckHaven's public REST
API, authenticating with a Personal Access Token (dh_pat_…). The interactive REPL
holds a SQL session through
duckhaven-sql-connector; everything else,
including one-shot dh sql, goes over the REST API directly, because the one-shot query
route works on deployments where SQL sessions are switched off.
Install
pip install duckhaven-cli
# or, to get an isolated tool install:
uv tool install duckhaven-cli
Getting started
dh auth login --host https://duckhaven.example.com
dh sql -q "select 1"
Documentation
- Command-line quickstart — install, sign in, run a query
- CLI reference — every command and flag
Licence
Apache-2.0. See LICENSE.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file duckhaven_cli-0.2.0.tar.gz.
File metadata
- Download URL: duckhaven_cli-0.2.0.tar.gz
- Upload date:
- Size: 49.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
976ef7887753ff419661b87d1d9ee31726f3d84d0c965d8dc25849175e5c3e21
|
|
| MD5 |
c3df07c1145678c87b0de28de3f480e9
|
|
| BLAKE2b-256 |
9661abbefa02e7c21a167c641c696293ebb81523f53b6ef465782c196a0a6e85
|
Provenance
The following attestation bundles were made for duckhaven_cli-0.2.0.tar.gz:
Publisher:
release.yml on tamasmrtn/duckhaven-clients
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
duckhaven_cli-0.2.0.tar.gz -
Subject digest:
976ef7887753ff419661b87d1d9ee31726f3d84d0c965d8dc25849175e5c3e21 - Sigstore transparency entry: 2771981727
- Sigstore integration time:
-
Permalink:
tamasmrtn/duckhaven-clients@4720c74b67846cfc4d82b8fd6b005d005474287a -
Branch / Tag:
refs/tags/duckhaven-cli-v0.2.0 - Owner: https://github.com/tamasmrtn
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@4720c74b67846cfc4d82b8fd6b005d005474287a -
Trigger Event:
push
-
Statement type:
File details
Details for the file duckhaven_cli-0.2.0-py3-none-any.whl.
File metadata
- Download URL: duckhaven_cli-0.2.0-py3-none-any.whl
- Upload date:
- Size: 61.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
babb7a508945521c38eb7d68e38761cb0ef43164a1a5f3db024d31c6435657ba
|
|
| MD5 |
d3b4db35c806a46a9419872258f838b8
|
|
| BLAKE2b-256 |
013dbe348a76a7f6022675a24c89ef4fc15b6161e9d99e0c24ce70d85176b058
|
Provenance
The following attestation bundles were made for duckhaven_cli-0.2.0-py3-none-any.whl:
Publisher:
release.yml on tamasmrtn/duckhaven-clients
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
duckhaven_cli-0.2.0-py3-none-any.whl -
Subject digest:
babb7a508945521c38eb7d68e38761cb0ef43164a1a5f3db024d31c6435657ba - Sigstore transparency entry: 2771981750
- Sigstore integration time:
-
Permalink:
tamasmrtn/duckhaven-clients@4720c74b67846cfc4d82b8fd6b005d005474287a -
Branch / Tag:
refs/tags/duckhaven-cli-v0.2.0 - Owner: https://github.com/tamasmrtn
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@4720c74b67846cfc4d82b8fd6b005d005474287a -
Trigger Event:
push
-
Statement type: