Trilium
0.13.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.
---
## [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.0.0/) principles.
FileList
- Trilium.nuspec
- CHANGELOG.md
- .git\hooks\fsmonitor-watchman.sample
- .git\objects\01\04d3a974830c087a9ff10c28e0bec55360826c
- .git\objects\12\205531361031838f5687a73eb53fa2b7ba588e
- .git\objects\28\83150dedda457c3ccc427ee5663493374dc423
- .git\objects\4b\17453b40dd0d18d493608b0e2576590ae7ea81
- .git\objects\66\eea933f7f6c8254cb02871347c7423e5747847
- .git\objects\7d\2c9830e6ddac725d798f5c3f94efdcefafac7f
- .git\objects\8e\91c70e91a8dc6783591a046d5a6951ddd6e786
- .git\objects\a2\d0e7008bdb4eb0ff52233d9ace2541780da7ff
- .git\objects\bb\db99a34833ba61e2f9b8ee7e627864b5edf9bb
- .git\objects\d2\c876aa3a3f54e22bedcf24fb36c3ca8ea11894
- .git\objects\e9\ec5c774f3e62fbafb1f5f708e95eb80f5165da
- .git\refs\heads\main
- public\Find-TriliumNote.ps1
- public\Import-TriliumNoteZip.ps1
- LICENSE
- .git\hooks\post-update.sample
- .git\objects\01\2af975fc52ee43f716446dbf9cf0fc9565bbca
- .git\objects\14\69d4badf27f88d0d7c3defa2c0d7205eef5b7d
- .git\objects\2a\390d8a6c883b3bc8caf1ae97f34453c077ac90
- .git\objects\4d\8c81597142fda03c6745994342bfe41d2c817a
- .git\objects\6b\00c9d094395eb4df02e27ed3fdceab5ccaa1e7
- .git\objects\7e\5fb2fe0475cc83a3356b92448a75c4cbf799da
- .git\objects\8e\f1d10df15446bbc490a2a1285aab9ac6771566
- .git\objects\a2\fedc089e58b4e8d95668efa0f276ccf526e51e
- .git\objects\bd\fd10aa732658581c43acd3383649f7846dace6
- .git\objects\d2\f785042afec07e1bfa5918f0f092710e059881
- .git\objects\eb\584a21cd715f90cc36e6a0bfb91e4f2266836d
- .git\refs\remotes\origin\HEAD
- public\Format-TriliumHtml.ps1
- public\New-TriliumAttachment.ps1
- README.md
- .git\hooks\pre-applypatch.sample
- .git\objects\02\58f501e8abe1b145801e8813f207651c0c8513
- .git\objects\14\74f607a27172538fa4546f4cf411ab18fb65d2
- .git\objects\2e\c19995cedca8452a2d3b474277b4af11c7f04e
- .git\objects\4e\285a6a83dc44a374db4917e0f47c1b183a0d70
- .git\objects\6b\04c79c205715faf18312ce67c764177007f2fa
- .git\objects\7e\a1045b14aba06ceb683479ccb5a06d1176ddbb
- .git\objects\8f\15ce474aa55d8add24983a0077302268e84bf2
- .git\objects\a4\4f316fc620269464e15b704f155a697a1e39e6
- .git\objects\be\648ecaebf4d97ccfef27fe3a3150629802c405
- .git\objects\d4\120cd6374ba3cf3bce1912e3d6772711862573
- .git\objects\ec\21563f6532d4824b1aa1f1d5b1439e6e029b96
- .git\refs\remotes\origin\main
- public\Get-TriliumAttachment.ps1
- public\New-TriliumAttribute.ps1
- THIRD-PARTY-NOTICES.txt
- .git\hooks\pre-commit.sample
- .git\objects\03\82537e038a8a7911c71259ee7548b85b4d2b72
- .git\objects\16\13642d58ab96f2f43690c6c96b965539217eee
- .git\objects\2f\b1067c9ccdd1a8e3cb781829f0bdc5e98b0662
- .git\objects\4e\5868396a56bf707f3f52813fc902da5f314da8
- .git\objects\6b\5745e54fea150bfb5e8207a341017b8b1d4a6e
- .git\objects\7f\433d07ea78b8d9eae6953c2823f6a9df167cdc
- .git\objects\91\166799e8dfc5ccdba36940baf3a2716a3c07f7
- .git\objects\a4\8637fd913af1725ebeac050bddeba9d0f6fa20
- .git\objects\be\b1648e200a63f207bb8714a686a5aab8ffeaf7
- .git\objects\d6\075d90848b1f6eb7ca5e29b6ae8613cdb53237
- .git\objects\ec\6d45c9b51d8f8da28f7d87ae40a79dffb48898
- .git\refs\tags\v0.10.0
- public\Get-TriliumAttachmentContent.ps1
- public\New-TriliumBackup.ps1
- .git\hooks\pre-merge-commit.sample
- .git\objects\04\05df6f7f7bb9fe6ad8eb20ef0e26dd58446d69
- .git\objects\1b\e5b464416498d10b9406e7509cefdce864cb27
- .git\objects\32\acad33e1b4c76349e7ab113f46b8e0c1c10f6a
- .git\objects\54\7d7915936b18f6519ff4b3126e413a6f81ef78
- .git\objects\6f\9cef6e6f25ca46a1ba802e943fc21bed0576b0
- .git\objects\7f\85174334ca9e19dcd34bbc62ea117d69bbdfd0
- .git\objects\97\05b8edb7d7d03377b21a9941f11dba84699fdd
- .git\objects\a7\387e396ee4ed374dcbdc0f650d7724318a9ff8
- .git\objects\bf\e46a93cd4d81caebcd62f98bbf6ccea832d546
- .git\objects\d6\32db810e1b1e3556d07c0fbece1752ee30d366
- .git\objects\ed\34b279dd8e250359655bf84121edeb36b8ec7e
- .git\refs\tags\v0.11.0
- public\Get-TriliumAttribute.ps1
- public\New-TriliumNote.ps1
- Trilium.psd1
- .git\hooks\pre-push.sample
- .git\objects\05\59b44e9c9c689938ccd1becb7f05562f8372ff
- .git\objects\1c\8ad834bef4ad4ac6b4d7348cd167db70972c4a
- .git\objects\33\c0e1992a48c0302d181b16ef63c5e8cb125b76
- .git\objects\54\d2434d5604e2e9ad0f3fd4b828ddcf402c7e5d
- .git\objects\6f\dd686115c548db5129164325e0aed5ac83891d
- .git\objects\80\32d47216ff05752556788d0bd49a65c419316b
- .git\objects\98\365dd9612cbff74b6429cec0c23c69e610154f
- .git\objects\a9\09d235285cc1a770af9e9e29ce59e804c73fa2
- .git\objects\c3\624407067a2c7eedd04d740f69aa4d833587c8
- .git\objects\d6\61135a90bb709aeacbe65d49709e225444b9f7
- .git\objects\ed\ffe76815bb38ca5d6dce73e49b580d326f9ace
- .git\refs\tags\v0.12.0
- public\Get-TriliumBranch.ps1
- public\New-TriliumNoteFile.ps1
- Trilium.psm1
- .git\hooks\pre-rebase.sample
- .git\objects\07\f60ba3e32dc195db3fca82084e3b684b99bdb5
- .git\objects\1c\e6f7e2ee1bd8b597c36f8ea92bb1e7f714c74b
- .git\objects\36\c3d61eb1034b925b63ba0308b25c6fa4b2f6d1
- .git\objects\55\1959d44513b645f88cba217c09b805002a9dfd
- .git\objects\70\b64bd4ab76894465ca37965e5cc96785d2a259
- .git\objects\82\1f6ffd8087836818c5d7fdc7c67512fe5389a0
- .git\objects\98\3e709c686464766a6bb514ac4b270a39ba7fd3
- .git\objects\aa\02f01e8699ebb882e34096febb072c9c904d5c
- .git\objects\c4\6df04336a76dadf94559e1bc3e9e6297330e83
- .git\objects\d7\171e8bf1c57591c98a794fefd2c542c706f984
- .git\objects\ee\91081257da64733401a2a7c91216baf1072180
- .git\refs\tags\v0.8.0
- public\Get-TriliumDayNote.ps1
- public\New-TriliumNoteRevision.ps1
- .git\COMMIT_EDITMSG
- .git\hooks\pre-receive.sample
- .git\objects\09\0658276550fc50a3636f3b9a353c4e92ca82ab
- .git\objects\1f\3057b7ff09651527ac8ff92ee5c9046e7826b2
- .git\objects\38\5ee4d7b14d5b57e72a01259efa0aa86ac07ee9
- .git\objects\56\56572c4fc494a8a096de54a2b43aaec2c4bd02
- .git\objects\70\be133b89d376e052ea00093a441e8bc8d53037
- .git\objects\83\1051d508d1385be0624b4d5ae94cdeed63b550
- .git\objects\98\837e0681be5aa9e22a4adc3dab5e7a432ee9f0
- .git\objects\ab\6a0feb587cff669cdcf2863e4e4f210f2272ed
- .git\objects\c4\98663c114fe71bc6c29818473d672da29c499c
- .git\objects\d7\1f8f960ffd2db8fd62d9d0e137eb2c3fb0aa68
- .git\objects\ef\696b50d597103e001f721777e878ef343f9712
- assets\Get-TriliumInfo.png
- public\Get-TriliumInbox.ps1
- public\Remove-TriliumAttachment.ps1
- .git\config
- .git\hooks\prepare-commit-msg.sample
- .git\objects\0c\15315e6afdcece7d87ab5d810644ca46de6359
- .git\objects\1f\d2eb4e34a194400480744ccbc7ae186bcfe8d9
- .git\objects\38\6cc5795d76a4f96c4be69260b3f64233b731e7
- .git\objects\58\4b1175b1e0631a78eb65915e7820cf8b704d8c
- .git\objects\71\e6be32a292a0ba3f12d2af7e461d21ea4b4dda
- .git\objects\84\45cb59c8c13deb5300b4ea6bf669a6b3aaf549
- .git\objects\98\88f912c22817ca7cb6f536a7978e41b92b5b8e
- .git\objects\ab\c59ac6a665ddc4e3e81b0a7c9ba2a2d4e820cb
- .git\objects\c5\9466512ea9c92f924f2d5a641da30c06dd18c1
- .git\objects\d9\37e5830be20da285b0bab38ec4bc6901f28ef3
- .git\objects\ef\b6f428a65f21c2a51e11ff96613b4c7e61545f
- assets\Get-TriliumRootNote.png
- public\Get-TriliumInfo.ps1
- public\Remove-TriliumAttribute.ps1
- .git\description
- .git\hooks\push-to-checkout.sample
- .git\objects\0d\0dfd6897a41923151fa73dca42ca70da8c2e6c
- .git\objects\21\0148919b48c199852fcda81928a07a5d0861ff
- .git\objects\3a\8bcb971f8a760008eb9a0e9b65dd65eafb6955
- .git\objects\58\67b668e29ce9e45ca82abe018e0d351cc82a38
- .git\objects\73\2f5b1ae1de0675053080e54857f6ad253660e3
- .git\objects\84\74fe67c27351ceab5837c25a1257f9aa4edafe
- .git\objects\99\8ab45c3c39f12c51945d4aba4ba28b62416aab
- .git\objects\ae\10dab2d910190f8d69b8dcbb2097858f973d64
- .git\objects\c5\9f36345fee16f7f9f4bbeb7f2174ff4b35e38f
- .git\objects\dc\0a97d9fc14915ddd06abf9e9b010580752d7f1
- .git\objects\f3\6d3be96010ce4fa00d7be505a483260179dcd2
- data\MimeTypeMap.json
- public\Get-TriliumMonthNote.ps1
- public\Remove-TriliumBranch.ps1
- .git\FETCH_HEAD
- .git\hooks\sendemail-validate.sample
- .git\objects\0e\2d544a7733ff41bb37b99af5190e6080b34028
- .git\objects\21\3f46e5b0631320a462f8bf689f0ef1ea875f6f
- .git\objects\3a\a0be4ceb3b64a840ece0bb2daac288f563c786
- .git\objects\58\a2942a61244349671dac44af76298eed7b2634
- .git\objects\74\4ccba50781c00f4859d784f4a4cf67c8c24222
- .git\objects\85\7a60664521594a0779111c83d4e68e815bdb8d
- .git\objects\9a\4f7699a971098c063f2c6204d1a449cfaf400e
- .git\objects\ae\34e954aba708eb9b4944bc27d948fb07d16bf8
- .git\objects\c6\2d24617809dfeabcffe62956272481f24f1963
- .git\objects\dd\150041f72da4698d04616c9c5c0dc696aab51a
- .git\objects\f7\7f523cb77858ad81e4f4821cccf02834452f09
- lib\Markdig.dll
- public\Get-TriliumNoteAttachment.ps1
- public\Remove-TriliumNote.ps1
- .git\HEAD
- .git\hooks\update.sample
- .git\objects\0e\ca332a85e12c4bbcd9c87cb7b51e02e3045667
- .git\objects\21\736b8a760f5ffb5aa2e160d2d749e0e59c3b57
- .git\objects\3f\6664aad861e203934182a9f292c7b309b25e19
- .git\objects\58\c34bd3cde0692138198ff6ff2b1e90e5092cb0
- .git\objects\75\82d3228eaf75321879f2372bad89e30c0fa1b3
- .git\objects\85\a54da1510300b9fcd14eb88933f63caaac1715
- .git\objects\9a\f4751f24198a18ee116402625e3eadcd910848
- .git\objects\b3\5bbc566894df334e04df6e6fc6b1267cc1b842
- .git\objects\c7\30727e5bb3cc0d9f0ecfd958ce3771fe9941db
- .git\objects\dd\5af200977ba5cfba0f80af41c46da8a8c5e178
- .git\objects\f8\7dee4c714ec2512700ff1eedbeabfafc26d931
- lib\Markdig.xml
- public\Get-TriliumNoteContent.ps1
- public\Set-TriliumBranch.ps1
- .git\index
- .git\info\exclude
- .git\objects\0f\4ac9e804d7cf30e27a4945e747f78696f1cdd7
- .git\objects\22\05de73ed9852066fc7b5ef7073f7f0db477ba8
- .git\objects\3f\e2965eb8fe749f3e867eb4aad12cf94131ff1c
- .git\objects\5a\3c1864704cc6d4f352e6e889d7cd40fd6770de
- .git\objects\77\ad3d6c20db5694af8831ba05a7087b502e7ce6
- .git\objects\86\17d2abf575ecb17a5b2dd7b826a6de04e5b15a
- .git\objects\9b\f6e9f35f6fe1025f1d462a93a99a51f35fd996
- .git\objects\b4\e9bb0c38018a48fc4981328d8531f8d74489db
- .git\objects\ca\0fd66928065b0eca0e78a39f751aa4b9c47ddb
- .git\objects\dd\6af0c6cac1417afd3335f74837df74d2ee37eb
- .git\objects\fa\8bdb76823017e555bb536e5b5f27b1a4d8c5ad
- public\Connect-TriliumAuth.ps1
- public\Get-TriliumNoteDetail.ps1
- public\Set-TriliumNoteContent.ps1
- .git\ORIG_HEAD
- .git\logs\HEAD
- .git\objects\0f\62f8c08ddd5691b4881cc00318e137048ef11b
- .git\objects\22\0fd66be3f917cc530f435ee05bd572360d009f
- .git\objects\41\8c44f2eb8c8b7cd9e09774aeff33a0ff5f0e44
- .git\objects\5a\92396c43284313c5362d8ab5ab9079effaf5d2
- .git\objects\79\480dbcf3cc9dd6bd783ef69875ffe41fee6f45
- .git\objects\86\b3e30c2e1536f419d2d15d000f2e44c9c6f7ce
- .git\objects\9d\106f12d59f4016da216b512795df93eafe14f6
- .git\objects\b6\936ffd707bae989d9d10c90a2a0c8dcf85cf62
- .git\objects\cb\1f79cacc4eed3b625ab5967a2350a6af52d199
- .git\objects\e0\8e18c299d1183e94e333e08ec543a3c2946711
- .git\objects\pack\pack-83ba3f1d3a3518125b6ee158d44ef5cdf099affd.idx
- public\Copy-TriliumNote.ps1
- public\Get-TriliumRootNote.ps1
- public\Set-TriliumNoteDetails.ps1
- .git\packed-refs
- .git\logs\refs\heads\main
- .git\objects\10\1fdb3a730522c90edda7aa55d41fc9f1f30fb3
- .git\objects\22\106a768508834002829c294ba08a6fa188c183
- .git\objects\42\d68e6bda950f8b147f35ed4292fe887159d6cd
- .git\objects\5a\eb97356a52d14e15ebd17f48b811e9baae1b9f
- .git\objects\7c\1848901c61cc3d4b6b76b949eb2aac19c2be7d
- .git\objects\89\9f18c5eca8f320e29127078b38114dbef00da2
- .git\objects\a0\037c4145fa2da43347bcb17672bde36f1057aa
- .git\objects\b7\de42148b1de0b18bfab62e04ec2637a2133552
- .git\objects\cb\ef72ebfd500ec9254649b647aeb58ae2b2f467
- .git\objects\e3\0c53e19e0feaf0392902f8b725bbc78fc09c59
- .git\objects\pack\pack-83ba3f1d3a3518125b6ee158d44ef5cdf099affd.pack
- public\Disconnect-TriliumAuth.ps1
- public\Get-TriliumWeekNote.ps1
- public\Update-TriliumNoteOrder.ps1
- .git\hooks\applypatch-msg.sample
- .git\logs\refs\remotes\origin\HEAD
- .git\objects\11\24cea08e01e2c45a9f79c6c3606d62a6105c09
- .git\objects\22\41deca317deccb9135478e52996d353326308d
- .git\objects\42\d6fb5a3d82ef68169aee254fa28380bc7178d3
- .git\objects\63\b5d723991fe1317da3e811fc8cf8ff64329833
- .git\objects\7c\c3c0c96b6887adf454dd742b114789ad8a3e20
- .git\objects\8e\587853fe09a0e507703ca3066da3612b95074e
- .git\objects\a2\9837b960aaac46ed206ea515a2ca0a281c66e2
- .git\objects\b9\b8fadbe15f4e93698cbf6c153c454312fa8d6c
- .git\objects\d2\4ff63e9f985390c795909c2971826c0021c5c9
- .git\objects\e9\c34caa8d04a36539ac7c885ba19e37c1d48c60
- .git\objects\pack\pack-83ba3f1d3a3518125b6ee158d44ef5cdf099affd.rev
- public\Export-TriliumNote.ps1
- public\Get-TriliumYearNote.ps1
- tests\Trilium.tests.ps1
- .git\hooks\commit-msg.sample
- .git\logs\refs\remotes\origin\main
- .git\objects\11\e9aa7b112b1690e3abb34034cc157b5695681b
- .git\objects\27\6485a1f21aba866c42a5c894942083ecc6b307
- .git\objects\49\922f155ea2d0e6e4167097b7c803c33e68769a
- .git\objects\66\60b679a2dc5e129784f397002d13c85255bc05
- .git\objects\7d\238f12cb1df29b3b2b782eb941335469fc0d5c