Skip to content

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.

  1. In Settings › API tokens, create a token and copy it.
  2. Tell the command line where Fret is and which token to use:
Terminal window
export FRET_URL=http://nas:8080 # default: http://localhost:8080
export FRET_TOKEN=fret_…

With Docker, the command line is inside the image:

Terminal window
docker exec -e FRET_TOKEN=fret_… fret /fret status
Terminal window
fret add https://example.com/ubuntu.iso https://example.com/debian.iso
Shipment "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:

Terminal window
fret add -name "Series" -dir series/doc -priority express URL1 URL2

From a file or another command, with - to read the links from standard input:

Terminal window
cat links.txt | fret add -
Terminal window
fret status
DOCK 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.iso
Holiday photos
FR-0003 At the dock - ? holiday-photos-2024.zip

Every command and option is listed in the CLI reference.

Built with Kiln