Installation

Note

Currently supported operating systems and chip architectures:

  1. Darwin/arm64
  2. Darwin/amd64
  3. Linux/amd64

1 Install dtm binary with script

In your working directory, run:

Bash

  1. sh -c "$(curl -fsSL https://download.devstream.io/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

Move dtm to a place which is in your PATH. For example: mv dtm /usr/local/bin/.

2 Download manually from the GitHub Release page

You could find the latest version of dtm on the Release page and click Download.

If your browser isn’t working properly, “curl” is also a good option:

Bash

  1. # Version v0.10.3, OS type linux and CPU arch amd64 need to be modified as needed
  2. $ curl -o dtm https://download.devstream.io/v0.10.3/dtm-linux-amd64

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

  1. mv dtm-linux-amd64 /usr/local/bin/dtm
  2. chmod +x dtm

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

Bash

  1. $ dtm version
  2. 0.10.3

3 Install dtm with asdf

Bash

  1. # Plugin
  2. asdf plugin add dtm
  3. # Show all installable versions
  4. asdf list-all dtm
  5. # Install specific version
  6. asdf install dtm latest
  7. # Set a version globally (on your ~/.tool-versions file)
  8. asdf global dtm latest
  9. # Now dtm commands are available
  10. dtm help