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.

uv:

uv tool install dkdc-md-cli

uvx:

uvx --from dkdc-md-cli md

cargo:

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

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.3.tar.gz (20.6 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.3-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.3-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.3-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.3-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.3.tar.gz.

File metadata

  • Download URL: dkdc_md_cli-0.1.3.tar.gz
  • Upload date:
  • Size: 20.6 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.3.tar.gz
Algorithm Hash digest
SHA256 ed2e3415d47a79cc550d60eb856d149c1f7a45ac626ebac3317a2a57bb9d9960
MD5 a4e9191d55ee05271513d9b4e14877d7
BLAKE2b-256 630e47a73de389fe15ccfb4859ae3e823b572f16cf53245f70b8a52d4721d639

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dkdc_md_cli-0.1.3-cp311-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 04df3492c398c77d0e4981e0f7cc96ac044b6dae18e4765cbd9598e34869e649
MD5 3527b99a33984c8b0219fd6f93d5ff12
BLAKE2b-256 0bcae5ce23b413e448f836d0da8665910fd884f0d8c9414d069ebc49296d13e5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dkdc_md_cli-0.1.3-cp311-abi3-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 662d25208618f513c3a3517801b6b840fa4a11dd468420248f34504f704f63b2
MD5 7b0643bb61129c10082c151d86b7621b
BLAKE2b-256 df28a7f4ba98dc064492c4764dcad691db847569d5a761dad5d5a9338187a47e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dkdc_md_cli-0.1.3-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 01eae5e88b1f5d744d6dfe8c0edf3054252df5262ac5b6a78cbb59fe3cb10c97
MD5 367913f9e336e38c643c975ebf2d5c0c
BLAKE2b-256 212c5e7c983c6e76530c97483eca7441dc2e473663c4597f00880d6424ff98f8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dkdc_md_cli-0.1.3-cp311-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 7de3b37635e3f9febbba1d7f41058d65d4b6047d8ade180a33c98c86b79faad3
MD5 ac85a3efd21e28221305f37445cf0e49
BLAKE2b-256 ddcc5d43096c542400c5bf36acf717dd17146d3ba3942f3d436faaac71012fdd

See more details on using hashes here.

Provenance

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