Forem

Edson C. (aka tuxpilgrim)
Edson C. (aka tuxpilgrim)

Posted on • Edited on

4

Gerenciando versão de ferramentas com asdf/asdf-vm

O asdf/asdf-vm é um gerenciador de versão de ferramentas, a ideia é facilmente trocar de versão e tudo fica em um arquivo .tool-versions.

De forma resumida, você instala um plugin pra uma ferramenta e com isso já consegue usar versões mais recentes, mais antigas, definir escopo da versão e outras coisas, tudo isso centralizado, sem precisar de um gerenciador de versão para cada ferramenta.

Mais detalhes sobre como funciona podem ser vistos na documentação do projeto: https://asdf-vm.com/guide/introduction.html#how-it-works

A instalação também é bem simples: https://asdf-vm.com/guide/getting-started.html#_1-install-dependencies

Como usar (comandos básicos)

  1. Instalar plugins
    asdf plugin add <name> <url .git>

  2. Listar versões disponíveis
    asdf list-all <name>

  3. Instalar versão
    asdf install <name> <version>

  4. Verificar versões atuais
    asdf current

  5. Definir escopo da versão (pode ser global, local ou apenas no shell atual)
    asdf <global|shell|local> <nome do plugin> <versao>

  6. Listar versões atuais de uma tool
    asdf list <name>

Alguns plugins para ferramentas que uso normalmente por aqui:

A lista completa de plugins: https://github.com/asdf-vm/asdf-plugins.

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read full post →

Top comments (0)

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay