Skip to content

agcraft/memopaper-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

memopaper

CLI client for memopaper — store and retrieve memos from your terminal.

Installation

npm install -g memopaper

Setup

memopaper init

Enter your API key when prompted. Get one at memopaper.dev under Dashboard → API Keys.

Config is saved to ~/.memopaper/config.json:

{
  "api_key": "mp_..."
}

Commands

Command Description
init Configure API key
add Save a memo
list List memos
get <uuid|index> Get a memo by UUID or index (1=latest)
latest Get the latest memo
oldest Get the oldest memo
pop Get and delete the latest memo
delete <uuid|index> Delete a memo
edit <uuid|index> <text> Edit a memo's text
copy Copy the latest memo to clipboard
stats Show memo count by group

add

memopaper add "text"                   # save to inbox
memopaper add -g work "text"           # save to a group
memopaper add --public "text"          # save as public
memopaper add --file path/to/file.txt  # save file contents
echo "text" | memopaper add            # pipe from stdin

list

memopaper list              # list inbox
memopaper list -g work      # list a group
memopaper list -n 50        # show up to 50 memos

get

memopaper get 1             # latest memo
memopaper get 2 -g work     # 2nd latest in @work
memopaper get <uuid>        # by UUID

pop

memopaper pop               # read + delete latest from inbox
memopaper pop -g work       # read + delete latest from @work

copy

memopaper copy              # copy latest memo to clipboard
memopaper copy -g work      # copy latest from @work

Supports macOS (pbcopy), Linux (xclip), and Windows (PowerShell).

Related

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors