Skip to content

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

Terminal window
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.

Terminal window
thagore update check

Example 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-foundation
Run `thagore update apply` to install.

thagore update apply

Downloads the latest release for your platform and replaces the current binary.

Terminal window
thagore update apply

By default this asks for confirmation before writing to disk:

Update available: 0.3.33-foundation → 0.3.34-foundation
Apply update? [Y/n]:

Skip the prompt

Terminal window
thagore update apply --yes

Dry run (preview only, no changes)

Terminal window
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/thagore
No 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.

Terminal window
thagore update rollback

Prompts for confirmation before restoring:

Roll back from 0.3.34-foundation to 0.3.33-foundation? [Y/n]:

Skip the prompt

Terminal window
thagore update rollback --yes

Auto 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:

Terminal window
# Disable for current session
export THAGORE_DISABLE_UPDATE_CHECK=1
# Disable permanently (add to ~/.bashrc or ~/.zshrc)
echo 'export THAGORE_DISABLE_UPDATE_CHECK=1' >> ~/.bashrc

Command Reference

CommandDescription
thagore --versionPrint the current compiler version
thagore update checkCheck if a newer release is available
thagore update applyDownload and install the latest release (prompts)
thagore update apply --yesApply update without prompting
thagore update apply --dry-runPreview what would be downloaded, make no changes
thagore update rollbackRestore the previous binary (prompts)
thagore update rollback --yesRoll back without prompting

Environment Variables

VariableValueEffect
THAGORE_DISABLE_UPDATE_CHECK1Suppress the 24-hour background update check

Typical Workflow

Terminal window
# 1. See what version you have
thagore --version
# 2. Check if there is a newer release
thagore update check
# 3. Preview the update
thagore update apply --dry-run
# 4. Apply it
thagore update apply --yes
# 5. Verify
thagore --version
# 6. Something broke? Roll back instantly
thagore update rollback --yes