Some nice progress this morning on a remote #Nextcloud CLI.
-
Some nice progress this morning on a remote #Nextcloud CLI.
This doesn't require adding an app or anything special on the Nextcloud server side. It reads regular connection credentials from environment variables.
Coming up next for this thing - the ability to download and upload files from a Nextcloud server from CLI.
I'll probably stick it up on GitHub soon in case anyone wants to collab with me on this or otherwise test it.
-
Benjamin Sonntag-King 🐙replied to Scott Williams 🐧 last edited by
@vwbusguy interesting !
Serious question: how is it different from a webdav client? -
Eskild Hustvedtreplied to Scott Williams 🐧 last edited by
@vwbusguy Nice, this could come in handy for automation
-
Scott Williams 🐧replied to Benjamin Sonntag-King 🐙 last edited by [email protected]
@vincib Two main reasons:
* Doesn't require webdav - so no browser or davfs necessary on the client machine
* Will eventually do more than just files, such as generating a Nextcloud Talk chat room link without having to first log in and navigate in the browser, etc. The SDK supports this and more but I decided to start with files. -
Scott Williams 🐧replied to Eskild Hustvedt last edited by
@zerodogg Indeed. I plan to containerize it soon as well.
-
Scott Williams 🐧replied to Scott Williams 🐧 last edited by
@vincib I just added an interface for interacting with the users API as well.
-
Scott Williams 🐧replied to Scott Williams 🐧 last edited by
@zerodogg I just added a users interface for it as well, so in the near future an admin may be about to use this to help automate provisioning and deprovisioning accounts via a bash script (that could be running in a container managed by a CI system of some kind).
-
Scott Williams 🐧replied to Scott Williams 🐧 last edited by
And here you go. It's a very early concept, so feedback, testing, and PR's are definitely welcome.
https://github.com/vwbusguy/nextcloud-remote-client/
https://quay.io/repository/vwbusguy/nextcloud-remote-client?tab=info
-
Scott Williams 🐧replied to Scott Williams 🐧 last edited by
@zerodogg I added a container image for it as well, so you should be should be able to attach it to a pod and copy files from your Kubernetes workload environments directly to a pod using a secret or configmap for your connection info.
-
Eskild Hustvedtreplied to Scott Williams 🐧 last edited by
@vwbusguy Nice. I've got some backup jobs this would fit nicely in.
-
Scott Williams 🐧replied to Eskild Hustvedt last edited by
@zerodogg Sweet. There's a method to upload a whole directory in the sdk, so I'll wire that in soon.