Skip to content

Commit 98e418b

Browse files
committed
docs: update skill for note title updates
1 parent aec7ea4 commit 98e418b

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎hackmd-cli.skill‎

17 Bytes
Binary file not shown.

‎hackmd-cli/SKILL.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ hackmd-cli notes create -e
6767

6868
# Update note
6969
hackmd-cli notes update --noteId=<id> --content='# New Content'
70+
hackmd-cli notes update --noteId=<id> --title='New title'
7071

7172
# Move note into a folder
7273
hackmd-cli notes update --noteId=<id> --parentFolderId=<folder-id>
@@ -89,6 +90,7 @@ hackmd-cli team-notes create --teamPath=<team-path> --parentFolderId=<folder-id>
8990

9091
# Update team note
9192
hackmd-cli team-notes update --teamPath=<team-path> --noteId=<id> --content='# Updated'
93+
hackmd-cli team-notes update --teamPath=<team-path> --noteId=<id> --title='New title'
9294

9395
# Move team note into a folder
9496
hackmd-cli team-notes update --teamPath=<team-path> --noteId=<id> --parentFolderId=<folder-id>
@@ -216,7 +218,7 @@ cat doc.md | hackmd-cli notes create --title="My Doc"
216218
hackmd-cli notes --filter=title="My Doc"
217219

218220
# Update existing note from file and verify
219-
cat doc.md | hackmd-cli notes update --noteId=<id>
221+
cat doc.md | hackmd-cli notes update --noteId=<id> --title="My Doc"
220222
hackmd-cli export --noteId=<id> | head -5
221223
```
222224

0 commit comments

Comments
 (0)