Skip to content

Commit 214d090

Browse files
MariaJoseFFclaude
andcommitted
docs(cli): remove the load, open, and replace commands
These three commands were removed from the CLI during Limited Public Preview, so the docs should carry no trace of them: - `replace` (PR !4065) - unguarded model-wide string replacement - `load` (PR !4066) - superseded by `te get .` and `te ls Tables` - `open` (PR !4071) - Windows-only TE3 Desktop launcher Removed the three command-reference sections and every mention across the CLI docs. Two spots needed rewriting rather than deletion: - `te find` documented its `--in <scope>` values as "as per `te replace`"; the scope list is now inlined so the entry stands on its own. - The `te replace` dry-run tip in te-cli-automation is now a general preview-before-`--save` idiom. The `open` removal also deleted the `te3ExePath` config key and the `TE3_EXE_PATH` environment variable from CliConfig.cs and ConfigCommand.cs, so both are dropped from the config schema, the File paths table, and the environment variables table. Applied the same changes to the es and zh translations under localizedContent/ so no stale references remain anywhere in the repo. No release-note entry: the CLI is still in preview, so these commands were never generally available. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent bc37b49 commit 214d090

21 files changed

Lines changed: 28 additions & 190 deletions

content/features/Command-line-Options.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ The Tabular Editor CLI (`te`) is the cross-platform successor to `TabularEditor.
5656
| **Model editing in pipeline** | | |
5757
| Run C# scripts | `-S` flag | `te script` - multiple scripts, inline code, stdin, `--dry-run`, preprocessor symbols (`TECLI`) |
5858
| Run macros | No | `te macro run` with `--on <object>` context |
59-
| Set/get properties | No | `te get`, `te set`, `te add`, `te rm`, `te mv`, `te replace` |
59+
| Set/get properties | No | `te get`, `te set`, `te add`, `te rm`, `te mv` |
6060
| DAX formatting | No | `te format` - all expressions or single object, DAX and M |
6161
| **Inspection** | | |
6262
| List model objects | No | `te ls` with wildcard path filters, `--type`, `--paths-only`, `--output-format bim` |

content/features/te-cli/te-cli-automation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Use `--output-format` to switch any command between text (human-readable) and ma
2626
| -- | -- | -- |
2727
| `text` (default) | Human-readable use | Plain text on stdout regardless of whether the stream is a TTY or piped. |
2828
| `json` | Machine-readable use | Always valid JSON to stdout. Use `--error-format json` if you also want machine-readable errors on stderr. |
29-
| `csv` | Tabular results (`query`, `bpa run`, `bpa rules`, `vertipaq`, `validate`, `test`, `refresh`, `profile list`, `session list`, `find`, `replace`, `get`, `ls`) | RFC 4180 escaping. |
29+
| `csv` | Tabular results (`query`, `bpa run`, `bpa rules`, `vertipaq`, `validate`, `test`, `refresh`, `profile list`, `session list`, `find`, `get`, `ls`) | RFC 4180 escaping. |
3030
| `tmsl` (alias `bim`) | Whole-object TMSL/BIM serialization | Accepted by `te get` and `te list`. |
3131
| `tmdl` | Whole-object TMDL serialization | Accepted by `te get` only (single object). |
3232

@@ -179,7 +179,7 @@ The resulting TMSL can be reviewed in a pull request, committed, executed by the
179179
A handful of small idioms that come up often when composing `te` commands in scripts or pipelines:
180180

181181
- **Idempotent creates and removes.** `te add Sales/Marker -t Measure -i "0" --if-not-exists --save` and `te remove Sales/OldMeasure --if-exists --save` both exit `0` whether or not the object existed - safe to re-run in CI.
182-
- **Dry-run diffs.** `te replace` is dry-run by default; add `--save` only when you're satisfied with the preview.
182+
- **Preview before persisting.** Mutating commands only touch the source when you pass `--save`; run them without it first to review what would change.
183183
- **Emit TMSL for review.** `te deploy ./model --xmla deploy.tmsl` produces the deployment script without touching the server - useful for DBA review or manual apply.
184184
- **Path-only output.** `te list --paths-only` and `te find --paths-only` emit one object path per line, ideal for piping to `xargs`, `te get`, or `te set`. The model-level containers (`te list Measures`, `te list Columns`) compose well with this for whole-model sweeps.
185185
- **Benchmarking queries.** `te query --trace --cold --runs 5` runs a DAX query with cold cache, five iterations, and captures FE/SE trace events.

content/features/te-cli/te-cli-commands.md

Lines changed: 1 addition & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -168,16 +168,6 @@ positional `<model>` argument → `--model` global flag → `--server`/`--databa
168168
169169
## Model I/O
170170

171-
### load
172-
173-
Load a semantic model and display a summary of the model - name, compatibility level, and high-level object counts (tables, measures, columns).
174-
175-
```bash
176-
te load ./model # TMDL folder
177-
te load model.bim # BIM file
178-
te load -s MyWorkspace -d MyModel # Remote workspace
179-
```
180-
181171
### save
182172

183173
Save a model to disk. Use it to write a remote workspace model to local files, convert formats, or persist edits back to the source.
@@ -203,16 +193,6 @@ te save -o ./out -s my-workspace -d my-model --skip-validation # Fast download
203193
> [!TIP]
204194
> Use `te save -o <path> -s <workspace> -d <model>` to download a remote model to disk. Pair with `--skip-validation` for the fastest passthrough when you only need the bytes (no DAX semantic analysis).
205195
206-
### open
207-
208-
Open a model in Tabular Editor 3 Desktop. **Windows only** (requires TE3 to be installed). With no arguments, launches TE3 with a blank workspace.
209-
210-
```bash
211-
te open # Launch TE3 with a blank workspace
212-
te open ./my-model # Open a TMDL folder in TE3
213-
te open ./model.bim # Open a BIM file in TE3
214-
```
215-
216196
### init
217197

218198
Create a new empty semantic model at the given path. Defaults to a TMDL model in `PowerBI` compatibility mode at compatibility level 1702.
@@ -321,37 +301,6 @@ te move Sales/Revenue Sales/TotalRevenue --save # Rename measure
321301
te move Sales/Date Sales/CalendarDate -t Hierarchy --save # Disambiguate hierarchy from column
322302
```
323303

324-
### replace
325-
326-
Find and replace text across model objects. Dry-run by default; add `--save` to apply.
327-
328-
`te replace` accepts:
329-
330-
- `--in <scope>` - scope: `names`, `expressions`, `descriptions`, `displayFolders`, `formatStrings`, `annotations`, `all` (default: `all`).
331-
- `--regex` - treat the find pattern as a regular expression.
332-
- `--case-sensitive` - enable case-sensitive matching.
333-
- `--dry-run` - preview changes without applying. Default behavior.
334-
- `--save` - persist the mutation to the source location. Mutually exclusive with `--revert` and `--stage`.
335-
- `--save-to <path>` - save to a different path (implies `--save`).
336-
- `--serialization <fmt>` - model serialization: `tmdl`, `bim` (alias `tmsl`), `database.json`.
337-
- `--force` - save even if the replacement introduces DAX validation errors.
338-
339-
`--in expressions` walks every expression-bearing property:
340-
341-
- **Measure**: `Expression`, `DetailRowsExpression`
342-
- **KPI**: `TargetExpression`, `StatusExpression`, `TrendExpression`
343-
- **Partition**: source M, polling M
344-
- **Table permission**: `FilterExpression`
345-
- **Calculation group**: selection expressions
346-
- **Calculated column**: DAX expression
347-
348-
Adding new expression-shaped properties to the model surfaces them automatically.
349-
350-
```bash
351-
te replace "OldTable" "NewTable" --in expressions --save
352-
te replace "SUM" "SUMX" --regex --in expressions --save
353-
```
354-
355304
## Inspection
356305

357306
### list
@@ -411,7 +360,7 @@ Search for text across model objects.
411360

412361
`te find` accepts:
413362

414-
- `--in <scope>` - as per `te replace` (default `all`).
363+
- `--in <scope>` - scope: `names`, `expressions`, `descriptions`, `displayFolders`, `formatStrings`, `annotations`, `all` (default: `all`).
415364
- `--regex`, `--case-sensitive`, `--paths-only`.
416365
- `--no-multiline` - collapse multi-line match context to a single line. Text output only.
417366

content/features/te-cli/te-cli-config.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ applies_to:
1818

1919
The Tabular Editor CLI reads optional configuration from a JSON file. Configuration controls three things:
2020

21-
- **File paths** - where the CLI reads macros, BPA rules, and (optionally) the TE3 Desktop executable, and where to write the query log.
21+
- **File paths** - where the CLI reads macros and BPA rules, and where to write the query log.
2222
- **Behavioral defaults** - BPA gates, auto-format, validation.
2323
- **Saved connection profiles** - the list of named profiles you can switch between.
2424

@@ -109,7 +109,6 @@ The complete JSON config schema with all keys at their default values. Use this
109109
"disableTelemetry": false,
110110

111111
"queryLog": null,
112-
"te3ExePath": null,
113112

114113
"profiles": {}
115114
}
@@ -123,7 +122,6 @@ Set these in your config to avoid passing the same paths on every command. Per-c
123122
| -- | -- |
124123
| `macros` | Explicit path to a macros JSON file (typically `MacroActions.json`). Resolved by every `te macro` command. Point at a shared file (network share, repo-local, or even the TE3 desktop file) to reuse the same set of macros across machines and between the CLI and TE3 Desktop. |
125124
| `bpa.rules` | Ordered list of paths or URLs to BPA rule files. `te bpa run` and the deploy/save gate load **every** existing entry; `te bpa rules list` and `te config paths` use the first existing entry. Comma-separated values on `te config set bpa.rules ...` are split into the array. |
126-
| `te3ExePath` | Explicit path to the Tabular Editor 3 Desktop executable (`TabularEditor.exe`). Used **only** by `te open` to launch the desktop app; safe to leave unset on Linux/macOS or when you don't use `te open`. If unset, `te open` falls back to a `PATH` lookup. |
127125
| `queryLog` | Path to a log file where every `te query` invocation appends its query text and execution metadata. Useful for audit trails or analyzing query patterns over time. Supports `~` for the home directory (e.g., `~/.config/te/queries.log`). |
128126

129127
### Path resolution priority
@@ -145,7 +143,7 @@ All BPA-related settings live under the `bpa` object and are addressed via dotte
145143
| Key | Default | Description |
146144
| -- | -- | -- |
147145
| `autoFormat` | `false` | Run the DAX Formatter on modified expressions after `te add` / `te set` / `te move` / `te macro run`. Uses the in-house formatter by default; opt into the SQL BI web service via `formatOptions.useSqlBiDaxFormatter`. |
148-
| `validateOnMutation` | `true` | After a mutating command (`add`, `set`, `mv`, `replace --save`, `macro run`), check that every `Table[Column]` reference in the model still resolves. Catches dangling references introduced by renames or removals before they reach deploy. |
146+
| `validateOnMutation` | `true` | After a mutating command (`add`, `set`, `mv`, `macro run`), check that every `Table[Column]` reference in the model still resolves. Catches dangling references introduced by renames or removals before they reach deploy. |
149147
| `bpa.onMutation` | `false` | Run a scoped BPA analysis after each mutating command (`set`, `add`, `mv`, `rm`, `macro run`). Only the affected table's objects are checked, not the whole model - useful for fast feedback during iterative edits. |
150148
| `bpa.onDeploy` | `true` | Run the BPA gate before `te deploy` executes. The deploy is aborted if any rule fires at severity >= error. Bypass per-invocation with `--skip-bpa`, or auto-fix with `--fix-bpa`. |
151149
| `bpa.onSave` | `true` | Run the BPA gate before `te save -o` writes to disk. Bypass per-invocation with `--skip-bpa` or `--force`. |
@@ -226,7 +224,7 @@ Both `bpa.builtInRules` and `bpa.disabledBuiltInRuleIds` apply consistently to t
226224

227225
## Post-mutation behavior
228226

229-
When you run a mutating command (`te add`, `te set`, `te move`, `te replace --save`, `te macro run`), the CLI performs these checks automatically:
227+
When you run a mutating command (`te add`, `te set`, `te move`, `te macro run`), the CLI performs these checks automatically:
230228

231229
1. **TOM errors** are always surfaced. Invalid DAX or M in measures, columns, partitions, or calculation items always fails the command.
232230
2. **Schema validation** (`validateOnMutation`, default `true`) verifies that `Table[Column]` references in DAX still resolve, cross-checking metadata consistency.
@@ -245,7 +243,6 @@ Use the following CLI-specific environment variables for paths, behavior, and di
245243
| `TE_MACROS_PATH` | Override the macros file path (second in resolution order - see above). Read by `te macro` commands. |
246244
| `TE_BPA_RULES` | Override the BPA rules file/URL list used by `te bpa run` and `te bpa rules` subcommands. |
247245
| `TE_BPA_CONFIG` | Override the path to the BPA gate config (`.te-bpa.json`) the deploy/save gate reads. |
248-
| `TE3_EXE_PATH` | Path to the Tabular Editor 3 desktop binary. Used **only** by `te open`; safe to leave unset on Linux/macOS or when you don't use `te open`. Falls back to `PATH` lookup. |
249246
| `TE_DEBUG` | Set to `1` to enable debug logging globally (same as `--debug` or `debug: true` in config). |
250247
| `NO_SPINNER` | Set to `1` or `true` to disable animated progress indicators (alternative to `spinner: false` in config). |
251248
| `CI` | Auto-detected. When `1` or `true`, the CLI disables the spinner and switches to plain output. Most CI runners set this automatically. |

content/features/te-cli/te-cli-migrate.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ TE2 compatibility mode is activated in any of three ways:
2626

2727
1. **Binary name.** Rename `te` to `te2` (or symlink it) and the CLI runs in TE2-exact mode. This is the drop-in replacement path: swap `TabularEditor.exe` for `te2` in your existing pipeline and the same arguments work.
2828
2. **Environment variable.** Set `TE_COMPAT=te2` before invoking `te` to force TE2 mode.
29-
3. **Auto-detection.** If the first argument isn't a `te` subcommand (`load`, `deploy`, …) and at least one recognized TE2 flag appears somewhere in the argument list, the CLI auto-routes to TE2 mode. This means most existing TE2 invocations work without any changes.
29+
3. **Auto-detection.** If the first argument isn't a `te` subcommand (`deploy`, `validate`, …) and at least one recognized TE2 flag appears somewhere in the argument list, the CLI auto-routes to TE2 mode. This means most existing TE2 invocations work without any changes.
3030

3131
```bash
3232
# All three are equivalent - each runs in TE2 mode

content/features/te-cli/te-cli-skill.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ A skill is a Markdown file an AI agent loads on demand based on your prompt. Its
2828

2929
The skill teaches the agent the full `te` surface:
3030

31-
- every `te` command across all families - load, save, init, deploy, refresh, bpa, validate, query, script, format, and more
31+
- every `te` command across all families - save, init, deploy, refresh, bpa, validate, query, script, format, and more
3232
- authentication patterns - interactive, service principal with secret or certificate, environment variables, managed identity
3333
- object path grammar - slash form, DAX form, and wildcards
3434
- the staging model - `--save`, `--stage`, and `--revert` behavior

content/features/te-cli/te-cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ See @te-cli-commands for a full command reference with syntax, options, and exam
4747

4848
| Family | What it does | Example commands |
4949
| -- | -- | -- |
50-
| [Model I/O](xref:te-cli-commands#model-io) | Load, save, convert, initialize models | [`te load`](xref:te-cli-commands#load), [`te save`](xref:te-cli-commands#save), [`te init`](xref:te-cli-commands#init) |
50+
| [Model I/O](xref:te-cli-commands#model-io) | Save, convert, initialize models | [`te save`](xref:te-cli-commands#save), [`te init`](xref:te-cli-commands#init) |
5151
| [Model Editing](xref:te-cli-commands#model-editing) | Get/set properties, add/remove/move objects | [`te set`](xref:te-cli-commands#set), [`te add`](xref:te-cli-commands#add), [`te remove`](xref:te-cli-commands#remove), [`te move`](xref:te-cli-commands#move) |
5252
| [Inspection](xref:te-cli-commands#inspection) | List objects, search, diff, dependency analysis | [`te list`](xref:te-cli-commands#list), [`te find`](xref:te-cli-commands#find), [`te diff`](xref:te-cli-commands#diff), [`te deps`](xref:te-cli-commands#deps) |
5353
| [Analysis & Quality](xref:te-cli-commands#analysis-and-quality) | Validate, run BPA, format DAX, analyze storage | [`te validate`](xref:te-cli-commands#validate), [`te bpa run`](xref:te-cli-commands#bpa-run), [`te format`](xref:te-cli-commands#format), [`te vertipaq`](xref:te-cli-commands#vertipaq) |

localizedContent/es/content/features/Command-line-Options.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ La CLI de Tabular Editor (`te`) es la sucesora multiplataforma de `TabularEditor
5757
| **Edición de modelos en la canalización** | | |
5858
| Ejecutar C# Script | opción `-S` | `te script` - múltiples scripts, código en línea, stdin, `--dry-run`, símbolos del preprocesador (`TECLI`) |
5959
| Ejecutar macros | No | `te macro run` con contexto `--on <object>` |
60-
| Establecer/consultar propiedades | No | `te get`, `te set`, `te add`, `te rm`, `te mv`, `te replace` |
60+
| Establecer/consultar propiedades | No | `te get`, `te set`, `te add`, `te rm`, `te mv` |
6161
| Formato DAX | No | `te format` - todas las expresiones o un único objeto; DAX y M |
6262
| **Inspección** | | |
6363
| Listar objetos del modelo | No | `te ls` con filtros de ruta con comodines, `--type`, `--paths-only`, `--output-format bim` |

0 commit comments

Comments
 (0)