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):
--tokenflag (pass-to read from stdin)motherduck_tokenMOTHERDUCK_TOKENmotherduck_api_keyMOTHERDUCK_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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ca935d2dc0ab1e25874559023baba96855a4446d1846e0b24fe42c731f3c491
|
|
| MD5 |
6dc8a2c32cd6c0d0cec6deff58dcea01
|
|
| BLAKE2b-256 |
8255a5b7289c495b3a0c1485d226daf46cfb0a20ba6e2661ccbf418fa523362b
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dkdc_md_cli-0.1.2.tar.gz -
Subject digest:
4ca935d2dc0ab1e25874559023baba96855a4446d1846e0b24fe42c731f3c491 - Sigstore transparency entry: 942652252
- Sigstore integration time:
-
Permalink:
lostmygithubaccount/dkdc-md-cli@c19188174c4a6d2b0dba7ac02048bcba4e398377 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/lostmygithubaccount
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-python.yml@c19188174c4a6d2b0dba7ac02048bcba4e398377 -
Trigger Event:
push
-
Statement type:
File details
Details for the file dkdc_md_cli-0.1.2-cp311-abi3-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: dkdc_md_cli-0.1.2-cp311-abi3-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 1.8 MB
- Tags: CPython 3.11+, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12f1ee38728d1ff6966599ef1319bfbd0f188b5e772469cff242fef702f6122c
|
|
| MD5 |
dd132f8feb0ec881a34e2426724c54e4
|
|
| BLAKE2b-256 |
1f7daf1a284db8707c769c27c0a8284c1d4f38d0cd1bd8a4eca768c20d04fa41
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dkdc_md_cli-0.1.2-cp311-abi3-manylinux_2_34_x86_64.whl -
Subject digest:
12f1ee38728d1ff6966599ef1319bfbd0f188b5e772469cff242fef702f6122c - Sigstore transparency entry: 942652340
- Sigstore integration time:
-
Permalink:
lostmygithubaccount/dkdc-md-cli@c19188174c4a6d2b0dba7ac02048bcba4e398377 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/lostmygithubaccount
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-python.yml@c19188174c4a6d2b0dba7ac02048bcba4e398377 -
Trigger Event:
push
-
Statement type:
File details
Details for the file dkdc_md_cli-0.1.2-cp311-abi3-manylinux_2_34_aarch64.whl.
File metadata
- Download URL: dkdc_md_cli-0.1.2-cp311-abi3-manylinux_2_34_aarch64.whl
- Upload date:
- Size: 1.8 MB
- Tags: CPython 3.11+, manylinux: glibc 2.34+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d702de244dcb2e986eed9d64176ab300fba63fa3342f5d6a7314ba6d64a54aab
|
|
| MD5 |
46a862c5c78913ad7b7df12ba65bdffa
|
|
| BLAKE2b-256 |
16de2295341619f7227442046572eadb0f60ce1a67647a858e8066b2c35baa0b
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dkdc_md_cli-0.1.2-cp311-abi3-manylinux_2_34_aarch64.whl -
Subject digest:
d702de244dcb2e986eed9d64176ab300fba63fa3342f5d6a7314ba6d64a54aab - Sigstore transparency entry: 942652304
- Sigstore integration time:
-
Permalink:
lostmygithubaccount/dkdc-md-cli@c19188174c4a6d2b0dba7ac02048bcba4e398377 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/lostmygithubaccount
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-python.yml@c19188174c4a6d2b0dba7ac02048bcba4e398377 -
Trigger Event:
push
-
Statement type:
File details
Details for the file dkdc_md_cli-0.1.2-cp311-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: dkdc_md_cli-0.1.2-cp311-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.6 MB
- Tags: CPython 3.11+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
849aa4ddde85d964aa0a97f6190e367ead9121cfcb50584a9c35a588542cef37
|
|
| MD5 |
b1839c39f86a2ace3c23a47c9d7153f7
|
|
| BLAKE2b-256 |
bd665f304b36da01da9727774a1f4c2bf13e3765d428c9fc454d154265bfd7fb
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dkdc_md_cli-0.1.2-cp311-abi3-macosx_11_0_arm64.whl -
Subject digest:
849aa4ddde85d964aa0a97f6190e367ead9121cfcb50584a9c35a588542cef37 - Sigstore transparency entry: 942652323
- Sigstore integration time:
-
Permalink:
lostmygithubaccount/dkdc-md-cli@c19188174c4a6d2b0dba7ac02048bcba4e398377 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/lostmygithubaccount
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-python.yml@c19188174c4a6d2b0dba7ac02048bcba4e398377 -
Trigger Event:
push
-
Statement type:
File details
Details for the file dkdc_md_cli-0.1.2-cp311-abi3-macosx_10_12_x86_64.whl.
File metadata
- Download URL: dkdc_md_cli-0.1.2-cp311-abi3-macosx_10_12_x86_64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.11+, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c715b275aa27ad17f93f7cc008bb552a40979b151b375cbbdc37a99162248a7
|
|
| MD5 |
a9802be58fdc13e40d41ad47f9dd8f93
|
|
| BLAKE2b-256 |
00b5a9e8410de060d0fcb94bc1d027716ad80f7bd6107ad20f848ac9e741f027
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dkdc_md_cli-0.1.2-cp311-abi3-macosx_10_12_x86_64.whl -
Subject digest:
5c715b275aa27ad17f93f7cc008bb552a40979b151b375cbbdc37a99162248a7 - Sigstore transparency entry: 942652276
- Sigstore integration time:
-
Permalink:
lostmygithubaccount/dkdc-md-cli@c19188174c4a6d2b0dba7ac02048bcba4e398377 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/lostmygithubaccount
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-python.yml@c19188174c4a6d2b0dba7ac02048bcba4e398377 -
Trigger Event:
push
-
Statement type: