dnote/COMMANDS.md
Sung Won Cho 50cfd9923d
Use actions package and add view command (#95)
* Use actions package

* Add view command

* Upgrade dependencies

* Bump

* Check update less frequently

* Simplify doc
2018-08-26 15:04:34 +10:00

1.3 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 "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 upgrade

Upgrade the Dnote if newer release is available

dnote sync

Dnote Cloud only

alias: s

Sync notes with Dnote cloud

dnote login

Dnote Cloud only

Start a login prompt