···66 Terminal Markdown previewer — GUI-like experience.
77</p>
8899-## Install or update
99+## Install
10101111-Install or update to the latest published binary.
1111+Install the latest published binary.
12121313macOS / Linux / Android / Termux:
1414···2828leaf --version
2929```
30303131+## Update
3232+3333+Update an existing installation to the latest published release:
3434+3535+```bash
3636+leaf --update
3737+```
3838+3939+`leaf --update` downloads the matching published asset, verifies it against the published `checksums.txt` SHA256, and then installs it.
4040+4141+On Windows, if replacing the running `.exe` is blocked by the OS, rerun the PowerShell installer from the install section.
4242+3143## Build
32443345Clone the repository:
···7688# Open the file picker in the current directory
7789leaf
78907979-# Update to the latest published version
8080-leaf --update
8191```
82928393## Keybindings
···146156147157For `leaf-windows-x86_64.exe`, the relevant package is the latest supported **X64** Visual C++ v14 Redistributable.
148158149149-### Windows: `leaf --update`
159159+### Windows: update or file replacement error
150160151151-`leaf --update` verifies the downloaded binary against the published `checksums.txt` SHA256 before installation.
161161+If `leaf --update` fails on Windows with an error about replacing, renaming, or writing `leaf.exe`, the running executable was likely locked by the OS.
152162153153-On Unix-like systems, it then replaces the current binary in place.
163163+Close any terminal session still running `leaf`, then rerun the PowerShell installer from the install section:
154164155155-On Windows, replacing the running `.exe` can be blocked by the OS. If `leaf --update` cannot complete there, rerun the PowerShell installer from the install section.
165165+```powershell
166166+irm https://raw.githubusercontent.com/RivoLink/leaf/main/scripts/install.ps1 | iex
167167+```