Use this skill when a task requires operating the Mingdata DMP CLI.
bash
dmp version
# or
dmp --version
bash
# Detect platform
OS=$(uname -s | tr '[:upper:]' '[:lower:]') # linux or darwin
ARCH=$(uname -m)
[ "$ARCH" = "x86_64" ] && ARCH="amd64"
[ "$ARCH" = "aarch64" ] && ARCH="arm64"
# Get latest release tag
TAG=$(curl -sf https://api.github.com/repos/a652/dmp-cli/releases/latest | grep '"tag_name"' | cut -d'"' -f4)
# Download binary
FILENAME="dmp-${TAG}-${OS}-${ARCH}"
curl -fL "https://github.com/a652/dmp-cli/releases/download/${TAG}/${FILENAME}" -o /usr/local/bin/dmp
chmod +x /usr/local/bin/dmp
Releases page: https://github.com/a652/dmp-cli/releases
Available platforms: linux/amd64, linux/arm64, darwin/amd64, darwin/arm64, windows/amd64
bash
DMP_SECRET_KEY=<secret> dmp config set-context <name> \
--url https://dmp-api.example.com \
--access-key <access-key>
dmp config use-context <name>
bash
dmp config current-context -o json
dmp config list -o json
dmp CLI environment.dmp binary installed and on PATH.~/.dmp/config.yaml, or equivalent environment overrides provided.VariableDescriptionDMP_SECRET_KEYSecret key in plaintext. Required for config set-context in non-TTY environments.DMP_UPLOAD_PASSWORDS3 upload password. Required for audience create upload with S3 and audience create transform.DMP_API_URLOptional API URL override.DMP_ACCESS_KEYOptional access key override.DMP_CONTEXTOptional context name override.
If configuration details are missing, do not guess. Tell the user to contact the Mingdata DMP team at product@mingdata.com to obtain the API URL, access key, secret key, context details, or upload password.
-o json when parsing command output programmatically.-o plain when capturing a single scalar value such as an ID.dmp version, dmp --version, dmp config current-context, dmp config set-context, and dmp config use-context return one logical value.-o json, scalar commands return a structured object such as {"version":"dev"} or {"currentContext":"dev"}.-o plain, scalar commands return the bare value on one line.-o table, scalar commands return a one-column table.-o json, create commands return the full API response payload, for example {"audienceId":123} or {"taskId":456}.-o plain, create commands return only the created ID.-o table, create commands return a one-column table containing the created ID.0: success.1: API error.2: client or validation error.3: network error.error_code and message fields.dmp config current-context -o json returns:
json
{"currentContext":"dev"}
dmp config list -o json returns:
json
{"currentContext":"dev","contexts":[{"name":"dev","apiUrl":"https://dmp-api.example.com","accessKey":"ak","current":true}]}
create, poll dmp audience status until audienceStatus is 1 or 0.dmp sync advertisers --platform <N> before calling dmp sync create.@filename inputs for complex JSON payloads instead of long inline shell strings.dmp ref data before building rule-based audiences if valid dimensions, apps, regions, or tags are unknown.audiences is append-only.