Skip to content

Add bld self-update to reinstall the CLI - #3

Merged
Antaris merged 1 commit into
mainfrom
cursor/self-update-command-4329
Aug 16, 2026
Merged

Add bld self-update to reinstall the CLI#3
Antaris merged 1 commit into
mainfrom
cursor/self-update-command-4329

Conversation

@Antaris

@Antaris Antaris commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

update still updates the Build submodule. This adds a first-class command that does what a fresh ./scripts/install.sh does: republish and replace the installed bld binary.

Usage

bld self-update                 # clone main and reinstall
bld self-update --ref v0.2.0    # install a branch or tag
bld self-update --source .      # publish a local BuildCLI checkout
bld upgrade                     # alias

The install location matches the existing scripts (~/.local/share/ingenium/bld on Unix, %LOCALAPPDATA%\Ingenium\bld on Windows), including BLD_INSTALL_DIR / BUILDCLI_INSTALL_DIR and --install-dir.

Notes

  • self-update and upgrade are registered as known commands so they are not forwarded to Cake.
  • Publish is self-contained single-file by default, same as scripts/install.sh.
  • Unit tests cover routing, publish arguments, and the install service with fake git/dotnet. They do not clone or publish for real.
Open in Web Open in Cursor 

Keep update for the Build submodule. self-update (alias upgrade) clones or publishes a BuildCLI checkout and replaces the installed binary.

Co-authored-by: Matthew Abbott <matt@ingeniumsoftware.dev>
@Antaris
Antaris marked this pull request as ready for review August 16, 2026 11:56
@cursor

cursor Bot commented Aug 16, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@Antaris
Antaris merged commit f1196e0 into main Aug 16, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants