Myne

Search the full guide — every article title and its content.

Back to user guide

Command line

Read, search, and add notes from a terminal with the myne command-line client, and export a vault to plain Markdown without the app installed.

The myne command-line client lets you read, search, and add notes from a terminal. It talks to the Myne app you already have open and unlocked over a local socket on your device, and never opens the vault, holds a key, or asks for a password itself.

When you might use it

The command line is for scripting and quick terminal work — piping a note into another tool, appending a captured thought to today’s daily note, or searching without leaving the shell. It is an optional power-user surface; everything it does is also available in the app.

What it needs

Because it drives the running app rather than the vault, the app must already be open, unlocked, and have Terminal access turned on, a setting that appears in Settings → Privacy only once Developer mode is on in Settings → About. When any of those is not true, the command refuses with a clear message and never prompts for anything. The command line runs on macOS and Linux; there is no Windows version. It is also a desktop-app feature only: a browser tab cannot host a local socket, so Terminal access is absent from the browser client’s settings rather than greyed out, and the phone app does not have it either. See The myne CLI for the full command set and how to turn it on.

Limits

The command line reaches your notes only through the running, unlocked app over a device-local socket. It is not a second way into the vault. It cannot open a locked vault, and it cannot run when the app is closed. Folders you have excluded from terminal access stay invisible to it, and stay fully available in the app.

While terminal access is on and your vault is unlocked, any program running under your user account can drive the myne command and read, search, and create notes through it. Myne cannot tell your terminal apart from a script: nothing on the socket checks who is asking — no token, no signature, no process check — because a program already running as you defeats each of those.

Articles in this section