https://github.com/alphahydrae/update-asdf-tools
Update all asdf tools to the latest version in one command
https://github.com/alphahydrae/update-asdf-tools
Last synced: 9 days ago
JSON representation
Update all asdf tools to the latest version in one command
- Host: GitHub
- URL: https://github.com/alphahydrae/update-asdf-tools
- Owner: AlphaHydrae
- License: mit
- Created: 2021-05-25T15:39:25.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2025-03-05T16:42:16.000Z (over 1 year ago)
- Last Synced: 2025-10-19T11:23:26.346Z (9 months ago)
- Language: Shell
- Homepage:
- Size: 64.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Update asdf tools
[](https://github.com/AlphaHydrae/update-asdf-tools/releases)
[](https://github.com/AlphaHydrae/update-asdf-tools/actions/workflows/build.yml)
[](https://opensource.org/licenses/MIT)
A script to update all [asdf][asdf] tools to the latest version in one command.
- [Usage](#usage)
- [Configuration](#configuration)
- [Requirements](#requirements)
- [Installation](#installation)
## Usage
Assuming you already have [asdf installed with a few
plugins](https://asdf-vm.com/guide/getting-started.html), simply run the
command. It will update all tools to the latest versions and set those globally:
```bash
$> update-asdf-tools
Updating plugins...
Checking available updates...
nodejs 14.17.4 16.7.0
python ______ 3.9.6
ruby rbx-4.16 rbx-5.0
Updates found: 2
asdf install nodejs 16.7.0
asdf global nodejs 16.7.0
asdf install python 3.9.6
asdf global python 3.9.6
asdf install ruby rbx-5.0
asdf global ruby rbx-5.0
```
## Configuration
`update-asdf-tools` is configured with the
`~/.config/update-asdf-tools/update-asdf-tools.conf` file:
You can filter which versions you want to consider for installation with regular
expressions:
```conf
# Filter which versions you want to consider for installation/update with
# regular expressions.
[versions]
# Only install versions that contain a digit.
* =~ \d+
# Do not install versions that match the word "dev".
* !=~ dev
# Install an OpenJDK variant of Java.
java =~ ^openjdk-
# Install Erlang OTP 24.x.
erlang =~ ^24
# Install Elixir for the correct version of OTP.
elixir =~ \-otp-24$
# Install a specific version of Ruby.
ruby = 2.7.2
```
## Requirements
* [Bash](https://www.gnu.org/software/bash/) 3+
## Installation
With [Homebrew](https://brew.sh):
```bash
brew tap alphahydrae/tools
brew install update-asdf-tools
```
With [cURL](https://curl.se):
```bash
PREFIX=/usr/local/bin \
FROM=https://github.com/AlphaHydrae/update-asdf-tools/releases/download && \
curl -sSL $FROM/v1.0.2/update-asdf-tools_v1.0.2.gz | gunzip -c > $PREFIX/update-asdf-tools && \
chmod +x $PREFIX/update-asdf-tools
```
With [Wget](https://www.gnu.org/software/wget/):
```bash
PREFIX=/usr/local/bin \
FROM=https://github.com/AlphaHydrae/update-asdf-tools/releases/download && \
wget -qO- $FROM/v1.0.2/update-asdf-tools_v1.0.2.gz | gunzip -c > $PREFIX/update-asdf-tools && \
chmod +x $PREFIX/update-asdf-tools
```
Or [download it](https://github.com/AlphaHydrae/update-asdf-tools/releases) yourself.
[asdf]: https://asdf-vm.com