MLSysOps CLI
MLSysOps CLI (mls) is a command-line tool for interacting
with the MLSysOps framework. It allows users to manage applications,
infrastructure resources, and orchestration agents across the
device-edge-cloud continuum.
📦 Installation
Make sure you have Python 3.7+ and pip installed.
Option 1: Install via pip (recommended)
pip install -i https://test.pypi.org/simple/ mlsysops-cli
After installation, you can use the mls command directly in your terminal.
Option 2: Install from source (for development)
If you want to work on the CLI or customize it:
# Clone the repository (make sure to use the CLI branch)
git clone -b CLI https://github.com/mlsysops-eu/mlsysops-framework.git
# Go into the CLI directory
cd mlsysops-framework/mlsysops-cli
# Install it in editable mode
pip install -e .
This will also expose the mls command in your terminal, and any changes you make to the code will be reflected immediately.
🔧 Configuration
Make sure you have your environment variables or .env file set up with:
# Configuration with the framework API
export MLS_API_IP=<MLS API host ip>
export MLS_API_PORT=8000
# Deployment
export KARMADA_HOST_KUBECONFIG=<path to karmada host kubeconfig>
export KARMADA_API_KUBECONFIG=<path to karmada api kubeconfig>
export KARMADA_HOST_IP=<karmada host ip>
🚀 Usage
mls --help
Each section of the system has its own command group:
mls apps– Manage application deploymentsmls infra– Query and register infrastructuremls manage– System control (ping, mode switch)mls agents– Deploy orchestration agents
🧹 Application Commands
mls apps deploy-app --path ./my_app.yaml
mls apps list-all
mls apps remove-app
🏗️ Infrastructure Commands
mls infra list-infra --type Cluster
⚙️ Management Commands
mls manage ping-agent
mls manage set-mode --mode 1
Framework Commands
mls framework deploy-all
mls framework deploy-cluster
mls framework deploy-continuum
mls framework deploy-node
mls framework deploy-services
Optional path argument: Use the --path flag to specify the system descriptions folder.
mls framework deploy-all/cluster/continuum/node --path ./descriptions
The descriptions folder should contain subfolders like node, cluster, or continuum for proper agent configuration.
Optional inventory argument: Use the --inventory flag to specify the inventory YAML file used during the K3s installation.
mls framework add-system-agents --inventory ./inventory.yaml
Note: Only one of
--pathor--inventorycan be specified at a time. If both options are provided, the command will throw an error.
⚡ Tab Completion (Bash)
Enable tab-completion for the mls CLI in your terminal to quickly discover available commands and options:
echo 'eval "$(_MLS_COMPLETE=bash_source mls)"' >> ~/.bashrc
source ~/.bashrc
Then try:
mls [TAB][TAB]
Enjoy instant access to commands and flags 🎉
📄 License
License © 2025 [MLSysOps]
Metadata
Release files for mlsysops-cli 0.0.0.post16271425273
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mlsysops_cli-0.0.0.post16271425273.tar.gz | 20.1 kB | Without provenance | Details for mlsysops_cli-0.0.0.post16271425273.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mlsysops_cli-0.0.0.post16271425273-py3-none-any.whl | Python 3 | none | any | Details for mlsysops_cli-0.0.0.post16271425273-py3-none-any.whl |
Total release size: 41.5 kB
Release files / mlsysops_cli-0.0.0.post16271425273.tar.gz
| Download URL | mlsysops_cli-0.0.0.post16271425273.tar.gz |
|---|---|
| Size | 20.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c84eb9f8d086372198c1e96c71b0cfc4a2fe40800bbd24c1faa3825ab325d664
|
|
BLAKE2b-256 checksum How to use checksums |
314cf0fdbc4fd72339e443ecbe0b515e89bdeb92b86f961c76a66ac4f0834377
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / mlsysops_cli-0.0.0.post16271425273-py3-none-any.whl
| Download URL | mlsysops_cli-0.0.0.post16271425273-py3-none-any.whl |
|---|---|
| Size | 21.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
698235621aec241d7c63fa19c484ded697b7aa594a0073a488d2714a3d49ce48
|
|
BLAKE2b-256 checksum How to use checksums |
e4a8f15c4affb0c180278973b90fdfa0063eabece6dbfd10e7a28652590fc099
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Security for mlsysops-cli 0.0.0.post16271425273
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.