Skip to main content

pbi-enterprise-cli

Enterprise-grade Power BI & Microsoft Fabric automation CLI — TMDL/XMLA/REST backends, Python-native BPA governance, DAX testing & lint, PBIR report intelligence, an MCP server for AI agents, and AI-powered measures.

PyPI Python License Downloads codecov

uv tool install pbi-enterprise-cli
pbi doctor                                   # verify setup
pbi --backend file --path . govern check     # governance on your repo's TMDL — any OS
pbi dax lint --fail-on error                 # static DAX analysis
pbi ask "top 10 customers by revenue"        # English → DAX → results

Key differentiators

  • Real artifacts on any OS — the file backend reads TMDL/PBIP folders straight from your repo (pure Python, no .NET): governance, BPA, lint, docs, and semantic diff on ubuntu-latest
  • Live DAX on any OS — the rest backend runs DAX against published datasets via the executeQueries API; xmla gives full read/write on Windows
  • Python-native BPA runner — runs the Best Practice Analyzer BPARules.json format with no .NET; safe AST evaluation with an honest evaluated/skipped tally per run
  • Full Fabric lifecycle — item CRUD (Item Definition API), workspaces, git sync, deployment pipelines, OneLake, capacity ops, jobs, Direct Lake diagnostics
  • Quality platform — DAX lint/format, report lint + unused-field analysis, dbt-style data tests, schema contracts, RLS matrices, drift detection — all CI-gateable with SARIF output
  • AI-agent native — pbi mcp serve exposes everything to Cursor/Copilot/Claude Desktop; 12 bundled Claude Code skills install with pbi connect
  • One-step CI — published GitHub Action + pre-commit hooks; scaffold a full project with pbi init

Six backends, one API

Backend Use for OS
desktop Local Power BI Desktop (.pbip) Windows
xmla Premium / Fabric read-write Windows
file TMDL/PBIP repo artifacts — governance, lint, docs, diff Any
rest Live DAX via executeQueries Any
fabric Live model writes via the Item Definition API (no Windows) Any
mock Unit tests, demos Any

Command surface

model · measure · dax (query/test/lint/format/coverage) · report (authoring + lint/field-usage/diff/a11y) · visual · layout · theme · filter · govern (rules/BPA/plugins/SARIF/tenant scan) · tenant (usage/access/labels) · security · test (data/schema/rls/seed) · partition · deploy · snapshot · env (incl. drift) · diff · fabric (items/workspaces/git/pipelines/onelake/capacity/jobs/directlake) · pquery (M folding/lint) · ops (refresh chains/health) · migrate (direct-lake/pbix/dbt) · docs (dictionary/ERD/site) · mcp · ask · introspect · init · watch · server · skills

Install options

# Recommended
uv tool install pbi-enterprise-cli
uv tool install "pbi-enterprise-cli[all]"   # everything

# Alternative
pipx install pbi-enterprise-cli

# Fallback
pip install pbi-enterprise-cli
Extra Adds
[ai] Claude AI: pbi ask, measure generate, govern explain
[xmla] MSAL auth for XMLA/Fabric + device flow
[sources] SQL / Excel / REST source profiling
[server] FastAPI REST server
[viz] WCAG theme validation

Requirements

  • Python 3.10–3.13
  • Windows for the desktop and xmla backends (.NET AMO, DLLs bundled)
  • Linux/macOS fully supported via the file, rest, and mock backends

Metadata

Release files for pbi-enterprise-cli 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pbi-enterprise-cli 1.2.0
File Size Uploaded Provenance Actions
pbi_enterprise_cli-1.2.0.tar.gz 280.3 kB With provenance Details for pbi_enterprise_cli-1.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pbi-enterprise-cli 1.2.0
File Interpreter ABI Platform Actions
pbi_enterprise_cli-1.2.0-py3-none-any.whl Python 3 none any Details for pbi_enterprise_cli-1.2.0-py3-none-any.whl

Total release size: 602.1 kB

Release files / pbi_enterprise_cli-1.2.0.tar.gz

Download URL pbi_enterprise_cli-1.2.0.tar.gz
Size 280.3 kB
Tags Source
SHA-256 checksum
How to use checksums
7bbd227ea292c64a9fab4353c53280b2eb44209d0a0269e197516da88a644230
BLAKE2b-256 checksum
How to use checksums
49e33888da84407f85c8bd1143351d5834ae2ecc9006a32b91a2851bd07f558f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 27, 2026.

Transparency log

Release files / pbi_enterprise_cli-1.2.0-py3-none-any.whl

Download URL pbi_enterprise_cli-1.2.0-py3-none-any.whl
Size 321.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
de2746527e9607b0014407e6d37b8f3723af1804da0f4989a795f64a8b9ed924
BLAKE2b-256 checksum
How to use checksums
3158aa73fa60d5acfa240550cd991975f85a45efde758916486bed72a7e50f86
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 27, 2026.

Transparency log

Security for pbi-enterprise-cli 1.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pbi_enterprise_cli-1.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 27, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page