# te2-cli

The te2-cli skill helps Claude Code work with Tabular Editor 2 from the command line, from running scripts to checking and deploying models. Use it when automating Power BI model tasks.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf (Devin Desktop), Claude.ai · ★ 1104 repo stars
- Author: Kurt Buhler
- License: GPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/data-goblin/power-bi-agentic-development/tree/HEAD/plugins/tabular-editor/skills/te2-cli/SKILL.md
- Updated: 2026-10-28
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/te2-cli

## What it does

te2-cli provides command syntax for `TabularEditor.exe`. It covers opening models from `model.bim` or a TMDL directory, connecting to XMLA, and passing CLI options. The reference includes C# script execution, deployment, BPA checks, and saving output as `.bim` or TMDL.

For deployment, `-D` sets the server and database; additional flags control what gets deployed, or `-X` can generate an XMLA/TMSL script instead. BPA rules are supplied with `-A`, with separate logging options for Azure DevOps and GitHub Actions. Schema validation and process exit codes are covered too.

\`TabularEditor.exe` runs on Windows only, so Mac and Linux users need a Windows VM or container. This reference is for TE2; Tabular Editor 3 has a separate CLI, so its commands should not be assumed to match.

## Requirements
- Works with: Power BI

## Install

### Claude Code (native platform)

1. **Plugin marketplace**
In the agent chat (not a shell):
```text
/plugin marketplace add data-goblin/power-bi-agentic-development
```
In the agent chat (not a shell):
```text
/plugin install tabular-editor@power-bi-agentic-development
```
This installs the whole tabular-editor plugin with all its skills

2. **Skills CLI (Vercel)**
```bash
npx skills add data-goblin/power-bi-agentic-development --skill te2-cli -a claude-code
```

3. **Manually: put the files in place**
- File: `~/.claude/skills/te2-cli/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/te2-cli/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add data-goblin/power-bi-agentic-development --skill te2-cli -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/te2-cli/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add data-goblin/power-bi-agentic-development --skill te2-cli -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/te2-cli/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install data-goblin/power-bi-agentic-development plugins/tabular-editor/skills/te2-cli
```

2. **Manually: put the files in place**
- File: `.github/skills/te2-cli/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add data-goblin/power-bi-agentic-development --skill te2-cli -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/data-goblin/power-bi-agentic-development --path plugins/tabular-editor/skills/te2-cli
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/te2-cli/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/data-goblin/power-bi-agentic-development/tree/HEAD/plugins/tabular-editor/skills/te2-cli/SKILL.md

## When to use it
- deploy a `Model.bim` file to an XMLA server
- run a C# script and save the result as TMDL
- check a model against BPA rules from the command line
- generate an XMLA/TMSL script without deploying the model

## Example prompts
- Deploy `Model.bim` to the XMLA server `server` and database `database`, overwriting the existing model.
- Run `script.csx` on `Model.bim` and save the output as TMDL in `output/`.
- Check `Model.bim` against the rules in `rules.json` and enable Azure DevOps logging.

## Similar
- [Horizun PBI MCP](https://affpapa.org/en/nevibecode/mcp/horizun-pbi-mcp.md) — MCP server · ★ 34 repo stars
- [power-bi-devops-alm-best-practices](https://affpapa.org/en/nevibecode/rules/power-bi-devops-alm-best-practices.md) — rule · ★ 41430 repo stars
- [logifleet-pulse-supply-chain-analytics](https://affpapa.org/en/nevibecode/skills/logifleet-pulse-supply-chain-analytics.md) — skill · 659 installs
- [Power BI Authoring MCP Server (Local)](https://affpapa.org/en/nevibecode/mcp/power-bi-authoring-mcp-server-local.md) — MCP server · ★ 1297 repo stars
- [powerbi-modeling](https://affpapa.org/en/nevibecode/skills/powerbi-modeling.md) — skill · 9934 installs
- [power-bi-build](https://affpapa.org/en/nevibecode/skills/power-bi-build.md) — skill · 688 installs

From the same set: [data-goblin/power-bi-agentic-development](https://affpapa.org/en/nevibecode/by/data-goblin/power-bi-agentic-development.md) — 59 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
