Skip to content

Installation

0 Currently supported operating systems and chip architectures

  • Darwin/arm64
  • Darwin/amd64
  • Linux/amd64

1 Install dtm binary with script

In your working directory, run:

Bash
sh -c "$(curl -fsSL https://raw.githubusercontent.com/devstream-io/devstream/main/hack/install/download.sh)"

This will download the corresponding dtm binary to your working directory according to your OS and chip architecture, and grant the binary execution permission.

Optional: you can then move dtm to a place which is in your PATH. For example: mv dtm /usr/local/bin/.

2 Install with asdf

Bash
# Plugin
asdf plugin add dtm
# Show all installable versions
asdf list-all dtm
# Install specific version
asdf install dtm latest
# Set a version globally (on your ~/.tool-versions file)
asdf global dtm latest
# Now dtm commands are available
dtm --help

3 Download manually from the Release page

You could find the latest version of dtm on the Release page and click Download. Note that there are multiple versions of dtm available, so you will need to choose the correct version for your operating system and chip architecture. Once downloaded locally, you can choose to rename it, move it to the directory containing $PATH and give it executable permissions, for example, on Linux you can do this by running the following command.

Bash
mv dtm-linux-amd64 /usr/local/bin/dtm
chmod +x dtm

Then you can verify that the permissions and version of dtm are correct with the following command.

Bash
$ dtm version
0.10.0