te2-cli

Automates Tabular Editor 2 CLI operations for model deployment, scripting, and BPA analysis.

6|3|Updated Jul 4, 2026
One-click install
npx skills add https://github.com/InsightfulAnalytics/PBI_Agentic_Dev --skill te2-cli-insightfulanalytics
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: te2-cli
Source: https://github.com/InsightfulAnalytics/PBI_Agentic_Dev/tree/main/plugins/tabular-editor/skills/te2-cli
Command: npx skills add https://github.com/InsightfulAnalytics/PBI_Agentic_Dev --skill te2-cli-insightfulanalytics

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Working with the Tabular Editor 2 command line requires memorizing dozens of flags and syntax patterns for deployment, scripting, and Best Practice Analyzer runs, which slows down CI/CD setup and model automation for Power BI and Analysis Services. ## Core Features & Use Cases - CLI Syntax Reference: Complete flag reference for TabularEditor.exe covering deployment (-D, -O, -C, -P, -R), script execution (-S), output formats (-B, -TMDL, -F), and BPA analysis (-A). - CI/CD Integration: Ready-to-use pipeline examples for Azure DevOps and GitHub Actions, including service principal authentication via environment variables. - Use Case: You need to deploy a model.bim file to a Power BI Premium workspace from a GitHub Actions pipeline. Use this Skill to construct the correct TabularEditor.exe command with overwrite and connection flags, plus service principal authentication. ## Quick Start Ask the agent to deploy your local Model.bim file to a Power BI workspace XMLA endpoint using the Tabular Editor 2 CLI with overwrite and connection deployment options.

Frequently Asked Questions about te2-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy a Power BI model using Tabular Editor 2 CLI?▼

Run TabularEditor.exe with the model file followed by -D and the target server and database name, plus deployment flags like -O to overwrite and -C to deploy data sources. For Power BI workspaces, use the XMLA endpoint URL as the server.

How to run Best Practice Analyzer from the command line?▼

Use the -A flag followed by a rules file path or URL, such as TabularEditor.exe Model.bim -A rules.json. Add -V for Azure DevOps logging output or -G for GitHub Actions logging output.

What is the difference between Tabular Editor 2 CLI and the new te CLI?▼

TabularEditor.exe is the free, Windows-only TE2 CLI that remains stable and supported. The newer te CLI is built on Tabular Editor 3, is cross-platform, and is in preview until Q4 2026.

Can Tabular Editor 2 CLI run on Mac or Linux?▼

No, TabularEditor.exe is Windows-only. For Mac or Linux environments, run it through a Windows VM or container, or use the newer cross-platform te CLI built on Tabular Editor 3.

Why does Tabular Editor CLI deployment fail with authentication errors?▼

Authentication failures usually mean the AZURE_CLIENT_ID, AZURE_TENANT_ID, or AZURE_CLIENT_SECRET environment variables are missing or incorrect. Also verify the service principal has workspace access and required API permissions.

How do I save a model as TMDL format from the command line?▼

Use the -TMDL flag followed by an output folder path, such as TabularEditor.exe Model.bim -TMDL output/. This converts the model to the modern TMDL folder structure instead of the legacy model.bim JSON format.