truetool
A easy tool for frequently used TrueNAS SCALE CLI utilities. Previously known as "trueupdate"
How to install
run pip install truetool
Please be aware you will need to reinstall after every SCALE update
How to Update
run pip install --upgrade truetool
How to use
running truetool should be a good start.
Additional options are available:
Help
truetool -hfor the CLI help page
Update
-
truetool -uortruetool --updateupdates TrueNAS SCALE Apps -
truetool --catalog CATALOGNAMEwhere CATALOGNAME is the name of the catalog you want to process in caps -
truetool --versioning SCHEMEwhere SCHEME is the highest semver version you want to process. options:patch,minorandmajor -
truetool -aortruetool --allupdates both active (running) and non-active (stuck or stopped) Apps
Backup
truetool -bortruetool --backupbackup the complete Apps system prior to updates. Deletes old backups prior, number of old backups can be set, 14 by defaulttruetool -rortruetool --restorerestores a specific backup by nametruetool -dortruetool --deletedeletes a specific backup by name
Other
truetool -sortruetool --syncto sync the catalogs before running updatestruetool -portruetool --pruneto prune (remove) old docker images after running auto-update
Important note
Please use the above arguments seperatly, combining them might not work as you would expect.
So use: truetool -u -b -p -s -a
not: truetool -ubpsa