Command line
The fret program that runs the server also drives a running Fret from a terminal, on the same machine
or another one. It talks to the REST API with an API token.
Setting up
Section titled “Setting up”- In Settings › API tokens, create a token and copy it.
- Tell the command line where Fret is and which token to use:
export FRET_URL=http://nas:8080 # default: http://localhost:8080export FRET_TOKEN=fret_…With Docker, the command line is inside the image:
docker exec -e FRET_TOKEN=fret_… fret /fret statusAdding links
Section titled “Adding links”fret add https://example.com/ubuntu.iso https://example.com/debian.isoShipment "Shipment of 2 parcels": 2 parcels FR-0012 ubuntu.iso (at the dock) FR-0013 debian.iso (at the dock)With options, before the links:
fret add -name "Series" -dir series/doc -priority express URL1 URL2From a file or another command, with - to read the links from standard input:
cat links.txt | fret add -Watching the dock
Section titled “Watching the dock”fret statusDOCK OPEN · doors 1/3 · 2.0 MB/s · gauge unlimited
Ubuntu 24.04 FR-0002 In transit 10% 314.6 MB ubuntu-24.04.3-desktop-amd64.isoHoliday photos FR-0003 At the dock - ? holiday-photos-2024.zipEvery command and option is listed in the CLI reference.