dnote/pkg/cli/COMMANDS.md
2025-09-28 21:09:22 -07:00

1.6 KiB

Commands

dnote add

alias: a, n, new

Add a new note to a book.

# Launch a text editor to add a new note to the specified book.
dnote add linux

# Write a new note with a content to the specified book.
dnote add linux -c "find - recursively walk the directory"

dnote view

alias: v

  • List books or notes.
  • View a note detail.
# List all books.
dnote view

# List all notes in a book.
dnote view golang

# See details of a note
dnote view 12

dnote edit

alias: e

Edit a note or a book.

# Launch a text editor to edit a note with the given id.
dnote edit 12

# Edit a note with the given id in the specified book with a content.
dnote edit 12 -c "New Content"

# Launch a text editor to edit a book name.
dnote edit js

# Edit a book name by using a flag.
dnote edit js -n "javascript"

dnote remove

alias: rm, d

Remove either a note or a book.

# Remove a note with an id.
dnote remove 1

# Remove a book with the `book name`.
dnote remove js

dnote find

alias: f

Find notes by keywords.

# find notes by a keyword
dnote find rpoplpush

# find notes by multiple keywords
dnote find "building a heap"

# find notes within a book
dnote find "merge sort" -b algorithm

dnote sync

alias: s

Sync notes with Dnote server. All your data is encrypted before being sent to the server.

dnote login

Start a login prompt.

dnote logout

Log out of Dnote.