Skip to main content

mr notes add-tags

Add tag IDs to every Note listed in --ids. Idempotent: adding a tag that's already attached is a no-op. Both --ids and --tags accept comma-separated unsigned integer lists and are required.

Usage

mr notes add-tags

Examples

Add tag 5 to notes 1

mr notes add-tags --ids 1,2,3 --tags 5

Add multiple tags at once

mr notes add-tags --ids 1,2,3 --tags 5,6,7

Flags

FlagTypeDefaultDescription
--idsstring``Comma-separated note IDs (required) (required)
--tagsstring``Comma-separated tag IDs (required) (required)

Inherited global flags

FlagTypeDefaultDescription
--jsonboolfalseOutput raw JSON
--no-headerboolfalseOmit table headers
--pageint1Page number for list commands (default page size: 50)
--quietboolfalseOnly output IDs
--serverstringhttp://localhost:8181mahresources server URL (env: MAHRESOURCES_URL)

Exit Codes

0 on success; 1 on any error

See Also