ms-fabric-cli
Command-line tool for Microsoft Fabric
What it is and what it does
The Microsoft Fabric CLI is a terminal-based tool that treats your Fabric workspaces and items like a file system, letting you use familiar commands (ls, cd, mkdir, cp, rm) to navigate, create, copy, and delete Fabric objects. It supports both interactive shell mode for exploration and scripting mode for CI/CD automation, with built-in authentication via browser login, service principals, managed identity, or environment variables.
Beyond navigation, it handles data operations—uploading and downloading OneLake files, loading CSV data into tables, optimizing table storage, managing shortcuts—and job orchestration, including running notebooks synchronously, scheduling pipelines, and checking job status. It also exposes direct REST API access with JMESPath filtering for advanced queries. The CLI is cross-platform (Windows, macOS, Linux) and supports shell completion for command-line mode.
Use it for:
- Automate Fabric workspace and item management in CI/CD pipelines using familiar shell commands and scripting.
- Upload, download, and organize data files in OneLake directly from the terminal without opening the Fabric portal.
- Schedule and monitor Fabric job runs (notebooks, pipelines) and check their status programmatically.
- Explore and navigate Fabric workspaces interactively from the terminal as an alternative to the web UI.
- Bulk export or import Fabric item definitions (reports, notebooks) for backup or version control.
- Make authenticated REST API calls to Fabric with JMESPath queries for custom reporting or integration.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A command-line interface for Microsoft Fabric that lets you navigate workspaces and items, manage data, run jobs, and automate Fabric operations using file-system-like commands from your terminal.
Yes, if you work regularly with Microsoft Fabric and want to automate workspace operations or integrate Fabric into CI/CD pipelines. The tool is actively maintained, has low install friction, and offers genuine CLI-native automation that the web portal does not. However, clarify the license terms first (metadata is unclear) and verify that your use case aligns with its scripting and interactive modes.
Install
ms-fabric-cli on PyPI
pip
pip install ms-fabric-cliuv
uv add ms-fabric-clipoetry
poetry add ms-fabric-cliInstalling ms-fabric-cli
Before you install
Low friction install with a pure Python wheel and active maintenance—last commit 2026-08-11, released 2026-04-28. Requires Python 3.10–3.13 and pulls in 13 runtime dependencies including Azure authentication (msal, azure-core) and interactive prompting (questionary, prompt_toolkit).
License in practice
License treatment is unclear; the fact sheet does not specify SPDX or raw license metadata, so review the LICENSE file in the repository before adopting in a commercial or restricted-license context.
Quickstart
pip install ms-fabric-cli
fab auth login
fab ls
Requires Python 3.10–3.13 and a Microsoft Fabric account with workspace access; interactive login opens a browser for authentication.
Verify before relying
- Exact license type (MIT is mentioned in description but not confirmed in metadata)
- Whether all 13 runtime dependencies are truly required or some are optional
- Performance and scalability limits for large workspaces or bulk operations
Package facts
| License | not declared (unclear) |
| Python support | supports the current Python release (<3.14,>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 13 — msal, msal_extensions, azure-core, questionary, prompt_toolkit, cachetools, jmespath, pyyaml, argcomplete, psutil, requests, cryptography, fabric-cicd |
| Maintenance | actively maintained — 108 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 194,417/month — #9,835 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: ms_fabric_cli-1.6.1-py3-none-any.whl
Tags
More Utilities packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
charset-normalizerDetects and normalizes text encoding from…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
PygmentsPygments is a syntax highlighter that colorizes…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
awsCommand-line tool to manage Amazon EC2 and ELB…
permissive · top 15,000 on PyPI
fabric-cicdAbstracts Microsoft Fabric API interactions for…
permissive · top 15,000 on PyPI
knackKnack is a Python framework for building…
permissive · top 5,000 on PyPI
Fabric3Fabric3 is a Python 2.7 and 3.4+ compatible…
permissive · top 15,000 on PyPI
apache-airflow-microsoft-fabric-pluginEnables Apache Airflow DAGs to trigger…
unclear · top 5,000 on PyPI
microsoft-fabric-rti-mcpAn MCP server that bridges AI agents to…
permissive · top 15,000 on PyPI
apache-airflow-providers-microsoft-fabricProvides Apache Airflow operators to trigger,…
unclear · top 5,000 on PyPI
sfctlA command-line interface for managing Azure…
permissive · top 15,000 on PyPI
cloudsmith-cliA command-line interface to the Cloudsmith…
permissive · top 15,000 on PyPI
libtmuxlibtmux provides a typed Python API to control…
permissive · top 5,000 on PyPI