Tia-Portal-CLI

Download, upload and compare a Siemens PLC online

The online boundary. These verbs scan the network for reachable targets, go online, download or upload a station, and compare what is in the PLC against what is in the project before anything is written.

9 of the 351 verbs · TIA Portal V19, V20 and V21

tia online-state [--plc X]
read-only: connection state of the PLC (Offline/Online/NotReachable/...), whether the access configuration was ever made (isConfigured) and the connection modes
tia list-online-targets [--plc X]
read-only: the whole access tree
tia net-scan [--pc-interface X]
read-only: what answers on the network (DCP, the GUI's Accessible devices) on each PC interface
tia go-online [--plc X] [--pc-interface PLCSIM] [--answer Question=Selection] [--user U] [--password-env VAR | --password P] [--target T] [--apply] [--allow-physical]
applies the access configuration and connects
tia go-offline [--plc X] [--apply]
disconnects
tia download [--plc X | --device D] [--pc-interface PLCSIM] [--options hardware,software] [--answer Question=Selection] [--password-env VAR | --password P] [--target T] [--to-dir DIR] [--apply] [--allow-physical]
--to-dir writes the download into a folder instead of a station: the only route for a WinCC Unified PC RT, which has no connection configuration
tia upload-station --device D [--pc-interface PLCSIM] [--answer Question=Selection] [--password-env VAR | --password P] [--apply] [--allow-physical]
uploads a station that is ACCESSIBLE on the network into the project
tia fingerprint-station --device D [--pc-interface PLCSIM] [--answer Question=Selection] [--password-env VAR | --password P] [--allow-physical]
read-only: the fingerprint of a station that answers on the network, for a quick station compare
tia compare-software [--plc X] [--to OTHER-PLC] [--max 200]
read-only: without --to it compares the PLC software against the CONNECTED CPU (CompareToOnline, needs go-online first)

Common questions

How do I download a Siemens PLC station from the command line?

tia net-scan and tia list-online-targets find the target, tia go-online opens the connection, and tia download or tia upload-station moves the station.

How do I check whether the PLC matches the project?

tia compare-software compares offline against online before anything is written; tia online-state reports the operating state and tia fingerprint-station the station's fingerprint.

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