Trilium
1.0.0
Powershell wrapper for the Trilium Notes API
Minimum PowerShell version
7.5
Installation Options
Owners
Copyright
2024-25 Patrick Morris
Package Details
Author(s)
- Patrick Morris
Tags
Windows TriliumNext PowerShell Trilium
PSEditions
Dependencies
This module has no dependencies.
Release Notes
# 📅 Changelog
All notable changes to the **TriliumNext-Powershell-Module** will be documented in this file.
---
## [1.0.0] - 2025-11-29
### Added
* Added `Set-TriliumAttribute` function to update properties of existing attributes (value for labels, position for both labels and relations).
### Fixed
* Fixed `Export-TriliumNote` now correctly exports to HTML or Markdown format.
---
## [0.14.0] - 2025-10-11
### Added
* Added `Set-TriliumAttachment` function to update properties of existing attachments (role, mime, title, position).
---
## [0.13.1] - 2025-07-31
### Changed
* Improved documentation for `Get-TriliumInbox` to clarify dual behavior: returns fixed #inbox labeled note when available, otherwise creates/retrieves day notes.
* Updated examples in `Get-TriliumInbox` help documentation for better clarity.
### Fixed
* Fixed empty private folder causing error during module loading.
---
## [0.13.0] - 2025-07-04
### Fixed
* Fixed module casing to ensure compatibility with Linux filesystems.
### Changed
* Updating and improving help documentation.
---
## [0.12.0] - 2025-06-15
### Added
* Added `Remove-TriliumAttachment` function to delete attachments by attachmentId, supporting pipeline input.
* Added tab-completion for common label names to `New-TriliumAttribute` when -Type is 'label'.
* Added parameters `-IsExpanded`, `-NotePosition`, and `-Prefix` to `New-TriliumNote` for expanded UI control and note placement.
* Added `image` note type to `New-TriliumNote`.
* Added public function `Format-TriliumHtml` to beautify HTML content with improved header spacing and code block formatting.
### Changed
* Updated comment-based help for `New-TriliumAttribute`.
* Updated `New-TriliumNoteFile` to use `New-TriliumNote` and `New-TriliumAttribute` functions instead of direct API calls.
* Improved `New-TriliumNote` with better HTML formatting and consolidated mime type mapping.
* Added `MimeTypeMap.json` file to module's data directory for centralized MIME type mappings across functions.
### Fixed
* `New-TriliumAttachment` now attaches with working links added to note content.
---
## [0.11.0] - 2025-06-13
### Added
* Added function `Get-TriliumNoteAttachment` - Retrieves attachments for a specific note. (Undocumented API)
* Added `New-TriliumNoteFile` - The File note type can be used to attach various external files such as images, videos or PDF documents.
### Changed
* Changed ETAPI authentication header to use 'Bearer' in `Connect-TriliumAuth`.
### Fixed
* Fixed code block rendering when using `-Markdown` with `New-TriliumNote`.
### Removed
* Removed function `Get-TriliumAttachmentID`, replaced with `Get-TriliumNoteAttachment`.
---
## [0.10.0] - 2025-06-11
### Added
* Added markdig library (v0.41.2) for Markdown to HTML conversion.
* Added parameter `-Markdown` to `New-TriliumNote` to convert markdown content to HTML for rendering in text notes.
* Added function `Get-TriliumAttachmentID` - Parses all attachment IDs from a note's contents (no direct API equivalent).
* Added parameter `-Math` (used with `-Markdown`) to convert math markdown for rendering.
* Added function `Create-TriliumAttribute`.
* Added type `file` to `New-TriliumNote` for file type notes.
---
## [0.8.0] - 2025-05-27
### Changed
* Updated `Set-TriliumNoteDetails` to improve `-NoteType` parameter handling and type/mime mapping for special note types.
* Updated `New-TriliumNote` to include `-NoteType` parameter and unified type/mime mapping logic.
---
## [0.7.0] - 2025-05-25
### Added
* Added function `Get-TriliumInbox` - GET /inbox/{date}
* Added function `Get-TriliumDayNote` - GET /calendar/days/{date}
* Added function `Get-TriliumWeekNote` - GET /calendar/weeks/{date} (Note: This appears to be broken due to a bug in TriliumNext)
* Added function `Get-TriliumMonthNote` - GET /calendar/months/{month}
* Added function `Get-TriliumYearNote` - GET /calendar/years/{year}
* Added function `Set-TriliumNoteDetails` - PATCH /notes/{noteId}
* Added function `Set-TriliumBranch` - PATCH /branches/{branchId}
---
## [0.6.0] - 2025-05-24
### Added
* Added function `Get-TriliumAttachment` - GET /attachments/{attachmentId}
* Added function `Get-TriliumAttachmentContent` - GET /attachments/{attachmentId}/content
---
## [0.5.0] -
### Added
* Added Markdown option to `Export-TriliumNote`. Default is HTML.
* Added and improved some documentation.
* Split out functions into their own .ps1 file.
### Changed
* Updated and improved some documentation.
### Fixed
* Fixed `Export-TriliumNote`.
---
## [0.4.0] -
### Changed
* Improved `Connect-TriliumAuth` to use PSCredential object. See documentation for new usage.
---
## [0.3.0] -
### Added
* Added check for `/` at the end of base URL.
* Added `-SkipCertCheck` switch to ALL functions.
### Changed
* Updated `Connect-TriliumAuth` to use `-SkipCertCheck` switch.
---
## [0.2.0] -
### Changed
* Fixed parameter sets in `Find-TriliumNote`. `orderBy` and `Limit` must be used together.
* Updated/added some documentation.
---
## [0.1.0] -
### Added
* Initial release of TriliumNext-Powershell-Module. A command for almost every documented TriliumNext API.
---
> 📌 This changelog follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) principles.
FileList
- Trilium.nuspec
- public\Import-TriliumNoteZip.ps1
- public\New-TriliumNoteRevision.ps1
- public\Set-TriliumAttribute.ps1
- LICENSE
- .github\workflows\ci.yml
- docs\Trilium.md
- docs\attachments\New-TriliumNoteFile.md
- docs\attributes\Remove-TriliumAttribute.md
- docs\calendar\calendar.md
- docs\clone\clone.md
- docs\misc\Get-TriliumInfo.md
- docs\notes\Find-TriliumNote.md
- docs\notes\Remove-TriliumNote.md
- public\Connect-TriliumAuth.ps1
- public\Get-TriliumAttachmentContent.ps1
- public\Get-TriliumNoteAttachment.ps1
- public\New-TriliumAttachment.ps1
- public\Remove-TriliumAttachment.ps1
- public\Set-TriliumBranch.ps1
- mkdocs.yml
- assets\Get-TriliumInfo.png
- docs\attachments\Remove-TriliumAttachment.md
- docs\attributes\Set-TriliumAttribute.md
- docs\calendar\Get-TriliumDayNote.md
- docs\clone\Copy-TriliumNote.md
- docs\misc\Get-TriliumRootNote.md
- docs\notes\Get-TriliumNoteContent.md
- docs\notes\Set-TriliumNoteContent.md
- public\Copy-TriliumNote.ps1
- public\Get-TriliumAttribute.ps1
- public\Get-TriliumNoteContent.ps1
- public\New-TriliumAttribute.ps1
- public\Remove-TriliumAttribute.ps1
- public\Set-TriliumNoteContent.ps1
- README.md
- assets\Get-TriliumRootNote.png
- docs\attachments\attachments.md
- docs\attachments\Set-TriliumAttachment.md
- docs\calendar\Get-TriliumInbox.md
- docs\clone\Get-TriliumBranch.md
- docs\misc\misc.md
- docs\notes\Get-TriliumNoteDetail.md
- docs\notes\Set-TriliumNoteDetails.md
- public\Disconnect-TriliumAuth.ps1
- public\Get-TriliumBranch.ps1
- public\Get-TriliumNoteDetail.ps1
- public\New-TriliumBackup.ps1
- public\Remove-TriliumBranch.ps1
- public\Set-TriliumNoteDetails.ps1
- THIRD-PARTY-NOTICES.txt
- data\MimeTypeMap.json
- docs\attachments\Get-TriliumAttachment.md
- docs\auth\auth.md
- docs\calendar\Get-TriliumMonthNote.md
- docs\clone\Remove-TriliumBranch.md
- docs\misc\New-TriliumBackup.md
- docs\notes\Import-TriliumNoteZip.md
- docs\stylesheet\extra.css
- public\Export-TriliumNote.ps1
- public\Get-TriliumDayNote.ps1
- public\Get-TriliumRootNote.ps1
- public\New-TriliumNote.ps1
- public\Remove-TriliumNote.ps1
- public\Update-TriliumNoteOrder.ps1
- docs\attachments\Get-TriliumAttachmentContent.md
- docs\attributes\attributes.md
- docs\auth\Connect-TriliumAuth.md
- docs\calendar\Get-TriliumWeekNote.md
- docs\clone\Set-TriliumBranch.md
- docs\misc\Update-TriliumNoteOrder.md
- docs\notes\New-TriliumNote.md
- lib\Markdig.dll
- public\Find-TriliumNote.ps1
- public\Get-TriliumInbox.ps1
- public\Get-TriliumWeekNote.ps1
- public\New-TriliumNoteFile.ps1
- public\Set-TriliumAttachment.ps1
- tests\Trilium.tests.ps1
- Trilium.psd1
- docs\CHANGELOG.md
- docs\attachments\Get-TriliumNoteAttachment.md
- docs\attributes\Get-TriliumAttribute.md
- docs\auth\Disconnect-TriliumAuth.md
- docs\calendar\Get-TriliumYearNote.md
- docs\notes\New-TriliumNoteRevision.md
- lib\Markdig.xml
- public\Format-TriliumHtml.ps1
- public\Get-TriliumInfo.ps1
- public\Get-TriliumYearNote.ps1
- Trilium.psm1
- docs\index.md
- docs\attachments\New-TriliumAttachment.md
- docs\attributes\New-TriliumAttribute.md
- docs\misc\Format-TriliumHtml.md
- docs\notes\Export-TriliumNote.md
- docs\notes\notes.md
- private\readme.md
- public\Get-TriliumAttachment.ps1
- public\Get-TriliumMonthNote.ps1
Version History
| Version | Downloads | Last updated |
|---|---|---|
| 1.0.0 (current version) | 7 | 11/29/2025 |
| 0.14.0 | 11 | 10/11/2025 |
| 0.13.1 | 16 | 7/31/2025 |
| 0.13.0 | 11 | 7/4/2025 |
| 0.12.0 | 11 | 6/15/2025 |
| 0.11.0 | 6 | 6/13/2025 |
| 0.10.0 | 5 | 6/11/2025 |
| 0.8.0 | 6 | 5/27/2025 |
| 0.7.0 | 6 | 5/25/2025 |
| 0.6.0 | 7 | 5/24/2025 |
| 0.5.0 | 6 | 5/15/2025 |
| 0.4.0 | 11 | 12/29/2024 |
| 0.3.0 | 51 | 12/25/2024 |
| 0.2.0 | 179 | 12/11/2024 |
| 0.1.0 | 17 | 12/8/2024 |