diff --git a/aider/versioncheck.py b/aider/versioncheck.py index 3f69aeb6f..99838d08a 100644 --- a/aider/versioncheck.py +++ b/aider/versioncheck.py @@ -9,6 +9,17 @@ import aider from aider import utils from aider.dump import dump # noqa: F401 +def install_from_main_branch(io): + """ + Install the latest version of aider from the main branch of the GitHub repository. + """ + return utils.check_pip_install_extra( + io, + "aider", + "Installing the latest version from the main branch...", + ["--upgrade", "git+https://github.com/paul-gauthier/aider.git"] + ) + def check_version(io, just_check=False, verbose=False): fname = Path.home() / ".aider" / "caches" / "versioncheck"