Skip to content
51 changes: 46 additions & 5 deletions reference/fleet/upgrade-standalone.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,54 @@
1. Make sure the `elastic-agent` service is running.
2. From the directory where {{agent}} is installed, run the `upgrade` command to upgrade to a new version. Not sure where the agent is installed? Refer to [Installation layout](/reference/fleet/installation-layout.md).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vishaangelova you're right that this step already tells folks to move to the right directory. I've simplified the instructions below. Thanks!


For example, on macOS, to upgrade the agent from version 8.8.0 to 8.8.1, you would run:
For example, to upgrade the agent from version 9.1.0 to 9.1.1, you would run:

:::::{tab-set}

::::{tab-item} macOS

```shell
sudo elastic-agent upgrade 9.1.1
```

::::

::::{tab-item} Linux

```shell
sudo elastic-agent upgrade 9.1.1
```

::::

::::{tab-item} Windows

As an Administrator, run:

```shell
cd /Library/Elastic/Agent/
sudo elastic-agent upgrade 8.8.1
.\elastic-agent.exe upgrade 9.1.1
```

::::

::::{tab-item} DEB

Check notice on line 46 in reference/fleet/upgrade-standalone.md

View workflow job for this annotation

GitHub Actions / vale

Elastic.Acronyms: 'DEB' has no definition.

```shell
sudo elastic-agent upgrade 9.1.1
```

::::

::::{tab-item} RPM

Check notice on line 54 in reference/fleet/upgrade-standalone.md

View workflow job for this annotation

GitHub Actions / vale

Elastic.Acronyms: 'RPM' has no definition.

```shell
sudo elastic-agent upgrade 9.1.1
```

::::

:::::


This command upgrades the binary. Your agent policy should continue to work, but you might need to upgrade it to use new features and capabilities.

Expand Down Expand Up @@ -53,7 +94,7 @@
Example:

```yaml
./elastic-agent upgrade 8.8.0 --skip-verify
./elastic-agent upgrade 9.1.0 --skip-verify
```


Expand All @@ -63,7 +104,7 @@
Example:

```yaml
./elastic-agent upgrade 8.8.0 --pgp-path /home/elastic-agent/GPG-KEY-elasticsearch
./elastic-agent upgrade 9.1.0 --pgp-path /home/elastic-agent/GPG-KEY-elasticsearch
```


Expand Down
Loading