snipkit [--db PATH] [--backend json|sqlite] <command> [args]
Global options may appear before the command:
--db PATH— override the store path (alsoSNIPKIT_DB).--backend json|sqlite— override the backend (alsoSNIPKIT_BACKEND).
Add a snippet. The body comes from stdin, or from $EDITOR when stdin is a
terminal.
snipkit add [-title T] [-lang L] [-tag t]... [-body TEXT]
List stored snippets, newest first.
snipkit list [-tag t] [-lang l]
Fuzzy-search across title, body, and tags. Best matches first.
snipkit search [-n N] <query>
Print a snippet's body to stdout. Accepts a full id or a unique prefix.
snipkit get <id|prefix>
Copy a snippet's body to the system clipboard.
snipkit copy <id|prefix>
Interactively pick a snippet (via fzf when available) and print its body.
snipkit pick [-c]
-c also copies the selection to the clipboard.
Open a snippet's body in $EDITOR and save the result.
snipkit edit <id|prefix>
Remove one or more snippets.
snipkit rm <id|prefix>...
List every tag with a count of how many snippets carry it.
Move snippets in and out as a JSON array.
snipkit export [-o file.json]
snipkit import [-f file.json]
Print the snipkit version banner.
| Code | Meaning |
|---|---|
| 0 | success |
| 1 | a runtime error |
| 2 | a usage error (bad flags or unknown command) |
| 3 | the requested snippet was not found |