Linux command
sncli 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Launch the interactive console GUI
sncli
Synchronize notes with Simplenote
sncli sync
List all notes
sncli list
Search notes with a regex pattern
sncli -r list "[pattern]"
Create a note with a title
sncli -t "[My Note Title]" create
Edit a note by key
sncli -k [note_key] edit
Dump a note to stdout
sncli -k [note_key] dump
Export a note as JSON
sncli -k [note_key] export
说明
sncli provides both a console GUI with Vi-like keybindings and a scriptable CLI for accessing your Simplenote account. It performs full two-way sync in the background and supports offline editing with automatic re-sync. Features include Google-style and regex search, note pinning, tagging, and fully customizable colors and keybindings. Available commands include: sync, list, dump, create, edit, export, import, trash, untrash, pin, unpin, markdown, unmarkdown, and tag (get/set/add/rm).
参数
- -n, --nosync
- Do not perform a server sync on startup.
- -r, --regex
- Treat search string as a regular expression.
- -k _KEY_, --key _KEY_
- Specify note key for commands that operate on a single note.
- -t _TITLE_, --title _TITLE_
- Title of note for create command.
- -c _FILE_, --config _FILE_
- Specify configuration file.
- -v, --verbose
- Verbose output.
FAQ
What is the sncli command used for?
sncli provides both a console GUI with Vi-like keybindings and a scriptable CLI for accessing your Simplenote account. It performs full two-way sync in the background and supports offline editing with automatic re-sync. Features include Google-style and regex search, note pinning, tagging, and fully customizable colors and keybindings. Available commands include: sync, list, dump, create, edit, export, import, trash, untrash, pin, unpin, markdown, unmarkdown, and tag (get/set/add/rm).
How do I run a basic sncli example?
Run `sncli` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -n, --nosync do in sncli?
Do not perform a server sync on startup.