Registry / azure / ms-fabric-cli

ms-fabric-cli

JSON →
library1.5.0pypypiunverified

Command-line interface for managing Microsoft Fabric workspaces, lakehouses, and pipelines. Current version 1.5.0, Python 3.10–3.13. Released monthly.

pip install ms-fabric-cli
INSTALL
IMPORT
SIG · MS-FABRIC-CLI
M
ms-fabric-cli
azurepythonv1.5.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Authenticate using service principal and create a lakehouse.

# The cli is used from the shell; no Python import needed. # Authenticate: import os os.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', '')) os.system('fabric lakehouse create --workspace myws --name mylh')
ms-fabric-cli --version
Debug
Known issues
breakingFrom v1.5.0, 'fabric lakehouse create' requires '--lakehouse-name' flag; '--name' is deprecated and will be removed in v2.0.
fix
Use '--lakehouse-name' instead of '--name'.
affects: >=1.5.0
deprecated'fabric login' with username/password (device code) is deprecated. Use service principal or managed identity.
fix
Use '--tenant-id', '--client-id', '--client-secret' for SP auth, or '--managed-identity' for Azure resources.
affects: >=1.4.0
gotchaWorkspace names are case-sensitive and must be URL-safe. Spaces are not allowed, but hyphens and underscores are.
fix
Use only letters, numbers, hyphens, underscores; avoid spaces.
affects: all
Errors
Common errors & fixes
ERROR: The request is invalid because the workspace name contains invalid characters.
Workspace names must be URL-safe (letters, numbers, hyphens, underscores).
fix
Rename workspace to use only allowed characters.
ModuleNotFoundError: No module named 'ms_fabric_cli'
The package is not importable as a Python module; it installs a CLI binary only.
fix
Use the command-line tool directly: 'fabric --help'. Do not try to import it in Python.
Upgrade
Version history
1.5.0latest on PyPI · released Mar 12, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
22 hits · last 30 days
node
20
OpenAI (training)
1
Resources
ms-fabric-cli — pip install ms-fabric-cli · libregistry