Agent-native CLI for managing Microsoft Fabric artifacts and data.
Composable by design: commands just work together with JSON output by default, errors that explain how to fix things and what to try next, and results that pipe straight into the next command. Follows the 10 principles for agent-native CLIs.
Everything fabio does is achievable via the public Fabric REST APIs — fabio encodes the operational knowledge so coding agents can skip the trial and error, saving time, tokens, and money.
Microsoft Fabric has two official tools: Fabric CLI (fab — interactive Python CLI) and fabric-cicd (Python CI/CD library). fabio is designed to be a strict superset — everything they do, fabio does too, plus capabilities neither offers.
| Capability | Fabric CLI | fabio |
|---|---|---|
| Design philosophy | Interactive-first (shell with cd/ls) |
Agent-native (non-interactive, structured output) |
| CI/CD deployment | Wraps fabric-cicd library | Native engine with content-hash diffing |
| Default output | Human text | JSON (machine-parseable by default) |
| Item type coverage | ~20 commands | 74 command groups |
| SQL query execution | No | Warehouse, SQL Database, Lakehouse (T-SQL via TDS) |
| KQL query execution | No | KQL Database and Eventhouse queries |
| Data Agent interaction | No | Create, publish, and query Data Agents (chat) |
| Git integration | No | Full lifecycle: connect, status, commit, pull, switch branch |
| Notebook run | job run with --wait/--timeout |
Run with --wait, --timeout, --parameters, cancel |
| Bulk operations | No | item bulk-create, item bulk-delete (parallel) |
| OneLake sync | No | rsync-like sync with rename detection and dedup |
| Parallel data operations | No | Upload, copy, move, sync with bounded concurrency |
| Error handling | Generic messages | Machine-readable codes with hints and valid enum values |
| Runtime | Python 3.10+ (pip install) | Single Rust binary, no runtime |
| Capability | fabric-cicd | fabio |
|---|---|---|
| Source directory format | .platform directories |
Same (100% compatible) |
| Plan before apply | No (always pushes everything) | plan → review → apply |
| Skip unchanged items | No (re-uploads every definition) | SHA-256 content hash (terraform-like) |
| Rename detection | No (delete + create) | Logical ID matching (preserves item GUID) |
| Dry-run mode | No | --dry-run on all mutations |
| Export from workspace | No | deploy export |
| Local validation | No | deploy validate (no API calls needed) |
| Parameter scaffolding | No | deploy init-params (scans/diffs GUIDs automatically) |
| Output format | Python logs | JSON envelope (stdout/stderr separation) |
| Item types supported | 27 (deploy only) | 45 (deploy) + 74 command groups (full CRUD, query, run) |
| Selective filtering | Feature-flagged, limited | --exclude-regex, --include-items, --include-folders |
| Runtime | Python 3.9+ (pip install) | Single Rust binary, no runtime |
- AI-native interactions — create and query Data Agents, execute KQL for real-time intelligence, NL-to-KQL translation
- Self-correcting error hints — every error includes a
hintfield with the exact corrected command, valid enum values, or the logical next step so agents can retry without consulting docs - Self-improving — when new Fabric REST APIs are detected, fabio auto-implements support for new commands and item types
- Terraform-like convergence — re-running
deploy applyon a synced workspace produces zero API calls - Saved deployment plans —
--out plan.jsonthenapply --plan plan.json(with staleness detection) - Workspace folder management — infers folder hierarchy, creates/moves/deletes automatically
- Protected type deletion guards — Lakehouse/Warehouse/Eventhouse safe from accidental deletion
- Post-deploy automation — Semantic Model refresh, Environment publish, SQL endpoint polling
- Parallel execution — bounded-concurrency async deployment (default 8 parallel ops per type)
- Profile management — named profiles store default workspace, capacity, output format, and private link settings; switch contexts with
fabio profile use
Linux / macOS (installs to ~/.local/bin):
curl -fsSL https://raw.githubusercontent.com/iemejia/fabio/main/install.sh | bashWindows (PowerShell, installs to %LOCALAPPDATA%\fabio):
irm https://raw.githubusercontent.com/iemejia/fabio/main/install.ps1 | iexOr download pre-built binaries from the releases page (Linux, macOS, Windows — x64 and arm64).
Via agent skill (for AI agents using GitHub Copilot CLI or compatible platforms):
Install the iemejia/fabio-skills agent skill, which will automatically bootstrap fabio and provide Fabric-aware workflows out of the box. Using GitHub CLI:
gh skill install iemejia/fabio-skillsOr for other agents, clone into your skills directory:
git clone https://github.com/iemejia/fabio-skills ~/.agents/skills/fabio-skillsOn Windows (PowerShell):
git clone https://github.com/iemejia/fabio-skills "$env:USERPROFILE\.agents\skills\fabio-skills"Docker (multi-arch: amd64 + arm64):
docker pull ghcr.io/iemejia/fabio:latest
docker run --rm ghcr.io/iemejia/fabio --helpUse a specific version:
docker run --rm ghcr.io/iemejia/fabio:0.25.0 workspace listPass credentials via environment variables for non-interactive use:
docker run --rm \
-e AZURE_TENANT_ID=<tenant-id> \
-e AZURE_CLIENT_ID=<client-id> \
-e AZURE_CLIENT_SECRET=<client-secret> \
ghcr.io/iemejia/fabio workspace list --output json- JSON by default -- All commands output structured JSON for machine consumption
- Composable -- Pipe output between commands via stdout/stdin
- Structured errors -- Machine-readable error codes with hints and valid enum values
- Non-interactive -- No prompts; all parameters via flags/env/files
- Safe mutations --
--dry-runfor destructive operations; idempotent where possible - Bounded responses --
--limitfor list commands; concise default output - Async-aware --
--waitfor long-running operations; local job ledger - Discoverable --
fabio agent-contextprovides machine-readable command schema - Context-aware --
fabio context extractbuilds a workspace relationship graph for agent memory - Throttling-aware -- Bulk/batch APIs preferred; parallel execution with rate-limit retry
# 1. Sign in
fabio auth login
# 2. Create a workspace and assign compute capacity
fabio workspace create --name "sales-analytics" -o table
fabio workspace assign-capacity --id <workspace-id> --capacity <capacity-id>
# 3. Create a lakehouse for your data
fabio lakehouse create --workspace <workspace-id> --name "SalesLakehouse" -o table
# 4. Upload local CSV files (glob patterns, parallel upload)
fabio lakehouse upload --workspace <ws> --id <lh> --source "data/*.csv" --dest Files/raw/
# 5. Load a CSV into a managed Delta table
fabio lakehouse load-table --workspace <ws> --id <lh> \
--path Files/raw/orders.csv --table orders --mode Overwrite --format Csv
# 6. Check your tables
fabio lakehouse list-tables --workspace <ws> --id <lh> -o table
# 7. Query the data via SQL
fabio warehouse query --workspace <ws> --id <warehouse-id> \
--sql "SELECT country, SUM(revenue) as total FROM dbo.orders GROUP BY country"That's it -- from sign-in to queryable Delta tables in 7 commands.
# JSON (default) - structured envelope for agents
fabio workspace list
# {"data":[...],"count":2}
# Table - human-readable columns
fabio workspace list -o table
# Plain - one value per line for shell scripting
fabio workspace list -o plainAll errors are structured JSON on stderr with machine-readable codes:
{"error":{"code":"AUTH_REQUIRED","message":"Not authenticated. Run 'az login' first.","hint":"Run: az login"}}Error codes: AUTH_REQUIRED, FORBIDDEN, NOT_FOUND, CONFLICT, RATE_LIMITED, CAPACITY_INACTIVE, INVALID_INPUT, API_ERROR, TIMEOUT, NETWORK_ERROR
| Flag | Description |
|---|---|
-o, --output |
Output format: json (default), table, plain, csv, tsv |
--json |
Shorthand for --output json |
-q, --query |
JMESPath query expression (see jmespath.org) |
--quiet |
Suppress all stdout output |
-v, --verbose |
Enable HTTP/LRO/auth diagnostic tracing on stderr (for debugging only) |
--force |
Skip confirmation prompts for destructive operations |
--dry-run |
Preview mutations without executing |
--limit |
Limit number of results for list commands |
--all |
Fetch all pages (auto-paginate) |
--continuation-token |
Resume pagination from a previous token |
--profile |
Use a named profile for default settings |
--lro-timeout |
Override default LRO polling timeout (seconds) |
--hard-delete |
Permanently delete (skip recycle bin) -- on item deletes |
See COMMANDS.md for the full list of 74 command groups and 790+ subcommands.
If you are an AI agent, run fabio agent-context to get a machine-readable command schema with flags, types, mutability, and examples.
Fabio authenticates with its own dedicated Entra ID application ("Fabio CLI"). It supports multiple authentication methods for both interactive and non-interactive scenarios.
# Device code flow (interactive, any platform — works in headless/SSH)
fabio auth login
# Browser-based PKCE (opens system browser; SSO on macOS with Enterprise SSO Extension)
fabio auth login --browser
# Service principal with client secret (CI/CD, automation)
fabio auth login --service-principal --tenant <TENANT_ID> --client-id <CLIENT_ID> --client-secret <SECRET>
# Service principal with certificate (PEM or PFX)
fabio auth login --service-principal --tenant <TENANT_ID> --client-id <CLIENT_ID> --certificate ./cert.pem
fabio auth login --service-principal --tenant <TENANT_ID> --client-id <CLIENT_ID> --certificate ./cert.pfx --certificate-password <PW>
# Service principal with federated token (OIDC, for GitHub Actions / Azure Pipelines)
fabio auth login --service-principal --tenant <TENANT_ID> --client-id <CLIENT_ID> --federated-token <JWT>
fabio auth login --service-principal --tenant <TENANT_ID> --client-id <CLIENT_ID> --federated-token-file <PATH>
# Windows WAM broker SSO (Windows only — uses OS-level sign-in)
fabio auth login --wam
# Verify authentication
fabio auth statusSupported credential sources (in priority order):
- Fabio CLI identity (
fabio auth login-- recommended for interactive use) - Environment variables (
AZURE_CLIENT_ID,AZURE_TENANT_ID,AZURE_CLIENT_SECRET) - Managed Identity (when running on Azure)
- Azure CLI (
az login) - Azure Developer CLI (
azd auth login)
Windows-specific features:
- Token cache encrypted with DPAPI (
CryptProtectData, user scope) — matches Azure CLI behavior - WAM broker SSO via
--wamflag — uses Windows OS-level sign-in, no browser needed
Generate tab-completion scripts for your shell. Completions cover all 74 command groups, 790+ subcommands, and their flags.
# Add to ~/.bashrc
eval "$(fabio completions bash)"# Add to ~/.zshrc
eval "$(fabio completions zsh)"Or, for faster shell startup (generates a static file):
fabio completions zsh > ~/.zfunc/_fabio
# Ensure ~/.zfunc is in your fpath (add to ~/.zshrc before compinit):
# fpath=(~/.zfunc $fpath)fabio completions fish > ~/.config/fish/completions/fabio.fish# Add to your $PROFILE
fabio completions powershell | Out-String | Invoke-ExpressionOr, for persistent completions:
# Generate and save to profile directory
fabio completions powershell > "$HOME\Documents\PowerShell\Completions\fabio.ps1"
# Source in $PROFILE:
# . "$HOME\Documents\PowerShell\Completions\fabio.ps1"fabio completions elvish >> ~/.config/elvish/rc.elvAfter setting up completions, restart your shell or source the configuration file. Then use Tab to complete commands, subcommands, and flags:
fabio lak<Tab> → fabio lakehouse
fabio lakehouse <Tab> → list show create upload ...
fabio lakehouse list --out<Tab> → --output
See EXAMPLES.md for usage examples covering all major workflows (lakehouse, notebooks, warehouses, real-time intelligence, semantic models, CI/CD, GitHub Actions, and more).
Fabio can update itself to the latest release:
# Check if a newer version is available
fabio upgrade --check
# Update to the latest release (downloads, verifies SHA256, replaces binary)
fabio upgrade
# Install a specific version
fabio upgrade --target-version 0.23.0git clone https://github.com/iemejia/fabio.git && cd fabio
# Install from source (requires Rust 1.85+)
cargo install --path .
# Build
cargo build
# Run tests (unit + offline integration -- 841 tests)
cargo test
# Run E2E tests (requires live Fabric tenant -- 721 tests)
cargo test -- --ignored
# Lint (pedantic + nursery, zero warnings required)
cargo clippy --tests -- -D warnings
# Format
cargo fmt- GitHub Actions CI runs on 6 targets: x64 + arm64 for Linux, macOS, and Windows
- Release workflow: tag-triggered, builds 5 binaries with SHA256 checksums (Linux x64/arm64, macOS arm64, Windows x64/arm64)
cargo-denychecks for security advisories and license compliance (permissive-only policy)- Dependabot auto-merge for passing dependency updates
- CodeQL and Secret Scanning enabled
- 74 command groups with 790+ subcommands
- 1562 tests (841 unit + 721 offline/E2E integration)
- Zero clippy warnings, zero unsafe code
| OS | Architectures |
|---|---|
| Linux | x86_64, aarch64 |
| macOS | x86_64, arm64 (Apple Silicon) |
| Windows | x86_64, aarch64 |
All platforms are built and tested in CI. Pre-built binaries and Docker images (multi-arch: amd64 + arm64) are published with every release.
MIT