targetclid(8)
π targetclid β the girlboss daemon behind targetcli π
okay so bestie, welcome to targetclid(8) β she lives in the System Manager's Manual section of your friendly neighbourhood man pages, and she is lowkey the backbone of the whole targetcli operation. let's get into it π«Ά
β¨ NAME β¨
targetclid β the daemon component for targetcli. yes, she's that girl. π
πΈ DESCRIPTION πΈ
so here's the tea: targetclid is the daemon component of targetcli, and her whole job is to help retain the state of various configfs objects in memory. which means?? any new request or command can just directly use those in-memory objects instead of reconstructing them by parsing through the entire configfs files again and again and again for each and every single command. π
and like, that's the whole point β this greatly improves the overall execution time taken by targetcli commands at scale. it's giving β¨optimisedβ¨, it's giving efficiency, it's giving main character energy fr fr. π
π USAGE π
targetclid [cmd]
--helpβ for additional usage information. your girl is happy to explain herself πββοΈ--versionβ for version information. so you know exactly which era oftargetclidyou're dealing with π·οΈ
π¦ QUICKSTART & EXAMPLES π¦
to start using the daemon π
you need to enable the targetclid socket, bestie:
$ systemctl enable targetclid.socket
if you want daemonized mode to be your default vibe π«Ά
$ targetcli set global auto_use_daemon=true
$ targetcli ls
interactive mode π
you can totally use interactive mode:
$ targetcli <hit-enter>
targetcli shell version 2.1.51
Entering targetcli interactive mode for daemonized approach.
Type 'exit' to quit.
/> pwd
/
/> cd /iscsi
/> pwd
/iscsi
/> exit
ngl the/>prompt is iconic. typeexitto quit, she'll respect that π
batch mode π¦
you can also use batch mode for sending multiple commands in one go:
$ targetcli set global daemon_use_batch_mode=true
Parameter daemon_use_batch_mode is now 'true'.
$ targetcli <hit-enter>
targetcli shell version 2.1.51
Entering targetcli batch mode for daemonized approach.
Enter multiple commands separated by newline and type 'exit' to
run them all in one go.
/> ls
/> pwd
/> get global loglevel_file
/> exit
want to stop using daemonized mode? π
you can set your preference to stop using daemonized mode even when the daemon is not running:
$ targetcli --disable-daemon
π FILES π
the sacred texts, the receipts, the whole filing cabinet π:
/etc/target/saveconfig.json/etc/target/backup/*/var/run/targetclid.sock/var/run/targetclid.pid
π ENVIRONMENT π
TARGETCLI_HOME
if this variable is set, it points to a directory that should be used instead of ~/.targetcli. so like, if you wanna live somewhere else, she's not gonna stop you. π‘β¨
π SEE ALSO π
go read those too, bestie, knowledge is free π
π AUTHOR π
- Written by Prasanna Kumar Kalever
<prasanna.kalever@redhat.com> - Man page written by Prasanna Kumar Kalever
<prasanna.kalever@redhat.com>
we stan. π«Ά
π REPORTING BUGS π
found a bug? don't be shy, tell her directly:
- Report bugs via
<targetcli-fb-devel@lists.fedorahosted.org> - or
<https://github.com/open-iscsi/targetcli-fb/issues>
pls be nice, she's trying her best π
and that's the whole page, bestie!! this was targetclid(8) from the System Manager's Manual β no version number or date on this one, so just know she's out here doing her daemon thing, slaying, retaining configfs state, periodt. π
β¨πΈ bye ily π«Ά
π¦ where this page comes from
- centos-stream 10: targetcli 2.1.58-5.el10 Β· ASL 2.0
- centos-stream 9: targetcli 2.1.57-3.el9 Β· ASL 2.0
- fedora 43: targetcli 3.0.1-4.fc43 Β· Apache-2.0
- fedora 44: targetcli 3.0.1-5.fc44 Β· Apache-2.0
- nixos 26.05: targetcli-fb 3.0.2
- nixpkgs unstable: targetcli-fb 3.0.2
- opensuse-leap 16.0: targetcli-fb-common 3.0.1-160000.2.2 Β· Apache-2.0
- ubuntu resolute: targetcli-fb 1:3.0.1-0.1build1 Β· Apache-2.0
- ubuntu stonking: targetcli-fb 1:3.0.2-2 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms