CLI Reference¶
The mlflow-dynamodbstore CLI provides admin commands for managing your
DynamoDB-backed MLflow deployment.
Global Options¶
Every subcommand inherits:
| Option | Description | Required |
|---|---|---|
--name |
Stack/table name | Yes |
--region |
AWS region (e.g. us-east-1) |
Yes |
--endpoint-url |
Custom endpoint (LocalStack/testing) | No |
Commands¶
mlflow-dynamodbstore¶
mlflow-dynamodbstore admin commands.
Usage:
Options:
| Name | Type | Description | Default |
|---|---|---|---|
--name |
text | Stack/table name | mlflow |
--region |
text | AWS region (omit to use boto3 default chain) | None |
--endpoint-url |
text | Custom endpoint URL (for LocalStack/testing) | None |
--help |
boolean | Show this message and exit. | False |
Subcommands
- deploy: Create the CloudFormation stack and seed initial data.
- destroy: Delete the CloudFormation stack.
- fts: Manage FTS trigram field configuration.
- tag: Manage tag denormalization patterns.
- trace: Trace operations.
- ttl: Manage TTL retention policies.
- workspace: Workspace operations.
mlflow-dynamodbstore deploy¶
Create the CloudFormation stack and seed initial data.
Usage:
Options:
| Name | Type | Description | Default |
|---|---|---|---|
--help |
boolean | Show this message and exit. | False |
mlflow-dynamodbstore destroy¶
Delete the CloudFormation stack.
Usage:
Options:
| Name | Type | Description | Default |
|---|---|---|---|
--yes |
boolean | Skip confirmation prompt | False |
--retain |
boolean | Delete stack but keep the DynamoDB table | False |
--help |
boolean | Show this message and exit. | False |
mlflow-dynamodbstore fts¶
Manage FTS trigram field configuration.
Usage:
Options:
| Name | Type | Description | Default |
|---|---|---|---|
--help |
boolean | Show this message and exit. | False |
Subcommands
mlflow-dynamodbstore fts add¶
Add a trigram field.
Usage:
Options:
| Name | Type | Description | Default |
|---|---|---|---|
--help |
boolean | Show this message and exit. | False |
mlflow-dynamodbstore fts list¶
List FTS trigram fields.
Usage:
Options:
| Name | Type | Description | Default |
|---|---|---|---|
--help |
boolean | Show this message and exit. | False |
mlflow-dynamodbstore tag¶
Manage tag denormalization patterns.
Usage:
Options:
| Name | Type | Description | Default |
|---|---|---|---|
--help |
boolean | Show this message and exit. | False |
Subcommands
- add: Add a denormalization pattern.
- backfill: Backfill denormalized tags onto META items.
- list: List denormalization patterns.
- remove: Remove a denormalization pattern.
mlflow-dynamodbstore tag add¶
Add a denormalization pattern.
Usage:
Options:
| Name | Type | Description | Default |
|---|---|---|---|
--experiment-id |
text | Add per-experiment pattern | None |
--help |
boolean | Show this message and exit. | False |
mlflow-dynamodbstore tag backfill¶
Backfill denormalized tags onto META items.
Scans tag items, matches against configured patterns, and updates META items with denormalized tag attributes.
Usage:
Options:
| Name | Type | Description | Default |
|---|---|---|---|
--experiment-id |
text | Backfill only this experiment | None |
--help |
boolean | Show this message and exit. | False |
mlflow-dynamodbstore tag list¶
List denormalization patterns.
Usage:
Options:
| Name | Type | Description | Default |
|---|---|---|---|
--experiment-id |
text | Show effective patterns for an experiment | None |
--help |
boolean | Show this message and exit. | False |
mlflow-dynamodbstore tag remove¶
Remove a denormalization pattern.
Usage:
Options:
| Name | Type | Description | Default |
|---|---|---|---|
--experiment-id |
text | Remove per-experiment pattern | None |
--help |
boolean | Show this message and exit. | False |
mlflow-dynamodbstore trace¶
Trace operations.
Usage:
Options:
| Name | Type | Description | Default |
|---|---|---|---|
--help |
boolean | Show this message and exit. | False |
Subcommands
- cache: Pre-cache X-Ray spans for traces.
mlflow-dynamodbstore trace cache¶
Pre-cache X-Ray spans for traces.
Usage:
Options:
| Name | Type | Description | Default |
|---|---|---|---|
--experiment-id |
text | Experiment ID(s) | Sentinel.UNSET |
--days |
integer | Only process traces newer than N days | None |
--help |
boolean | Show this message and exit. | False |
mlflow-dynamodbstore ttl¶
Manage TTL retention policies.
Usage:
Options:
| Name | Type | Description | Default |
|---|---|---|---|
--help |
boolean | Show this message and exit. | False |
Subcommands
- cleanup: Find and expire orphaned children of TTL-deleted experiments.
- set: Set TTL policy values.
- show: Show current TTL policy.
mlflow-dynamodbstore ttl cleanup¶
Find and expire orphaned children of TTL-deleted experiments.
Scans for experiment partitions whose META item has been removed by
DynamoDB TTL, then sets ttl = now on all remaining children so
DynamoDB will garbage-collect them.
Usage:
Options:
| Name | Type | Description | Default |
|---|---|---|---|
--dry-run |
boolean | Report orphans without setting TTL | False |
--help |
boolean | Show this message and exit. | False |
mlflow-dynamodbstore ttl set¶
Set TTL policy values.
Usage:
Options:
| Name | Type | Description | Default |
|---|---|---|---|
--soft-deleted-retention-days |
integer | N/A | None |
--trace-retention-days |
integer | N/A | None |
--metric-history-retention-days |
integer | N/A | None |
--help |
boolean | Show this message and exit. | False |
mlflow-dynamodbstore ttl show¶
Show current TTL policy.
Usage:
Options:
| Name | Type | Description | Default |
|---|---|---|---|
--help |
boolean | Show this message and exit. | False |
mlflow-dynamodbstore workspace¶
Workspace operations.
Usage:
Options:
| Name | Type | Description | Default |
|---|---|---|---|
--help |
boolean | Show this message and exit. | False |
Subcommands
- delete: Delete a workspace.
mlflow-dynamodbstore workspace delete¶
Delete a workspace.
Usage:
Options:
| Name | Type | Description | Default |
|---|---|---|---|
--workspace |
text | Workspace name to delete | Sentinel.UNSET |
--mode |
choice (soft | cascade) |
Deletion mode | soft |
--yes |
boolean | Skip confirmation for cascade | False |
--help |
boolean | Show this message and exit. | False |
Examples¶
Deploy a new stack¶
Destroy a stack (retain table)¶
Manage TTL policies¶
# Show current policy
mlflow-dynamodbstore --name mlflow --region us-east-1 ttl show
# Set retention
mlflow-dynamodbstore --name mlflow --region us-east-1 ttl set \
--soft-deleted-retention-days 90 \
--trace-retention-days 30
# Cleanup orphaned items
mlflow-dynamodbstore --name mlflow --region us-east-1 ttl cleanup --dry-run
Manage tag denormalization¶
mlflow-dynamodbstore --name mlflow --region us-east-1 tag list
mlflow-dynamodbstore --name mlflow --region us-east-1 tag add "mlflow.user"
mlflow-dynamodbstore --name mlflow --region us-east-1 tag backfill
Full-text search configuration¶
mlflow-dynamodbstore --name mlflow --region us-east-1 fts list
mlflow-dynamodbstore --name mlflow --region us-east-1 fts add "description"
Cache trace spans¶
Delete a workspace¶
# Soft delete
mlflow-dynamodbstore --name mlflow --region us-east-1 workspace delete \
--workspace staging --mode soft
# Cascade (with confirmation)
mlflow-dynamodbstore --name mlflow --region us-east-1 workspace delete \
--workspace staging --mode cascade --yes
Danger
destroy permanently deletes the CloudFormation stack. workspace delete --mode cascade
permanently removes all data. These actions cannot be undone.
Tip
Use --retain with destroy to remove the CloudFormation stack while keeping the
DynamoDB table and its data intact.