Hello,
Hope it's okay to post this here, but I've been interested for a while in options for a CLI to cryptpad and decided to try a vibe-coded approach.
This is very much a first effort, but I think it may be useful:
https://github.com/danielhanlonkcl/cryptpad_cli
The available options are shown with:
cryptpad-go --help
It only has functionality around reading files and only simple files at that e.g.
% ./cryptpad-go ls
apex.md
data_disks.json
markdown_slides
test.md
% ./cryptpad-go cat test.md
Just some simple text
and now some more :-)
The quick brown fox jumps over the lazy dog...
There's a get sub-command which, again, only really works for simple files with pads returning JSON associated with the chunks of the file (I think!).
I did try to implement putting files but I couldn't get it to work reliably. There seem to be websocket or HTTP-based approaches. The former worked sporadically and if I opened the returned URL for the uploaded file in a browser, it could/would be added to the user's drive dependent on the account's setting for whether files should be added manually or automatically. Any suggestions on the better approach for uploads would be great.
I'm going to keep experimenting with different approaches, especially separating put and register as different sub-commands for the CLI, but I thought I'd share what's there so far as even just the cat functionality may be useful.
Best wishes,
Daniel.