Skip to main content

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

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

duckhaven_cli-0.2.0.tar.gz (49.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

duckhaven_cli-0.2.0-py3-none-any.whl (61.9 kB view details)

Uploaded Python 3

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

Hashes for duckhaven_cli-0.2.0.tar.gz
Algorithm Hash digest
SHA256 976ef7887753ff419661b87d1d9ee31726f3d84d0c965d8dc25849175e5c3e21
MD5 c3df07c1145678c87b0de28de3f480e9
BLAKE2b-256 9661abbefa02e7c21a167c641c696293ebb81523f53b6ef465782c196a0a6e85

See more details on using hashes here.

Provenance

The following attestation bundles were made for duckhaven_cli-0.2.0.tar.gz:

Publisher: release.yml on tamasmrtn/duckhaven-clients

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for duckhaven_cli-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 babb7a508945521c38eb7d68e38761cb0ef43164a1a5f3db024d31c6435657ba
MD5 d3b4db35c806a46a9419872258f838b8
BLAKE2b-256 013dbe348a76a7f6022675a24c89ef4fc15b6161e9d99e0c24ce70d85176b058

See more details on using hashes here.

Provenance

The following attestation bundles were made for duckhaven_cli-0.2.0-py3-none-any.whl:

Publisher: release.yml on tamasmrtn/duckhaven-clients

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page