Skip to content
CLI reference

CLI reference

Generated from tie --help at v0.9.0. The binary is the source of truth; this page is a convenience.

tie [global options] [command [command options]]

Global options

FlagWhat it does
-C, --config NAMEConfig file. Precedence: -C, $TIE_CONFIG, ./config.toml, user config, system config.
-c, --collection NAMECollection from [Collections]; empty uses DefaultCollection.
-f, --file PATHOpen a .tie file directly, with no triplestore server.
--read-onlyWith --file: lockless snapshot, writes refused.
--reverse-relations LISTWith --file: the relations to index in reverse.
-q, --quiet / -V, --verboseLess or more diagnostics.
--format tsv|json|tableListing output. Defaults to table on a terminal, TSV otherwise.
-v, --versionClient and server versions.

Stdout is data. Diagnostics go to stderr. Exit codes: 0 clean, 1 findings, 2 usage, 4 operational.

Commands

CommandAliasesWhat it does
addaAdd a triple.
deldDelete a triple, a relation, or every triple for a key.
getgQuery triples; multiple keys intersect, - reads keys from stdin.
searchFree-text search over named relations.
statInfo about a path or hash.
upload / downloadMove files to and from a filehost.
importiUpload a tree and tag it, by dir-type.
taglist, add, del, rename, files, untagged, show, set.
versionslist, restore file version history.
mountA dir hash, or --db for the live tree.
dump / restoreTSV export and additive, idempotent import.
verifyfsck: index and tree findings as TSV.
repairplan, apply, relink.
mediacovers, index, backfill, rescan, restat, schema.
historyRecorded plays, newest first.
playlistlist, show, create, delete, migrate.
confshow, create.
completionbash, zsh, fish, pwsh.

get

tie get pizza                     # everything about pizza
tie get pizza --not cheese        # exclude a value
tie get pizza +topping            # expand an associated key
tie get -r tag travel             # reverse: find subjects for a relation
tie get -f 'title=*Wave*'         # filter
tie get -l 50 -o 100 -s title     # paging and sort
tie get - < keys.txt              # keys from stdin
tie get pizza --table             # the table format

import

tie import image-dir DIR --tags travel --tags 2014 --dest /photos/2014
tie import audio-dir DIR --albums --by dir --dry-run -y ~/Music

Flags: -t/--tags (repeatable), --dest (virtual path or template), --albums, --by auto|dir|tags, --dry-run, -y, --host, --collection.

The subcommand is the dir-type: audio-dir, image-dir, video-dir, document-dir, their *-archive variants, or a custom type from [ImportDest].

verify and repair

tie verify [--deep] [--index] [--check-blobs]
tie verify | tie repair plan > plan.tsv
tie repair apply < plan.tsv
tie repair relink

verify returns 1 when it finds something, so a cron job can tell the difference between clean and findings.

mount

tie mount HASH ~/snapshot
tie mount --db ~/mnt [--cache 8] [--verify]

media and playlists

tie media index
tie media covers
tie media backfill
tie playlist create "Sunday morning" --tracks HASH,HASH
tie history --since 30d

Tag

tie tag list
tie tag add travel HASH
tie tag files travel
tie tag untagged
tie tag rename trip travel
tie tag set HASH travel 2014 reykjavik

The full command list and flags come from the binary itself; run tie <command> --help. The source README has longer examples.