Skip to content
This repository has been archived by the owner on Apr 6, 2021. It is now read-only.

Latest commit

 

History

History
56 lines (38 loc) · 1.53 KB

README.md

File metadata and controls

56 lines (38 loc) · 1.53 KB

monod-cli

A simple CLI to backup your monod documents.

Usage

⚠️ You need Node 10+ and npm 5.2+ but you do not necessarily need to clone or install this project. Instead you can use npx, which is bundled with npm.

Run the following command with one or more "monod URLs" you want to backup:

npx https://github.com/TailorDev/monod-cli <your monod url(s) here>

Options

  • --stdout: output the content of the monod document(s) to stdout

Examples

Backup one document:

npx https://github.com/TailorDev/monod-cli <url>
npx https://github.com/TailorDev/monod-cli --stdout <url>

Backup multiple documents:

npx https://github.com/TailorDev/monod-cli --stdout <url 1> <url 2>

Backup a list of documents stored in a file (one URL per line):

cat list-of-urls.txt | xargs npx https://github.com/TailorDev/monod-cli
cat list-of-urls.txt | xargs npx https://github.com/TailorDev/monod-cli --stdout

Automatically backup all the monod documents you visited in Firefox by reading places.sqlite, which you can find in your profile folder (see about:profiles to know where your profile folder is located):

sqlite3 places.sqlite "select distinct url from moz_places where url LIKE 'https://monod.lelab.tailordev.fr/%#%'" | xargs npx https://github.com/TailorDev/monod-cli

License

monod-cli is released under the MIT License. See the bundled LICENSE file for details.