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

Feature idea: experimental bzz.link support

Open agazso opened this issue 3 years ago • 0 comments

It would be nice if the CLI supported bzz.links. Since that is an experimental feature it could be optional to print it, but it could accept bzz.link style links wherever it accepts bzz://... links.

For example:

# upload
$ swarm-cli upload folder --print-bzz
...Other output omitted
bzz link: https://bafybwifqg3mawbjhdulhzun2rmcsysdjzfun4jna7hjdhydqrjdp2jqeo3.bzz.link

# download
$ swarm-cli download https://bafybwifqg3mawbjhdulhzun2rmcsysdjzfun4jna7hjdhydqrjdp2jqeo3.bzz.link

One potential source of confusion here is that it may seem that the download happen from the https link through the gateway although the link is only used to get the reference that is used for downloading from the bee-api-url (which by default points to localhost).

agazso avatar Nov 12 '21 17:11 agazso