ipfs / kubo

An IPFS implementation in Go
https://docs.ipfs.tech/how-to/command-line-quick-start/
Other
15.97k stars 3k forks source link

Default remote pinning service #8009

Open alanshaw opened 3 years ago

alanshaw commented 3 years ago

Having to specify --service xxx when using all of the ipfs pin remote commands is repetitive and time consuming. It would be faster to type and slightly easier to script if you could set a default pinning service that is used if no --service is specified.

I bet that most people will only set 1 remote pinning service up anyway so not having to specify each time would be really useful.

Maybe a config option like:

ipfs config --json Pinning.DefaultRemoteService nft.storage
lidel commented 3 years ago

Sounds like a nice UX improvement.

I think we could support:

@ipfs/wg-pinning-services @obo20 – thoughts?

aschmahmann commented 3 years ago

not inherently opposed, but skeptical. IIRC there were 3 reasons we passed on this feature during the initial implementation.

lidel commented 3 years ago

I'd argue this is way simpler case than ipfs add, but yes, we should account for the future of ipfs pin here:

Gozala commented 3 years ago

I was thinking what if we got rid of —service and instead required ipfs pin <where>.

That way local pinning would turn into:

ipfs pin local add <cid> and ipfs pin add would just be a shortcut

And remote pins will be:

ipfs pin pinata add <cid> of course on could also just bind service to name remote which effectively will give us what @alanshaw was asking here ipfs pin remote add <cid>