nncli-cat(1)

Synopsis

nncli –key|-k KEY cat get|set|rm [category_name]

Description

Modify a note category from the command line. With the get argument, the command returns the note category. With the set argument, the note category is set to the required category_name argument. With the rm argument, the note’s category is removed.

Options

--key, -k

The ID of the note to operate on.

Examples

# Retrieve note category (e.g. "category1")
$ nncli -k 42 cat get
category1

# Add a category to a note, overwriting any existing one
nncli -k 42 cat set "category3"

# Remove a category from a note
nncli -k 42 cat rm

See also

nncli(1)