I used to make it with sbotc/ssbserver this way
name=${qrcodefile##*/}
id="$(sbotc blobs.add < $qrcodefile)"
type="$(file -b --mime-type $qrcodefile)"
size="$(wc -c < $qrcodefile)"
sbot publish --type about --about $ssbpub --description "I am..." --name "$USER" --image "$id"
sbotc publish '{"type":"post","text":"[qrcodefile.png]('"$id"')","mentions":[{"link":"'"$id"'","name":"'"$name"'","size":'"$size"',"type":"'"$type"'"}]}'
What would be an equivalent way to do it with ssb-cli / ssb-daemon ?