dnote/pkg/cli/COMMANDS.md
Sung Won Cho 12a933d8ec
Simplify remove book command (#240)
* Allow to skip confirmation when removing

* Allow to pass book name directly as an argument when removing
2019-08-01 10:45:30 +10:00

1.7 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

Dnote Pro only

alias: s

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

dnote login

Dnote Pro only

Start a login prompt.

dnote logout

Dnote Pro only

Log out of Dnote.