uclcmd usage after creating /usr/local/etc/pkg/repos/FreeBSD.conf

From: Graham Perrin <grahamperrin_at_gmail.com>
Date: Fri, 19 Sep 2025 03:24:02 UTC
Three commands, the first of which will create a FreeBSD.conf file if it 
does not already exist:


echo "FreeBSD {url = example} FreeBSD-kmods {url = example}" > 
/usr/local/etc/pkg/repos/FreeBSD.conf

uclcmd set --file /usr/local/etc/pkg/repos/FreeBSD.conf FreeBSD.url 
'pkg+https://pkg.freebsd.org/FreeBSD:15:amd64/latest'

uclcmd set --file /usr/local/etc/pkg/repos/FreeBSD.conf 
FreeBSD-kmods.url 
'pkg+https://pkg.freebsd.org/FreeBSD:15:amd64/kmods_latest'


Alternatively: if I use touch(1) to create an empty FreeBSD.conf file, 
then can I use uclcmd (instead of echo(1)) to create the two nodes?

FreeBSD.url

FreeBSD-kmods.url


(I do want to use uclcmd with a file that is initially empty.)

Thanks

----

devel/uclcmd <https://www.freshports.org/devel/uclcmd/> usage 
<https://pastebin.com/raw/r8gNNDQ5>