Tia-Portal-CLI

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.

Start a 14-day free trial

Other verb families