grimoire-cli
v1.0.3
Published
A command-line tool to store and retrieve code snippets from the cloud.
Downloads
301
Readme
Grimoire CLI
A command-line tool to store and retrieve code snippets from the cloud.
Installation
npm install -g grimoire-cliOn Linux/macOS, you may need to use sudo:
sudo npm install -g grimoire-cliOr use it directly without installing:
npx grimoire-cliUsage
After installation, use the grim command:
grim <command>Commands
Add a snippet
Save a new code snippet to the cloud:
grim addYou will be prompted to enter a title and paste your code.
Get a snippet
Search for a snippet by title and copy it to your clipboard:
grim get <search_term>Example:
grim get express-boilerDownload all snippets
Download all your snippets to a local backup.json file:
grim downloadExamples
# Save a code snippet to the cloud!!!
grim add
# Get a snippet by title and copy to clipboard
grim get <search_term>
# Backup all snippets locally
grim download
# display help for command
help [command]
Requirements
- Node.js 18 or higher
License
ISC
