Skip to main content

CLI for the MotherDuck REST API

Project description

MotherDuck CLI

CLI for the MotherDuck REST API.

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

Install

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.1.4.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.4-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.4-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.4-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.4-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.4.tar.gz.

File metadata

  • Download URL: dkdc_md_cli-0.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 0ad501db9d29e406dea9bf98dd60878342bff04d8c188f5cf4adeb5b75044a6e
MD5 974400640ed4e30e7acb720aef36f0e2
BLAKE2b-256 1c06ad0638b196bd0cf0f9e5be2d2a5ea35c20b5e92cb25c9e65ab4a15f88cd4

See more details on using hashes here.

Provenance

The following attestation bundles were made for dkdc_md_cli-0.1.4.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.4-cp311-abi3-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for dkdc_md_cli-0.1.4-cp311-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 a67b6d26b32c82796c0084d1fa8d11a33af0e2dad34379f83abcfce37d9955de
MD5 e2bcf6dc1861342c702bdccabd5c24a8
BLAKE2b-256 86df311a6857ed29aa3cb61d0f884baae9fd774dd750a1a4f1273153b508c77b

See more details on using hashes here.

Provenance

The following attestation bundles were made for dkdc_md_cli-0.1.4-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.4-cp311-abi3-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for dkdc_md_cli-0.1.4-cp311-abi3-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 7312c2fbacc6ec9281ee5cada14c78ef46d988a62c3e729b043a78cbba358c08
MD5 716566209c3a99c4c1e04642fe67fc08
BLAKE2b-256 b5f15794dcca13474482b6f10f6da12017cae7dfce5cd4ce9299b8d545f2eadc

See more details on using hashes here.

Provenance

The following attestation bundles were made for dkdc_md_cli-0.1.4-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.4-cp311-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for dkdc_md_cli-0.1.4-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 99623c40fc830a3b8efa0ae0c4d7649fdec5024471925660f85d968c033f25a6
MD5 013fb29ef0c51415ed811966a938d26b
BLAKE2b-256 737e95acba327c252484ad31ba372d47e599d982575bf97fd09958a3836b7bf0

See more details on using hashes here.

Provenance

The following attestation bundles were made for dkdc_md_cli-0.1.4-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.4-cp311-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for dkdc_md_cli-0.1.4-cp311-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 0a96a24345ea56f827dfdcd064d3e9f8491469c58c662ffaa10c9e2789a75e8f
MD5 f17c9229c93013be56af4d8e17a82ba2
BLAKE2b-256 8b7a3ec572558f677c076cd8599d19ec60dac1e9083fb1e78f1cbda656dad1ae

See more details on using hashes here.

Provenance

The following attestation bundles were made for dkdc_md_cli-0.1.4-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