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

Feature Request: Change the permission of a note

Open yookoala opened this issue 4 years ago • 1 comments

There is no easy way to change note's permission in mass. While I can mass import Markdown note with this CLI, I cannot seem to control the permission of those notes with CLI. And it is a painstakingly long process to do it one-by-one on the web GUI.

It would be great if there is a command like this:

hackmd-cli chmod [NOTEID] [[-r|--readable] [owner|login|everyone]] [[-w|--writable] [owner|login|everyone]]

Example,

$ hackmd-cli chmod some-note-id -r everyone -w login
Permission of your note https://hackmd.io/some-note-id has changed.
Readable: everyone
Writable: login

yookoala avatar May 19 '20 15:05 yookoala

https://github.com/hackmdio/hackmd-cli/issues/17 seems related.

salim-b avatar Jul 01 '20 14:07 salim-b