Skip to content

Files

cli

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Feb 3, 2025
Feb 3, 2025
Feb 8, 2025
Feb 3, 2025
Feb 3, 2025
Feb 3, 2025
Feb 3, 2025
Feb 4, 2025
Feb 3, 2025
Feb 8, 2025
Feb 8, 2025
Feb 3, 2025

Memoneo CLI

Command line interface for syncing your markdown notes to the Memoneo server, built with oclif.

Getting started

To use the CLI, you currently need to build it from source with your own configuration params.

pnpm run build

Build options

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"
  }
}

Commands

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.

Init

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

Download notes from remote.

memoneo download

Upload

Upload new notes to remote.

memoneo upload [--dir=<directory>]

Options:

  • --dir - The target directory that is recursively searched for md files (optional)

Sync

Synchronize notes between local and remote.

memoneo sync [--dir=<directory>]

Options:

  • --dir - The target directory that is recursively searched for md files (optional)

Delete

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)

Password

Change your password.

memoneo password

Internal Files

The CLI stores internal files in a .memoneo directory:

  • token - Authentication token
  • key - Encryption key
  • config.json - Internal configuration
  • cache.json - File cache for tracking note changes