Create a note in Boostnote via the CLI
To use this script, you need the node
module uuid
. Please ensure node
is installed on your system, then follow the steps below:
git clone git@github.com:dbuskariol/create-boostnote-cli.git
cd create-boostnote-cli
npm install uuid
The script sets variables that are used to fill the node metadata. Please set the following variables located at the top of the create_note.sh
script:
node_path="path/to/node/binary"
note_folder="note_folder_id"
note_title="title"
note_body="body"
note_storage_path="path/to/boostnote/storage"
In this context:
node_path
refers to the path of thenode
binary. For example:/Users/<username>/.nodenv/versions/<node_version>/bin/node
note_folder
refers to the folder ID that you store your notes in. This can be found by navigating to Boostnote preferences, clicking on the "Storage" tab and selecting the ID beside the folder name. For example in the folderImportant Things(3e22846e3dab55ea2874)
,3e22846e3dab55ea2874
would be thenote_folder
value.note_title
refers to the title you want the note to havenote_body
refers to the body you want the note to havenote_storage_path
refers to the full path of the Boostnote storage folder. For example:/Users/<username>/Library/Application Support/Boostnote/Storage"
To use the script, run the following command:
sh create_note.sh
This script can easily be adapted to take input for the note_title
and note_body
variables, as well as additional metadata such as tags
. I've modified this script to be used in an Alfred workflow that pulls ticket information from my ticketing system's API to create a matching note.