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

Update CLI installation instructions for ASDF 0.16 #857

Merged
merged 1 commit into from
Feb 28, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions docs/quickstart/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -297,13 +297,17 @@ It also makes it easy to install and switch between different versions of the Ta
(if you need to do that). Note that the latest released version of the Tanzu CLI is
always the recommended version, no matter what your backend version is.

Note: the below instructions are for `asdf` version `0.16` or newer, which has introduced
some new commands and removed others. The important change is that the old `asdf global`
is replaced with `asdf set --home`.

```console
asdf plugin add tanzu
asdf install tanzu latest
asdf global tanzu latest
asdf set --home tanzu latest
```

To upgrade to a new release: `asdf install tanzu latest && asdf global tanzu latest`
To upgrade to a new release: `asdf install tanzu latest && asdf set --home tanzu latest`
Note that this installs the new latest version but does not remove any previously installed ones.

To uninstall particular version: `asdf uninstall tanzu <version>`
Expand All @@ -316,20 +320,17 @@ To uninstall particular version: `asdf uninstall tanzu <version>`
asdf plugin add tanzu # if not done already

asdf install tanzu <version>
asdf global tanzu <version>
asdf set --home tanzu <version>
```

It then becomes possible to switch between installed versions:

```console
# For the entire machine
asdf global tanzu <any installed version>
asdf set --home tanzu <any installed version>

# For the current directory
asdf local tanzu <any installed version>

# For the current shell
asdf shell tanzu <any installed version>
asdf set tanzu <any installed version>
```

#### Installing a Pre-Release
Expand Down