{"id":21595,"library":"ms-fabric-cli","title":"Microsoft Fabric CLI (Python)","description":"Command-line interface for managing Microsoft Fabric workspaces, lakehouses, and pipelines. Current version 1.5.0, Python 3.10–3.13. Released monthly.","status":"active","version":"1.5.0","language":"python","source_language":"en","source_url":"https://github.com/microsoft/fabric-cli","tags":["microsoft-fabric","cli","data-engineering","azure"],"install":[{"cmd":"pip install ms-fabric-cli","lang":"bash","label":"PyPI"}],"dependencies":[],"imports":[],"quickstart":{"code":"# The cli is used from the shell; no Python import needed.\n# Authenticate:\nimport os\nos.system('fabric login --tenant-id ' + os.environ.get('FABRIC_TENANT_ID', '') + ' --client-id ' + os.environ.get('FABRIC_CLIENT_ID', '') + ' --client-secret ' + os.environ.get('FABRIC_CLIENT_SECRET', ''))\nos.system('fabric lakehouse create --workspace myws --name mylh')","lang":"python","description":"Authenticate using service principal and create a lakehouse."},"warnings":[{"fix":"Use '--lakehouse-name' instead of '--name'.","message":"From v1.5.0, 'fabric lakehouse create' requires '--lakehouse-name' flag; '--name' is deprecated and will be removed in v2.0.","severity":"breaking","affected_versions":">=1.5.0"},{"fix":"Use '--tenant-id', '--client-id', '--client-secret' for SP auth, or '--managed-identity' for Azure resources.","message":"'fabric login' with username/password (device code) is deprecated. Use service principal or managed identity.","severity":"deprecated","affected_versions":">=1.4.0"},{"fix":"Use only letters, numbers, hyphens, underscores; avoid spaces.","message":"Workspace names are case-sensitive and must be URL-safe. Spaces are not allowed, but hyphens and underscores are.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Rename workspace to use only allowed characters.","cause":"Workspace names must be URL-safe (letters, numbers, hyphens, underscores).","error":"ERROR: The request is invalid because the workspace name contains invalid characters."},{"fix":"Use the command-line tool directly: 'fabric --help'. Do not try to import it in Python.","cause":"The package is not importable as a Python module; it installs a CLI binary only.","error":"ModuleNotFoundError: No module named 'ms_fabric_cli'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}