Skip to main content

CLI for the MotherDuck REST API

Project description

MotherDuck CLI

GitHub Release PyPI crates.io CI License: MIT

CLI for the MotherDuck REST API.

Important: This is a personal project. I am not affiliated with MotherDuck.

Install

Recommended:

curl -LsSf https://dkdc.sh/md-cli/install.sh | sh

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

uv:

uv tool install dkdc-md-cli

cargo:

cargo install dkdc-md-cli

Either option will install the md command globally. You can use uvx to run it without installing:

uvx --from dkdc-md-cli md

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

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.2.1.tar.gz (16.8 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.2.1-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.2.1-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.2.1-cp311-abi3-macosx_11_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.11+macOS 11.0+ ARM64

dkdc_md_cli-0.2.1-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.2.1.tar.gz.

File metadata

  • Download URL: dkdc_md_cli-0.2.1.tar.gz
  • Upload date:
  • Size: 16.8 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.2.1.tar.gz
Algorithm Hash digest
SHA256 26ccbb54834c124bdb64db82a142d757900e1f000a3f948b4bfbea8412bdff1e
MD5 dcc784ab6be1dcfbeadc63cc4dfdfe37
BLAKE2b-256 4442c91f30a68ada6fc37d520bfb05f8004d02f3e237857395b806920e9266dc

See more details on using hashes here.

Provenance

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

Publisher: release-python.yml on lostmygithubaccount/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.2.1-cp311-abi3-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for dkdc_md_cli-0.2.1-cp311-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 c66d2161ef49654a40da542b58bc81b2286de01b7cde41030b23ff8bfba3283b
MD5 76fd525e31f5d93266e6e788d734d665
BLAKE2b-256 d320cb10079e090bc2d3860e6f0e7126d14798910cb6ea0407f2279d86c708a7

See more details on using hashes here.

Provenance

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

Publisher: release-python.yml on lostmygithubaccount/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.2.1-cp311-abi3-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for dkdc_md_cli-0.2.1-cp311-abi3-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 b659a48328439fa19d56abe33e0f22dbae8f6475a33f9509f3ef02c717845d23
MD5 12d2e5a35579a5de806621f0332d7051
BLAKE2b-256 a71af2e227c5299468565bc5b298db80315638a5b23fc30116e417860f8b89b8

See more details on using hashes here.

Provenance

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

Publisher: release-python.yml on lostmygithubaccount/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.2.1-cp311-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for dkdc_md_cli-0.2.1-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0fbdc83364e57c0249b527e3f9839262c858fe71865196a54ad4edd372064a78
MD5 157703e652c97e9975f35c8eb309391e
BLAKE2b-256 41acd57c88c187d97d93c4f8e435004cc21df71e0b0e99d947503eaedf7b9af9

See more details on using hashes here.

Provenance

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

Publisher: release-python.yml on lostmygithubaccount/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.2.1-cp311-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for dkdc_md_cli-0.2.1-cp311-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 3bba26a92392968515743cc39370e9244041a8a61fdc89872c099fc1d2918ebc
MD5 876d3e97909a0a0f4a36c127b252c5d7
BLAKE2b-256 3b3ecf144543f51bcaf76081fa50349aefe6360e7bef0afe292229509ba65051

See more details on using hashes here.

Provenance

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

Publisher: release-python.yml on lostmygithubaccount/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