Skip to main content

CLI for the MotherDuck REST API

Project description

dkdc-md-cli

CLI for the MotherDuck REST API.

Install

Pre-built binaries are available for Linux and macOS via Python. Windows users should install via cargo or use macOS/Linux.

# Python (PyPI) — includes pre-built wheels for Linux and macOS
uv tool install dkdc-md-cli
uvx --from dkdc-md-cli md

# Rust (crates.io)
cargo install dkdc-md-cli

Authentication

Set a MotherDuck API token via environment variable:

export MOTHERDUCK_TOKEN="your-token-here"

Token resolution order (first non-empty wins):

  1. --token flag (pass - to read from stdin)
  2. motherduck_token
  3. MOTHERDUCK_TOKEN
  4. motherduck_api_key
  5. MOTHERDUCK_API_KEY

You can also pass in --token to commands.

Usage

md [--output text|json] [--token TOKEN] [--yes] <command>

Global flags

Flag Short Description
--output -o Output format: text (default) or json
--token API token (overrides env vars; - reads from stdin)
--yes -y Skip confirmation prompts

service-account

# Create a service account
md service-account create <username>

# Delete a service account (prompts for confirmation)
md service-account delete <username>

token

# List tokens for a user
md token list <username>

# Create a new token
md token create <username> --name <name> [--ttl <seconds>] [--token-type <type>]

# Delete a token (prompts for confirmation)
md token delete <username> <token_id>

--ttl: time-to-live in seconds (300–31536000). Omit for no expiration.

--token-type: read-write (default) or read-scaling.

duckling

# Get current duckling config
md duckling get <username>

# Set duckling config (at least one override required)
md duckling set <username> [--rw-size <size>] [--rs-size <size>] [--flock-size <n>]

Instance sizes: pulse, standard, jumbo, mega, giga.

Flock size: 0–64. duckling set fetches the current config and merges your overrides, so you only need to specify what you're changing.

account

# List active accounts and their ducklings
md account list-active

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dkdc_md_cli-0.1.2.tar.gz (20.7 kB view details)

Uploaded Source

Built Distributions

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

dkdc_md_cli-0.1.2-cp311-abi3-manylinux_2_34_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.11+manylinux: glibc 2.34+ x86-64

dkdc_md_cli-0.1.2-cp311-abi3-manylinux_2_34_aarch64.whl (1.8 MB view details)

Uploaded CPython 3.11+manylinux: glibc 2.34+ ARM64

dkdc_md_cli-0.1.2-cp311-abi3-macosx_11_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.11+macOS 11.0+ ARM64

dkdc_md_cli-0.1.2-cp311-abi3-macosx_10_12_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.11+macOS 10.12+ x86-64

File details

Details for the file dkdc_md_cli-0.1.2.tar.gz.

File metadata

  • Download URL: dkdc_md_cli-0.1.2.tar.gz
  • Upload date:
  • Size: 20.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for dkdc_md_cli-0.1.2.tar.gz
Algorithm Hash digest
SHA256 4ca935d2dc0ab1e25874559023baba96855a4446d1846e0b24fe42c731f3c491
MD5 6dc8a2c32cd6c0d0cec6deff58dcea01
BLAKE2b-256 8255a5b7289c495b3a0c1485d226daf46cfb0a20ba6e2661ccbf418fa523362b

See more details on using hashes here.

Provenance

The following attestation bundles were made for dkdc_md_cli-0.1.2.tar.gz:

Publisher: release-python.yml on lostmygithubaccount/dkdc-md-cli

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

File details

Details for the file dkdc_md_cli-0.1.2-cp311-abi3-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for dkdc_md_cli-0.1.2-cp311-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 12f1ee38728d1ff6966599ef1319bfbd0f188b5e772469cff242fef702f6122c
MD5 dd132f8feb0ec881a34e2426724c54e4
BLAKE2b-256 1f7daf1a284db8707c769c27c0a8284c1d4f38d0cd1bd8a4eca768c20d04fa41

See more details on using hashes here.

Provenance

The following attestation bundles were made for dkdc_md_cli-0.1.2-cp311-abi3-manylinux_2_34_x86_64.whl:

Publisher: release-python.yml on lostmygithubaccount/dkdc-md-cli

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

File details

Details for the file dkdc_md_cli-0.1.2-cp311-abi3-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for dkdc_md_cli-0.1.2-cp311-abi3-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 d702de244dcb2e986eed9d64176ab300fba63fa3342f5d6a7314ba6d64a54aab
MD5 46a862c5c78913ad7b7df12ba65bdffa
BLAKE2b-256 16de2295341619f7227442046572eadb0f60ce1a67647a858e8066b2c35baa0b

See more details on using hashes here.

Provenance

The following attestation bundles were made for dkdc_md_cli-0.1.2-cp311-abi3-manylinux_2_34_aarch64.whl:

Publisher: release-python.yml on lostmygithubaccount/dkdc-md-cli

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

File details

Details for the file dkdc_md_cli-0.1.2-cp311-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for dkdc_md_cli-0.1.2-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 849aa4ddde85d964aa0a97f6190e367ead9121cfcb50584a9c35a588542cef37
MD5 b1839c39f86a2ace3c23a47c9d7153f7
BLAKE2b-256 bd665f304b36da01da9727774a1f4c2bf13e3765d428c9fc454d154265bfd7fb

See more details on using hashes here.

Provenance

The following attestation bundles were made for dkdc_md_cli-0.1.2-cp311-abi3-macosx_11_0_arm64.whl:

Publisher: release-python.yml on lostmygithubaccount/dkdc-md-cli

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

File details

Details for the file dkdc_md_cli-0.1.2-cp311-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for dkdc_md_cli-0.1.2-cp311-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 5c715b275aa27ad17f93f7cc008bb552a40979b151b375cbbdc37a99162248a7
MD5 a9802be58fdc13e40d41ad47f9dd8f93
BLAKE2b-256 00b5a9e8410de060d0fcb94bc1d027716ad80f7bd6107ad20f848ac9e741f027

See more details on using hashes here.

Provenance

The following attestation bundles were made for dkdc_md_cli-0.1.2-cp311-abi3-macosx_10_12_x86_64.whl:

Publisher: release-python.yml on lostmygithubaccount/dkdc-md-cli

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

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page