{"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.","language":"python","status":"active","last_verified":"Mon Apr 27","install":{"commands":["pip install ms-fabric-cli"],"cli":{"name":"ms-fabric-cli","version":"sh: 1: ms-fabric-cli: not found"}},"imports":[],"auth":{"required":false,"env_vars":[]},"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.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}