File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -210,11 +210,14 @@ All list commands support:
210210### Sync local file to HackMD
211211
212212``` bash
213- # Create new note from file
213+ # Create new note from file and verify
214214cat doc.md | hackmd-cli notes create --title=" My Doc"
215+ # Confirm creation by retrieving the note
216+ hackmd-cli notes --filter=title=" My Doc"
215217
216- # Update existing note from file
218+ # Update existing note from file and verify
217219cat doc.md | hackmd-cli notes update --noteId=< id>
220+ hackmd-cli export --noteId=< id> | head -5
218221```
219222
220223### Create a folder and put a note inside it
@@ -261,3 +264,13 @@ hackmd-cli notes --output=json | jq '.[] | .id'
261264``` bash
262265hackmd-cli notes --filter=title=README
263266```
267+
268+ ## Error Handling
269+
270+ Common errors and fixes:
271+
272+ | Error | Cause | Fix |
273+ | -------| -------| -----|
274+ | ` Unauthorized ` | Invalid or expired token | Re-run ` hackmd-cli login ` or update ` HMD_API_ACCESS_TOKEN ` |
275+ | ` Not Found ` | Wrong ` noteId ` or ` teamPath ` | Verify the ID with ` hackmd-cli notes ` or ` hackmd-cli teams ` |
276+ | ` Forbidden ` | Insufficient permissions | Check note permissions with ` hackmd-cli notes --noteId=<id> -x ` |
You can’t perform that action at this time.
0 commit comments