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
| Task | TIA Portal editor, by hand | Your own C# on Openness | Tia-Portal-CLI |
|---|---|---|---|
| List every block in a project | Open the project and expand the tree by hand | Attach to the Portal, resolve the Openness assembly, walk the block groups recursively | tia list-blocks, answered as JSON |
| Export a block as SCL | Right-click and export, one block at a time | The same boilerplate, plus a source-generation call per block type | tia export-block |
| Write ladder (LAD) into a project | Draw it by hand in the editor | Build SimaticML XML and import it: Openness has no text form for LAD | tia import-ladder |
| Add a device from the catalogue | Search the catalogue, drag it in, plug each module | Find the order number, then create and plug each device item in code | tia list-catalog, tia add-device, tia plug-module |
| Compare the project against what is in the PLC | The online compare dialog, read by eye | The online provider API, block state by block state | tia compare-software |
| Read a live value from a running PLC | Open an online watch table | A separate S7 protocol library: Openness is the engineering API, not the runtime one | tia rt-read, with no TIA Portal session at all |
| See a change before it lands | No preview: the editor writes as you click | Only if you build one | Every write verb is a preview until you pass --apply |
| Hand the result to a program or a model | Screenshots and notes | Whatever you serialise yourself | JSON out of every verb |
| Follow TIA Portal V19, V20 and V21 | Install each version and click in each | Rebuild against each major and bind the right assembly at run time | One whitelisted worker per major, picked at run time |
| Keep two callers from colliding | Not applicable: one person, one editor | Your problem to solve: Openness is single-session | A 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.
Verb families
- Open, create and archive a TIA Portal project from the command line11 verbs
- Read a Siemens TIA Portal project from the command line123 verbs
- Create, move and delete TIA Portal blocks and folders12 verbs
- Configure Siemens PLC hardware from the command line46 verbs
- Generate and import TIA Portal blocks in SCL and ladder46 verbs
- Install and harmonise a TIA Portal global library by command24 verbs
- WinCC Unified screens and tags from the command line26 verbs
- Siemens Safety groups, signatures and printouts by command12 verbs
- TIA Portal Multiuser server sessions from the command line12 verbs
- Download, upload and compare a Siemens PLC online9 verbs
- Run and inspect PLCSIM from the command line5 verbs
- Read and write live PLC values over S7 runtime5 verbs
- Browse, read and write OPC UA from the command line4 verbs
- TIA Portal certificates, syslog and password policy by command5 verbs
- Check the TIA Portal environment, licences and knowledge base11 verbs