mirror of
https://github.com/dnote/dnote
synced 2026-03-14 22:45:50 +01:00
1.2 KiB
1.2 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 golang 12
dnote edit
alias: e
Edit a note
# Launch a text editor to edit a note with the given index.
$ dnote edit linux 1
# Edit a note with the given index in the specified book with a content.
$ dnote edit linux 1 -c "New Content"
dnote remove
alias: d
Remove either a note or a book
# Remove the note with `index` in the specified book.
$ dnote remove JS 1
# Remove the book with the `book name`.
$ dnote remove -b JS
dnote sync
Dnote Cloud only
alias: s
Sync notes with Dnote cloud
dnote login
Dnote Cloud only
Start a login prompt