Create, move and delete TIA Portal blocks and folders
Project housekeeping: the folder tree, the blocks and UDTs inside it, and the instance DBs that go with an FB. Every verb here writes, so every verb here is a preview until you pass --apply.
12 of the 351 verbs · TIA Portal V19, V20 and V21
tia create-folder --path A/B [--path C/D ...] [--tags|--types] [--apply]- repeating --path creates the whole tree in one attach
tia delete-folder --path A/B [--tags|--types] [--apply]- See the verb's own
--help. tia delete-block --name X [--apply]- See the verb's own
--help. tia create-instance-db --name X --of FB [--folder A/B] [--apply] (a template imported by XML does not carry the iDB → 'Missing instance DB')- See the verb's own
--help. tia move-block --name X | --pattern P* --folder A/B [--out DIR] [--apply]- export→delete→import
tia delete-type --name X [--apply]- UDT
tia import-type --file F.xml [--folder A/B] [--apply]- --folder is the full path from the UDT root, created if missing
tia move-type --name X --folder A/B [--out DIR] [--apply]- export→delete→import, same as move-block
tia scaffold --manifest F.json [--replace OLD=NEW ...] [--apply] [--force]- tree + templates in a new project
tia list-units [--name X]- read-only: software units of the PLC
tia create-unit --name X [--namespace N] [--author A] [--apply]- a unit is a part of the program edited and downloaded on its own
tia delete-unit --name X [--apply]- deletes the unit WITH everything inside it
Common questions
How do I create a TIA Portal block folder from a script?
tia create-folder, with tia scaffold for a whole template tree. Every one of these 12 verbs writes, so every one is a preview until --apply.
Can I move a block between folders without opening TIA Portal?
tia move-block moves a block and tia move-type a UDT; tia create-instance-db adds the instance DB an FB needs.
Run these verbs on your own project
Every verb above takes JSON on the way out and plain flags on the way in. 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.
Other 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
- 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