Setup

ETAPI

To use TriliumAlchemy, you need to connect to Trilium through its ETAPI interface. See Trilium’s documentation for details: https://github.com/zadam/trilium/wiki/ETAPI

Note

For SDK use, once you’ve selected a method, create a Session and pass the appropriate argument: either token or password. See Sessions for details.

Token

This is the recommended mechanism. Create a new token in the UI from Options → ETAPI.

Password

If you provide a password, a temporary token is created for you. This token is deleted when you invoke Session.logout or exit a context using with.

Tool config (coming soon)

There will be a config file format and .env file support for configuring CLI tools.