Fabric CLI¶
The Fabric CLI (fab
) is a fast, fileâsystemâinspired commandâline interface for Microsoft Fabric. Explore, automate, and script your Fabric environmentâright from your terminal.
⨠Key features¶
- Fileâsystem navigation âÂ
ls
,cd
,mkdir
,cp
,rm
,run
. Work seemlesly in both Unix-style and Windows-style command names for file system operations. You can use whichever style you're most familiar with. For more details see File System Commands. - Scripting & interactive modes â switch fluidly between live shell and oneâoff commands.
- Automation ready â ideal for GitHub Actions, Azure Pipelines, or any Bash/PowerShell/Python workflow.
- Crossâplatform â Windows Terminal, macOS Terminal, Linux shells.
- Built on public APIs â Fabric REST, OneLake, and Microsoft.Fabric ARM endpoints.
đ Install¶
Prerequisites:
- Python version 3.10, 3.11, or 3.12 is installed on your machine.
- Ensure
python
(defined in thePATH
environment variable) is accessible from your terminal, by opening a terminal and runpython
.
Open a terminal and run:
This installs the latest version of fab
on Windows, MacOS, and Linux.
If youâre upgrading from an earlier version, simply run the same command with ââupgrade
.
Need a different method? See the release notes for standalone binaries and package managers as they become available.
đ Authenticate¶
fab
supports user, service principal, and managed identity identity types for signâin.
Identity Type | Scenario | Command Usage |
---|---|---|
User | Interactive browser login | fab auth login and select Interactive with a web browser |
Service Principal | Secret | fab auth login -u <client_id> -p <client_secret> --tenant <tenant_id> |
Certificate | fab auth login -u <client_id> --certificate </path/to/certificate.[pem\|p12\|pfx]> --tenant <tenant_id> |
|
Certificate + password | fab auth login -u <client_id> --certificate </path/to/certificate.[pem\|p12\|pfx]> -p <certificate_secret> --tenant <tenant_id> |
|
Federated token | fab auth login -u <client_id> --federated-token <token> --tenant <tenant_id> |
|
Managed Identity | Systemâassigned | fab auth login --identity |
Userâassigned | fab auth login --identity -u <client_id> |
For more details and scripts, see the auth examples.
đ Run Your First Command¶
Once youâre signed in, youâre one command away from exploring Fabric. Try and run ls
command to list all workspaces:
For a detailed list of available commands, see Commands, or explore advanced scenarios in our Usage examples.
đŹÂ Feedback & Support¶
Have thoughts on the Fabric CLI? We review every submission and your input directly shapes the Fabric CLI roadmap.
-
Submit feedback
Use our short Microsoft Form to report issues, request enhancements, or ask questions. -
Stay in the loop
Join the conversation in r/MicrosoftFabric on Reddit â follow updates, share tips, and connect with other CLI users. -
Share feature ideas
Post and vote on suggestions in the Fabric Ideas Portal. -
Get community help
Ask technical questions in the Developer Community Forum â the Fabric team and community experts are ready to help. -
Need enterprise assistance?
Reach out to your Microsoft account manager or open a ticket with the Fabric Support Team.
Thank you for helping us build the best CLI experience possible!