nncli

NextCloud Notes Command Line Interface
git clone git://git.danielmoch.com/nncli.git
Log | Files | Refs | LICENSE

commit 12396fc3784787e0c6338ac91ade47adc0f41466
parent f654f9b4a52cb7f980eb5b7f4e0b71f007cedbba
Author: Alexey Shiklomanov <ashiklom@bu.edu>
Date:   Tue,  3 Oct 2017 08:40:20 -0400

Tag API: Add documentation to README

Diffstat:
MREADME.md | 21+++++++++++++++++++++
1 file changed, 21 insertions(+), 0 deletions(-)

diff --git a/README.md b/README.md @@ -234,6 +234,27 @@ Note that sncli still stores all the notes data in the directory specified by `cfg_db_path`, so for easy backups, it may be easier/quicker to simply backup this entire directory. +### Tags + +Note tags can be modified directly from the command line. Example: + +``` +# Retrieve note tags, as one comma-separated string (e.g. "tag1,tag2") +sncli -k somekeyid tag get # Returns "tag1,tag2" + +# Add a tag to a note, if it doesn't already have it +sncli -k somekeyid tag add "tag4" # Now tagged as "tag2,tag3,tag4" + +# Remove a tag from a note +sncli -k somekeyid tag rm "tag3" # Now tagged as "tag2,tag4" + +# Overwrite all of the tags for a note +sncli -k somekeyid tag set "tag2,tag3" # Now tagged as "tag2,tag3" +``` + +Note that in SimpleNote, tags are case-insensitive, so "TAG2", "tag2", and +"tAg2" are interpreted as the same and will all be converted to lowercase. + ### Tricks