MLflow CLI
$ mlflow Foundation Med RiskThe mlflow CLI manages experiment tracking servers (mlflow server), experiments and runs (mlflow experiments, runs), and local model serving/container builds (mlflow models serve, build-docker). Note that server and models serve run as persistent HTTP daemons.
pip install mlflow Use mlflow experiments / mlflow runs in shell for quick experiment management; avoid blocking on mlflow server or models serve without daemon/background handling.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
mlflow runs describe emits JSON and management subcommands are non-interactive, though experiments tables lack --json and server/models serve block as daemons.
runs describeoutputs JSON;serverandmodels serveare blocking daemons
Defaults safely to local ./mlruns, though loading untrusted pickled MLflow models in models serve executes arbitrary Python deserialization.
- Model serving deserializes Python artifacts; defaults to local
./mlruns
Easy pip/uvx install, though mlflow carries a hefty Python dependency tree (Flask/Gunicorn/SQLAlchemy/numpy).
- Heavy Python dependency footprint via PyPI
Covers local tracking UI, experiment CRUD, and model packaging (build-docker), though Python SDK or REST API is richer for querying metrics.
- Unified tracking server, experiment management, and model serving CLI
Linux Foundation / Databricks (mlflow/mlflow) project under Apache-2.0.
- Official
mlflow/mlflowrepository
Clear CLI reference at mlflow.org/docs/latest/cli.html.
- Official CLI docs at mlflow.org/docs/latest/cli.html
Security, Auth & Guardrails
Reads MLFLOW_TRACKING_URI, MLFLOW_TRACKING_TOKEN, or ~/.mlflow/ / Databricks profiles; defaults to local ./mlruns with no auth.
Free, Apache-2.0 open-source Python CLI.
# MLflow CLI Agent Rules - Never run `mlflow server` or `mlflow models serve` synchronously in agent shells—they start blocking HTTP servers. - Confirm `MLFLOW_TRACKING_URI` before creating/deleting experiments so you do not write stray `./mlruns` folders or mutate shared servers.
Agent-Ready Command Recipes
Safe Read-Only Queries
mlflow runs describe --run-id <RUN_ID>
Prints detailed JSON metadata, metrics, and parameters for a single run ID.
Controlled Writes & Previews
mlflow experiments create --experiment-name eval-suite-v1
Registers a new experiment in the configured MLFLOW_TRACKING_URI or local ./mlruns.
Strengths for Agents
- +
mlflow runs describe --run-idoutputs structured JSON run metrics and parameters. - + Zero-setup local
./mlrunstracking and one-commandmodels build-docker.
Caveats & Pitfalls
- !
mlflow serverandmlflow models serveblock indefinitely as foreground servers. - ! Heavy Python package footprint and inconsistent JSON support across subcommands.