This is a set of command line tools which can create search index and thumbnails for folders used in the TagSpaces Desktop and Web apps.
npm install -global @tagspaces/shell
This tool will create a search index for a given folder with all its sub folders.
Run node script:
tscmd -m indexer /some/folder/
This command can be used for automation e.g. in CRON jobs.
This script will recursively create thumbnails for a specified folder with all its sub folders.
You have to install sharp package globally with the following command:
npm i sharp -g
Set NODE_PATH environment points to global npm folder:
export NODE_PATH=$(npm root --quiet -g)
Run node script:
tscmd -m thumbgen /some/folder/
This command can be used for automation e.g. in CRON jobs. Don't forget to put the trailing slash after the folder name.
Running this command will analyse the specified folder:
tscmd -m metacleaner /some/folder
Where -m
is for mode, which here is metacleaner. The metacleaner will analyse first the specified folder and deliver a list with files which are not needed or connected anymore. You can review the list and confirm the deletion by setting the -a
, which is for analyse with false
as parameter. So this command will finally perform the cleaning.
tscmd -m metacleaner -a false /some/folder