te-cli

Manages Power BI and Analysis Services semantic models from the terminal using the Tabular Editor CLI.

887|131|Updated Jan 15, 2026
One-click install
npx skills add https://github.com/data-goblin/power-bi-agentic-development --skill te-cli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: te-cli
Source: https://github.com/data-goblin/power-bi-agentic-development/tree/main/plugins/tabular-editor/skills/te-cli
Command: npx skills add https://github.com/data-goblin/power-bi-agentic-development --skill te-cli

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Editing, validating, deploying, and testing Power BI / Fabric semantic models from the terminal is error-prone without guidance: the te CLI has staging semantics, path asymmetries, BPA gates, and CI requirements that are easy to get wrong. This Skill gives an AI agent the operational knowledge to drive the cross-platform Tabular Editor CLI correctly on macOS, Linux, and Windows.

Core Features & Use Cases

  • Model authoring and editing: Scaffold models with te init, add or modify measures, columns, relationships, and partitions with te add/te set, and persist changes with the --save staging model.
  • Quality gates and analysis: Run te validate, te bpa run, te format, and te vertipaq to catch DAX errors, antipatterns, and storage bloat before deployment.
  • Deployment, refresh, and testing: Deploy over XMLA with te deploy, trigger refreshes, and run DAX regression test suites or A/B comparisons across workspaces.
  • CI/CD integration: Build GitHub Actions or Azure DevOps pipelines with --non-interactive, --force, --auth env, and TRX test reporting.
  • Use Case: A user asks to rename a measure and propagate the change safely; the agent stages the edit with te move, runs te validate and te bpa run, formats DAX, and deploys with the BPA gate intact.

Quick Start

Ask the agent to check the te CLI version and authentication status, then load your local TMDL model folder and list its measures.

Frequently Asked Questions about te-cli

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

FAQPage Schema
How do I edit a Power BI semantic model from the command line?

Use the te CLI: load the model with te load, modify objects with te set or te add, and persist changes by passing --save since edits stage in memory by default. Run te validate and te bpa run afterward to gate the changes.

How do I deploy a semantic model to a Fabric workspace in CI/CD?

Run te deploy with -s and -d for the workspace and model, plus --force, --non-interactive, and --auth env using AZURE_CLIENT_ID, AZURE_CLIENT_SECRET, and AZURE_TENANT_ID. Add --ci github or --ci azdo for pipeline annotations.

What is the difference between the te CLI and TabularEditor.exe (TE2)?

The te CLI is a cross-platform binary for macOS, Linux, and Windows built on the TE3 engine, while TabularEditor.exe (TE2) is the legacy Windows-only tool. TE2 flag syntax like -D or -S must go through the compat layer or TE2 directly.

Why does te query fail with 'No server specified' on a local model?

DAX-executing commands like te query, te refresh, and te test run require a deployed model, so a local -m path alone is insufficient. Pass -s and -d for a workspace connection, or use an active te connect session.

Why don't my te set or te add changes persist?

Mutating commands stage edits in memory by default and discard them on exit. Pass --save to persist, or change the default behavior with te config set interactiveEditMode save.

Can the te CLI run BPA rules and format DAX automatically?

Yes, te bpa run executes best-practice rules with --fail-on thresholds and --fix for auto-remediation, while te format reformats DAX or M. BPA gates run by default on te deploy and te save unless bypassed with --skip-bpa.