2014-09-29 09:51:09 -07:00
|
|
|
# asdf version manager
|
|
|
|
|
|
|
|
> for everything that needs a version manager
|
|
|
|
|
|
|
|
|
|
|
|
## Commands
|
|
|
|
|
2014-10-19 09:18:48 -07:00
|
|
|
asdf install <package> <version>
|
|
|
|
asdf uninstall <package> <version>
|
2014-11-28 21:42:18 -07:00
|
|
|
asdf list <package>
|
2014-11-29 07:46:29 -07:00
|
|
|
asdf list-all <package>
|
2014-10-19 09:18:48 -07:00
|
|
|
asdf use <package> <version>
|
2014-11-29 07:46:29 -07:00
|
|
|
asdf source-add <package> <source>
|
|
|
|
asdf source-remove <package>
|
|
|
|
asdf source-update
|
|
|
|
asdf source-update <package>
|
2014-10-19 09:18:48 -07:00
|
|
|
|
|
|
|
## `.asdf-versions` file
|
|
|
|
|
|
|
|
```
|
|
|
|
elixir 1.0.0
|
|
|
|
erlang 17.3
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
## Package source structure
|
|
|
|
|
|
|
|
A package source is a git repo, with the following files
|
|
|
|
|
|
|
|
* `bin/install`
|
|
|
|
* `bin/uninstall`
|
|
|
|
* `bin/use`
|
|
|
|
|
|
|
|
These scripts are run when `package install`, `package uninstall` or `package use` commands are run. You can set or unset env vars,
|