CLI tools for Power BI report automation; built for humans, optimized for agents
Browse, edit, validate, and publish PBIR reports from the terminal, or let Claude Code, Codex, or Copilot drive the CLI after running pbir setup.
Warning
pbir.tools is in beta. Back up reports before large edits, especially bulk formatting, conversion, merge, and publish workflows.
Important
After installing pbir, run pbir setup to install agent skills, or install them from the power-bi-agentic-development marketplace. Without skills, your agent won't know how to use the CLI.
uv tool install pbir-cliOr with pip: pip install pbir-cli
Native installers (macOS / Windows)
Download the latest macOS or Windows installer from GitHub Releases.
macOS
- Download the installer from Releases and try to open it once.
- If macOS blocks it because the installer is unsigned or not notarized, open:
System Settings=>Privacy & Security - Scroll down to the
Securitysection. You should see a message about the blocked installer there. - Click
Open Anyway. - When macOS asks again, click
Openand finish the installation.
Windows
- Download the installer from Releases and run it.
- If Windows Defender SmartScreen shows
Windows protected your PC, clickMore info. - Confirm the installer name, then click
Run anyway. - Finish the installation.
After installation, open a new terminal and verify:
pbir --versionpbir ls # List reports
pbir tree "Sales.Report" -v # Full structure with fields
pbir model "Sales.Report" -d # Model schema
pbir add visual card "Sales.Report/Overview.Page" --title "Revenue" # Add a visual
pbir validate "Sales.Report" # Health checkpbir works with PBIR-format reports stored as folders, using paths like:
Report.Report/Page.Page/Visual.Visual
pbir is built for agents. To get the most out of it, install the Power BI plugins from the power-bi-agentic-development marketplace. These plugins provide skills, hooks, and agents that teach your agent how to work with Power BI reports, semantic models, themes, DAX, and more.
Option 1: Install the marketplace directly (recommended)
Follow the instructions at power-bi-agentic-development to install the full marketplace plugin with all skills, agents, and hooks. After installing, run /plugin in your agent to enable auto-update and install plugins.
Claude Code:
claude plugin marketplace add data-goblin/power-bi-agentic-developmentGitHub Copilot CLI:
copilot plugin install data-goblin/power-bi-agentic-developmentOption 2: Install plugins via pbir setup
pbir setupThis auto-detects which agents you have installed (Claude Code, Cursor, Copilot, Gemini CLI, Codex) and lets you pick which plugins to install interactively.
pbir setup --all # Install all plugins, all agents
pbir setup --agent claude-code --all # Claude Code only, all plugins
pbir setup --plugin reports --plugin fabric-cli # Specific pluginsAfter installing, your agent will have access to skills for report creation, visual formatting, field binding, conditional formatting, theme management, filters, bookmarks, and more -- all driven by pbir commands under the hood.
| Area | What it covers |
|---|---|
| Getting Started | Install, terminal basics, first 5 minutes |
| CLI Docs | Command groups and task-based CLI reference |
| CLI Workflows | End-to-end report workflows |
- We recommend you take a manual backup (copy + paste) of your report folder before using
pbirfor the first time. - Run
pbir backup "Report.Report"before larger edits. - Run
pbir validate "Report.Report"after every mutation. - Use
-fonly when you intend bulk or destructive operations. - Treat publish, convert, merge, and split commands as higher-risk workflows.
This software is provided "as is", without warranty of any kind, express or implied. The authors are not responsible for any data loss, report corruption, or other damages resulting from the use of this tool. You use pbir at your own risk. Always maintain independent backups of your reports before making changes, especially with bulk operations, format conversion, merge, and publish workflows.
- Run
pbir --helpfor the top-level CLI surface. - Run
pbir <command> --helpfor command-specific usage. - Report issues
