Tia-Portal-CLI

Tia-Portal-CLI vs writing C# against the TIA Portal Openness API

Siemens Openness is a .NET API, so the usual way to automate TIA Portal is to write C# against Siemens.Engineering.dll for each task, and the usual alternative is to keep clicking. Tia-Portal-CLI writes that layer once: 351 verbs that take plain flags and answer JSON, on the engineering machine, with every write verb a preview until --apply.

351 verbs · TIA Portal V19, V20 and V21 · one row per task below

TaskTIA Portal editor, by handYour own C# on Openness Tia-Portal-CLI
List every block in a projectOpen the project and expand the tree by handAttach to the Portal, resolve the Openness assembly, walk the block groups recursivelytia list-blocks, answered as JSON
Export a block as SCLRight-click and export, one block at a timeThe same boilerplate, plus a source-generation call per block typetia export-block
Write ladder (LAD) into a projectDraw it by hand in the editorBuild SimaticML XML and import it: Openness has no text form for LADtia import-ladder
Add a device from the catalogueSearch the catalogue, drag it in, plug each moduleFind the order number, then create and plug each device item in codetia list-catalog, tia add-device, tia plug-module
Compare the project against what is in the PLCThe online compare dialog, read by eyeThe online provider API, block state by block statetia compare-software
Read a live value from a running PLCOpen an online watch tableA separate S7 protocol library: Openness is the engineering API, not the runtime onetia rt-read, with no TIA Portal session at all
See a change before it landsNo preview: the editor writes as you clickOnly if you build oneEvery write verb is a preview until you pass --apply
Hand the result to a program or a modelScreenshots and notesWhatever you serialise yourselfJSON out of every verb
Follow TIA Portal V19, V20 and V21Install each version and click in eachRebuild against each major and bind the right assembly at run timeOne whitelisted worker per major, picked at run time
Keep two callers from collidingNot applicable: one person, one editorYour problem to solve: Openness is single-sessionA second concurrent call is refused, not queued into a corrupt session

The middle column is not hard, it is repetitive: the attach, the assembly resolve, the object-model walk and the version-specific build are the same work in every script, and they are what Openness asks of each one. The CLI pays that once per major version, which is also why the same call works on V19, V20 and V21.

Common questions

Do I need to write C# to use the TIA Portal Openness API?

Not with a command line in front of it. Openness ships as a .NET API, so by default every task is a C# program that attaches to the Portal, resolves Siemens.Engineering.dll and walks the object model. Tia-Portal-CLI does that once and answers 351 verbs instead.

Is Tia-Portal-CLI a replacement for TIA Portal?

No. It drives the TIA Portal installed on the same machine through Openness, so the Portal and its licences are still required. What it replaces is the clicking, and the C# you would otherwise write and maintain against each major version.

Run these verbs on your own project

Compare your own project against your own PLC in one call, before writing anything. Tia-Portal-CLI is local and on-premise: nothing is sent to a cloud service, and every write is a preview until you pass --apply. 14-day free trial, e-mail only, no card.

Start a 14-day free trial

Verb families