Gleam can be installed with asdf by running these commands:

asdf install gleam latest
asdf install erlang latest
asdf install rebar3 latest
asdf global gleam latest
asdf global erlang latest
asdf global rebar3 latest

Installing with asdf can take a long time as it builds Erlang from source. On MacOS the pre-build Erlang plugin can be used to skip this work.