Skip to content

Commit f372833

Browse files
committed
Add documentation about multiple versions
1 parent c06799c commit f372833

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

docs/core-configuration.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ The versions can be in the following format:
1818
- `path:/src/elixir` - a path to custom compiled version of a tool to use. For use by language developers and such.
1919
- `system` - this keyword causes asdf to passthrough to the version of the tool on the system that is not managed by asdf.
2020

21+
Multiple versions can be set by separating them with a space. For example, to use
22+
Python 3.7.2, fallback to Python 2.7.15 and finally to the system Python, the
23+
following line can be added to `.tool-versions`.
24+
25+
```
26+
python 3.7.2 2.7.15 system
27+
```
28+
2129
To install all the tools defined in a `.tool-versions` file run `asdf install` with no other arguments in the directory containing the `.tool-versions` file.
2230

2331
Edit the file directly or use `asdf local` (or `asdf global`) which updates it.

docs/core-manage-versions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ asdf list-all <name>
2424
## Set Current Version
2525

2626
```shell
27-
asdf global <name> <version>
28-
asdf local <name> <version>
27+
asdf global <name> <version> [<version>...]
28+
asdf local <name> <version> [<version>...]
2929
# asdf global elixir 1.2.4
3030
```
3131

0 commit comments

Comments
 (0)