Command line interface for syncing your markdown notes to the Memoneo server, built with oclif.
To use the CLI, you currently need to build it from source with your own configuration params.
pnpm run build
Building the CLI requires a config.json
file in your working directory with default settings if one doesn't exist. The default configuration looks like:
{
"baseDirectory": "_testdata",
"defaultDirectory": "_unassigned",
"basePath": {
"dev": "/",
"prod": "/web"
},
"productName": "Memoneo",
"authApiUrl": {
"dev": "http://localhost:8089",
"prod": "https://your.prod.instance.com"
},
"masterApiUrl": {
"dev": "http://localhost:8094",
"prod": "https://your.prod.instance.com"
}
}
Note: if you build the CLI from source, you will have to set up the executable (provided by Oclif in ./bin/run.js).
Alternatively, you can run ./bin/dev.js to test the commands without building.
Initialize Memoneo in the current directory and connect to the Memoneo server.
memoneo init [--mail=<email>] [--password=<password>]
Options:
-m, --mail
- Your email address-p, --password
- Your password
Download notes from remote.
memoneo download
Upload new notes to remote.
memoneo upload [--dir=<directory>]
Options:
--dir
- The target directory that is recursively searched for md files (optional)
Synchronize notes between local and remote.
memoneo sync [--dir=<directory>]
Options:
--dir
- The target directory that is recursively searched for md files (optional)
Delete notes from remote that no longer exist locally.
memoneo delete [--dir=<directory>]
Options:
--dir
- The target directory that is recursively searched for md files (optional)
Change your password.
memoneo password
The CLI stores internal files in a .memoneo
directory:
token
- Authentication tokenkey
- Encryption keyconfig.json
- Internal configurationcache.json
- File cache for tracking note changes