ssb-cli icon indicating copy to clipboard operation
ssb-cli copied to clipboard

How to add blobs and publish about with ssb-cli

Open zicmama opened this issue 5 years ago • 0 comments

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 ?

zicmama avatar Apr 20 '20 23:04 zicmama