Open, create and archive a TIA Portal project from the command line
Every other verb needs an open project. These verbs own the session: they start a TIA Portal, open or create the project, answer the UMAC prompt of a protected one, save it elsewhere, archive it, and read or set the Portal's own settings.
11 of the 351 verbs · TIA Portal V19, V20 and V21
tia open-project --file X.ap21 [--no-ui] [--user U [--kind project|global] --password-env VAR | --password P]- --user answers the UMAC question of a protected project, and umac.asked says whether it was really asked
tia create-project --dir D --name N [--no-ui] [--major N]- --major picks the installed worker of that Portal major and starts its Portal
tia save-project- See the verb's own
--help. tia close-project [--save]- See the verb's own
--help. tia delete-project --dir D [--apply]- removes a disposable ZZ_TESTE_* project in one call: closes it unsaved in any Portal that has it open, then deletes the folder D and its D.backup sibling
tia save-project-as --dir D [--apply]- Save As of the open project
tia save-library-as --file LIB.al2x --dir D [--apply]- Save As of a user global library
tia archive-project --dir D [--name N] [--compressed] [--discard-restorable] [--apply]- backup of the PROJECT as .zapXX
tia retrieve-project --file X.zap19 [--dir DIR] [--apply]- ring 0, no Portal needed: unarchives a .zap19/.zap20/.zap21 project archive cleanly without overwriting non-empty targets
tia list-portal-settings [--like X]- read-only: the TIA Portal's own settings (Options > Settings) as Folder/Name with value and type
tia set-portal-setting --name Folder/Setting --value V [--apply]- one Portal setting
Common questions
How do I open a TIA Portal project without the GUI?
tia open-project starts a TIA Portal instance and opens the project headlessly through Openness, and tia close-project releases it. A UMAC-protected project takes its password on the same call; tia save-project-as and tia archive-project write a copy elsewhere.
Can two TIA Portal Openness calls run at the same time?
No. Openness is single-session, so a second concurrent call is refused instead of being allowed to corrupt the session. These 10 verbs own that boundary: every other verb needs a project one of them opened.
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
- 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