skillfed

ms-fabric-cli

Command-line tool for Microsoft Fabric

ms-fabric-cli v1.6.1 194.4K downloads/30d#9,835 on PyPI166
License unclear Active released

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-cli

uv

uv add ms-fabric-cli

poetry

poetry add ms-fabric-cli

Installing 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

Development Status :: 5 - Production/StableOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13

Tags

microsoft fabric command line toolfabric cli navigation automationworkspace management from terminalfabric item operations clionelake file operations command linefabric job scheduling clifabric authentication scripting
microsoft-fabriccli-toolautomation

More Utilities packages