Crates.io | memos-cli |
lib.rs | memos-cli |
version | 0.3.0 |
source | src |
created_at | 2024-10-03 23:08:50.676641 |
updated_at | 2024-10-13 21:18:47.758014 |
description | A command-line tool for Memos. |
homepage | |
repository | https://github.com/paulvandermeijs/memos-cli |
max_upload_size | |
id | 1395788 |
size | 68,076 |
A command-line tool for Memos.
Use Cargo to install the application.
cargo install memos-cli
memo [OPTIONS] [COMMAND]
To enable all features you must first log in to your Memos server. Use the following command to log into your server:
memo login
Once logged in you can create a new memo by running the command without any options.
memo
This will open your default editor as defined in VISUAL
or EDITOR
.
[!IMPORTANT]
Make sure you save the memo before closing the editor.
After closing the editor your memo will be saved to your server.
By default your memo's visibility will be set to "Private". You can set the visibility to "Workspace" using the following option:
memo --workspace
Or "Public" using this option:
memo --public
STDIN
It is also possible to set the content for the memo from STDIN
. To do this
just pipe your content into the command:
echo "Hello" | memo
When using content from STDIN
you might not need to use the editor. To skip
editing use the following option:
memo --no-edit
To display a list of all your memos use the following command:
memo list
VISUAL
it needs to wait for the file to be
closed before returning. To make this happen you need to add the --wait
option to the code
command.