targetcli review
A practical choice for configuring Linux storage targets on one host, not for managing the SAN fabric.
Reviewed by iTechGuides Editors · Editorial team · Updated Dec 2026
For Linux administrators who need to expose block storage from a host, targetcli provides an open-source command-line shell for the kernel’s Linux-IO (LIO) target subsystem. It configures iSCSI, Fibre Channel, and FCoE targets on the local machine. The shell organizes the host’s target configuration as an object tree, so administrators can browse backstores, targets, and logical units within the same view. It’s a fit when the job is to define what storage a Linux host presents and which initiators can access it.
The useful distinction is between the storage backing a logical unit and the initiator that can see it. A backstore can come from a file, block device, SCSI device, or RAM disk. Administrators can export that backstore as a logical unit and map it to individual initiators. For iSCSI, the shell also lets administrators configure target portal groups, IP addresses, and TCP ports. Initiator access control lists restrict access, while iSCSI CHAP adds authentication. Administrators can list active sessions and inspect them individually.
The host boundary matters when comparing targetcli with broader SAN management software. Saving the configuration to a file gives administrators a way to restore the host’s target setup, but the object tree is a view of local configuration, not a map of the SAN. Choose targetcli when you want command-line control over what a Linux host exports and to whom. Look elsewhere if your primary job is managing the wider fabric rather than configuring storage targets on an individual host.
targetcli pros and cons
- Where it wins
- Configures iSCSI, Fibre Channel, and FCoE targets.
- Maps logical units to individual initiators.
- Saves and restores the host’s target configuration from a file.
- Where it doesn't
- Configuration is limited to a single Linux host.
- The object tree shows local configuration, not SAN topology.
- Administration takes place in a command-line shell.
targetcli fact sheet, pricing and score →
Advertiser disclosure: iTechGuides is reader-supported. Vendors can pay for top positions in our rankings and for a place on other products' pages, and we may earn a commission when you click some links. Bought places stand at the number bought; this page and our disclosure say so. Paying vendors may get a fuller, more detailed review from our editors, and that review can change their score. How we rank.
Last updated · How we research and update