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
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):
--tokenflag (pass-to read from stdin)motherduck_tokenMOTHERDUCK_TOKENmotherduck_api_keyMOTHERDUCK_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
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.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26ccbb54834c124bdb64db82a142d757900e1f000a3f948b4bfbea8412bdff1e
|
|
| MD5 |
dcc784ab6be1dcfbeadc63cc4dfdfe37
|
|
| BLAKE2b-256 |
4442c91f30a68ada6fc37d520bfb05f8004d02f3e237857395b806920e9266dc
|
Provenance
The following attestation bundles were made for dkdc_md_cli-0.2.1.tar.gz:
Publisher:
release-python.yml on lostmygithubaccount/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.2.1.tar.gz -
Subject digest:
26ccbb54834c124bdb64db82a142d757900e1f000a3f948b4bfbea8412bdff1e - Sigstore transparency entry: 1154737658
- Sigstore integration time:
-
Permalink:
lostmygithubaccount/md-cli@089cc12ba0cbc9660a995d062655a90563473c14 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/lostmygithubaccount
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-python.yml@089cc12ba0cbc9660a995d062655a90563473c14 -
Trigger Event:
push
-
Statement type:
File details
Details for the file dkdc_md_cli-0.2.1-cp311-abi3-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: dkdc_md_cli-0.2.1-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 |
c66d2161ef49654a40da542b58bc81b2286de01b7cde41030b23ff8bfba3283b
|
|
| MD5 |
76fd525e31f5d93266e6e788d734d665
|
|
| BLAKE2b-256 |
d320cb10079e090bc2d3860e6f0e7126d14798910cb6ea0407f2279d86c708a7
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dkdc_md_cli-0.2.1-cp311-abi3-manylinux_2_34_x86_64.whl -
Subject digest:
c66d2161ef49654a40da542b58bc81b2286de01b7cde41030b23ff8bfba3283b - Sigstore transparency entry: 1154737669
- Sigstore integration time:
-
Permalink:
lostmygithubaccount/md-cli@089cc12ba0cbc9660a995d062655a90563473c14 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/lostmygithubaccount
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-python.yml@089cc12ba0cbc9660a995d062655a90563473c14 -
Trigger Event:
push
-
Statement type:
File details
Details for the file dkdc_md_cli-0.2.1-cp311-abi3-manylinux_2_34_aarch64.whl.
File metadata
- Download URL: dkdc_md_cli-0.2.1-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 |
b659a48328439fa19d56abe33e0f22dbae8f6475a33f9509f3ef02c717845d23
|
|
| MD5 |
12d2e5a35579a5de806621f0332d7051
|
|
| BLAKE2b-256 |
a71af2e227c5299468565bc5b298db80315638a5b23fc30116e417860f8b89b8
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dkdc_md_cli-0.2.1-cp311-abi3-manylinux_2_34_aarch64.whl -
Subject digest:
b659a48328439fa19d56abe33e0f22dbae8f6475a33f9509f3ef02c717845d23 - Sigstore transparency entry: 1154737675
- Sigstore integration time:
-
Permalink:
lostmygithubaccount/md-cli@089cc12ba0cbc9660a995d062655a90563473c14 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/lostmygithubaccount
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-python.yml@089cc12ba0cbc9660a995d062655a90563473c14 -
Trigger Event:
push
-
Statement type:
File details
Details for the file dkdc_md_cli-0.2.1-cp311-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: dkdc_md_cli-0.2.1-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 |
0fbdc83364e57c0249b527e3f9839262c858fe71865196a54ad4edd372064a78
|
|
| MD5 |
157703e652c97e9975f35c8eb309391e
|
|
| BLAKE2b-256 |
41acd57c88c187d97d93c4f8e435004cc21df71e0b0e99d947503eaedf7b9af9
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dkdc_md_cli-0.2.1-cp311-abi3-macosx_11_0_arm64.whl -
Subject digest:
0fbdc83364e57c0249b527e3f9839262c858fe71865196a54ad4edd372064a78 - Sigstore transparency entry: 1154737662
- Sigstore integration time:
-
Permalink:
lostmygithubaccount/md-cli@089cc12ba0cbc9660a995d062655a90563473c14 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/lostmygithubaccount
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-python.yml@089cc12ba0cbc9660a995d062655a90563473c14 -
Trigger Event:
push
-
Statement type:
File details
Details for the file dkdc_md_cli-0.2.1-cp311-abi3-macosx_10_12_x86_64.whl.
File metadata
- Download URL: dkdc_md_cli-0.2.1-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 |
3bba26a92392968515743cc39370e9244041a8a61fdc89872c099fc1d2918ebc
|
|
| MD5 |
876d3e97909a0a0f4a36c127b252c5d7
|
|
| BLAKE2b-256 |
3b3ecf144543f51bcaf76081fa50349aefe6360e7bef0afe292229509ba65051
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dkdc_md_cli-0.2.1-cp311-abi3-macosx_10_12_x86_64.whl -
Subject digest:
3bba26a92392968515743cc39370e9244041a8a61fdc89872c099fc1d2918ebc - Sigstore transparency entry: 1154737665
- Sigstore integration time:
-
Permalink:
lostmygithubaccount/md-cli@089cc12ba0cbc9660a995d062655a90563473c14 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/lostmygithubaccount
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-python.yml@089cc12ba0cbc9660a995d062655a90563473c14 -
Trigger Event:
push
-
Statement type: