dnote/COMMANDS.md
Sung Won Cho b3a12aed85
Deprecate upgrade (#99)
* Deprecate upgrade

* Automate using goreleaser

* Fix name and version

* Automate
2018-09-01 16:30:15 +10:00

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