Updating Thagore
Updating Thagore
The thagore update command lets you check for new releases, apply them in-place, and roll back if something goes wrong — all without leaving your terminal.
Check Your Current Version
thagore --version# thagore 0.3.33-foundation (linux/x86_64)thagore update check
Queries GitHub Releases and reports whether a newer version is available. Does not download or install anything.
thagore update checkExample output — up to date:
thagore 0.3.33-foundation is up to date.Example output — update available:
Update available: 0.3.33-foundation → 0.3.34-foundationRun `thagore update apply` to install.thagore update apply
Downloads the latest release for your platform and replaces the current binary.
thagore update applyBy default this asks for confirmation before writing to disk:
Update available: 0.3.33-foundation → 0.3.34-foundationApply update? [Y/n]:Skip the prompt
thagore update apply --yesDry run (preview only, no changes)
thagore update apply --dry-run[dry-run] Would download: thagore-linux-x86_64.tar.gz (v0.3.34-foundation)[dry-run] Would replace: /usr/local/bin/thagoreNo files were changed.thagore update rollback
Restores the previous version of the compiler that was saved before the last apply. Thagore keeps one backup automatically.
thagore update rollbackPrompts for confirmation before restoring:
Roll back from 0.3.34-foundation to 0.3.33-foundation? [Y/n]:Skip the prompt
thagore update rollback --yesAuto Update Notifications
By default, Thagore silently checks for updates in the background once every 24 hours and prints a one-line notice on your next compiler invocation:
Notice: thagore 0.3.34-foundation is available. Run `thagore update apply` to install.To disable this behaviour, set the environment variable THAGORE_DISABLE_UPDATE_CHECK=1:
# Disable for current sessionexport THAGORE_DISABLE_UPDATE_CHECK=1
# Disable permanently (add to ~/.bashrc or ~/.zshrc)echo 'export THAGORE_DISABLE_UPDATE_CHECK=1' >> ~/.bashrc# Disable for current session$env:THAGORE_DISABLE_UPDATE_CHECK = "1"
# Disable permanently (user scope)[Environment]::SetEnvironmentVariable("THAGORE_DISABLE_UPDATE_CHECK", "1", "User")Command Reference
| Command | Description |
|---|---|
thagore --version | Print the current compiler version |
thagore update check | Check if a newer release is available |
thagore update apply | Download and install the latest release (prompts) |
thagore update apply --yes | Apply update without prompting |
thagore update apply --dry-run | Preview what would be downloaded, make no changes |
thagore update rollback | Restore the previous binary (prompts) |
thagore update rollback --yes | Roll back without prompting |
Environment Variables
| Variable | Value | Effect |
|---|---|---|
THAGORE_DISABLE_UPDATE_CHECK | 1 | Suppress the 24-hour background update check |
Typical Workflow
# 1. See what version you havethagore --version
# 2. Check if there is a newer releasethagore update check
# 3. Preview the updatethagore update apply --dry-run
# 4. Apply itthagore update apply --yes
# 5. Verifythagore --version
# 6. Something broke? Roll back instantlythagore update rollback --yes