CLI Documentation

May 24, 2026 ยท View on GitHub

The pbir CLI lets you work with Power BI reports as files and folders instead of clicking through Power BI Desktop for every change.

That matters most in three situations:

  • you need to inspect an unfamiliar report quickly
  • you want to apply the same change across many visuals or pages
  • you want a repeatable workflow for validation, backup, publish, and recovery

How Most People Use pbir

Most report edits follow the same pattern:

  1. Browse the report to understand its pages, visuals, fields, and current formatting.
  2. Make a targeted change with a focused command such as add, set, visuals, pages, or report.
  3. Run pbir validate before you consider the edit finished.
  4. Back up, publish, or reopen the report only after the local version is clean.

If you are new to the command line, start with ../getting-started.md first.

Command Groups

GroupCommandsWhen to use itDocs
Browse & Queryls, tree, find, cat, get, modelUnderstand what is in a report before editingbrowse.md
Create & Duplicatenew, add, cp, mvCreate reports, pages, visuals, or duplicate existing objectscreate.md
Modify & Formatset, rm, visuals, pagesChange formatting, layout, visibility, and object statemodify.md
Data & Statefields, filters, dax, bookmarks, annotationsManage bindings, filters, measures, bookmarks, and metadatadata.md
Theme & Schematheme, schemaApply defaults at scale and discover valid property namestheme.md
Operationsvalidate, backup, restore, download, publish, openProtect, verify, move, and ship reportsops.md
ConfigconfigControl CLI behaviorconfig.md
Report-Wide ChangesreportRename, rebind, convert, merge, and split whole reportsreport.md
End-to-End ExamplesCommon workflowsSee realistic command sequences, not isolated commandsworkflows.md

Path Syntax

pbir addresses report objects with filesystem-style paths:

Report.Report/Page.Page/Visual.Visual

Examples:

Sales.Report
Sales.Report/Overview.Page
Sales.Report/Overview.Page/Revenue.Visual
Sales.Report/**/*.Visual
My Workspace.Workspace/Sales.Report

Use .Workspace paths when a command targets Fabric rather than a local folder.

A Good Default Habit

If you are not sure what to do next, this is a safe baseline:

pbir tree "Sales.Report" -v
pbir backup "Sales.Report" -m "Before edits"
pbir validate "Sales.Report"

Help

pbir --help
pbir <command> --help