Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add asdf installation instructions to docs #383

Merged
merged 4 commits into from Nov 1, 2021
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
21 changes: 21 additions & 0 deletions site/content/index.md
Expand Up @@ -57,6 +57,27 @@ See [mage homebrew formula](https://formulae.brew.sh/formula/mage).

See [scoop](https://scoop.sh/).

**Using asdf**
mathew-fleisch marked this conversation as resolved.
Show resolved Hide resolved

The [asdf version manager](https://asdf-vm.com/) is a tool for installing release binaries from Github. With asdf installed, the [asdf plugin for mage](https://github.com/mathew-fleisch/asdf-mage) can be used to install any released version of mage.

```shell
# Install asdf plugin for mage
asdf plugin add mage

# Show all installable versions
asdf list-all mage

# Install specific version
asdf install mage latest

# Set a version globally (on your ~/.tool-versions file)
asdf global mage latest

# Now mage commands are available
mage --version
```
natefinch marked this conversation as resolved.
Show resolved Hide resolved

## Example Magefile

```go
Expand Down