The `mosaicml-cli` provides a command-line interface for interacting with Databricks Mosaic AI training. It allows users to authenticate, manage runs, models, and clusters directly from their terminal. The current version is 0.8.3, and new versions are released periodically to align with updates to the Mosaic AI platform.
pip install mosaicml-cliVerified import paths — ran on the pinned version, not inferred.
The most crucial step is to log in using `mosaicml login`. This authenticates your CLI session with the Mosaic AI platform. After successful login, you can execute various commands, such as listing models or initiating training runs.
If you intend to write Python code, install `pip install mosaicml`. If you need the command-line tool, use `pip install mosaicml-cli`.
Run `mosaicml login` to authenticate your session, or ensure `MOSAICML_API_KEY` and `MOSAICML_API_URL` environment variables are set.
Always refer to the official documentation or the `mosaicml <command> --help` output for the most up-to-date syntax. Keep your CLI updated with `pip install --upgrade mosaicml-cli`.
Ensure your Python environment is at least 3.11. Consider using `pyenv` or `conda` to manage multiple Python versions.