Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 2, 2025

Summary

The standalone agent upgrade documentation only showed macOS commands. Added tabbed interface with simplified upgrade commands for all supported platforms:

  • macOS: sudo elastic-agent upgrade 9.1.1
  • Linux: sudo elastic-agent upgrade 9.1.1
  • Windows: .\elastic-agent.exe upgrade 9.1.1 (as Administrator)
  • DEB: sudo elastic-agent upgrade 9.1.1
  • RPM: sudo elastic-agent upgrade 9.1.1

The instructions leverage the fact that step 2 already directs users to navigate to the installation directory, so the code blocks only show the upgrade command itself. For DEB/RPM installations, the elastic-agent binary is already in PATH via systemd install.

Uses same tab-set syntax as install-standalone-elastic-agent.md.

Generative AI disclosure

  1. Did you use a generative AI (GenAI) tool to assist in creating this contribution?
  • Yes
  • No

Tool(s) and model(s) used: GitHub Copilot (Claude)

Original prompt

This section details on the original issue you should resolve

<issue_title>[Fleet]: Standalone Agent Upgrade Commands not displayed for Non-macOS</issue_title>
<issue_description>Description:
Upgrade standalone agents section only displays macOS upgrade commands. Upgrade commands for other operating systems are missing.

Link:
https://www.elastic.co/docs/reference/fleet/upgrade-standalone

Screen-shot:

Image

Whats working fine

  • Installation commands are available for all operating systems.

Expected Result
Upgrade commands for standalone agents should be available for all supported operating systems/artifacts. </issue_description>

<agent_instructions>Here's the file: https://github.com/elastic/docs-content/edit/main/reference/fleet/upgrade-standalone.md

Add Linux, Windows, DEB, and RPM instructions. An example of the syntax is available here: https://www.elastic.co/docs/reference/fleet/install-standalone-elastic-agent (https://github.com/elastic/docs-content/edit/main/reference/fleet/install-standalone-elastic-agent.md).</agent_instructions>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: bmorelli25 <5618806+bmorelli25@users.noreply.github.com>
Copilot AI changed the title [WIP] Add standalone agent upgrade commands for Linux and Windows Add Linux, Windows, DEB, and RPM standalone agent upgrade commands Dec 2, 2025
Copilot AI requested a review from bmorelli25 December 2, 2025 16:08
@github-actions
Copy link

github-actions bot commented Dec 3, 2025

🔍 Preview links for changed docs

@bmorelli25 bmorelli25 marked this pull request as ready for review December 3, 2025 20:21
@bmorelli25 bmorelli25 requested a review from a team as a code owner December 3, 2025 20:21
@github-actions
Copy link

github-actions bot commented Dec 3, 2025

Vale Linting Results

Summary: 2 suggestions found

💡 Suggestions (2)
File Line Rule Message
reference/fleet/upgrade-standalone.md 46 Elastic.Acronyms 'DEB' has no definition.
reference/fleet/upgrade-standalone.md 54 Elastic.Acronyms 'RPM' has no definition.

To upgrade a standalone agent running on an edge node:

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!

Copy link
Contributor

@vishaangelova vishaangelova left a comment

Choose a reason for hiding this comment

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

Looks good!:)

@vishaangelova
Copy link
Contributor

@copilot, update the PR description with the current PR changes.

Copy link
Contributor Author

Copilot AI commented Dec 10, 2025

@copilot, update the PR description with the current PR changes.

Updated the PR description to reflect the simplified upgrade instructions (commit 2995dca).

Copy link
Contributor

@vishaangelova vishaangelova left a comment

Choose a reason for hiding this comment

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

Looks good!

@bmorelli25
Copy link
Member

#4187 (comment)

Woah!

@bmorelli25 bmorelli25 enabled auto-merge (squash) December 10, 2025 23:23
@bmorelli25 bmorelli25 merged commit 461c3d5 into main Dec 10, 2025
7 checks passed
@bmorelli25 bmorelli25 deleted the copilot/add-upgrade-commands-linux-windows branch December 10, 2025 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Fleet]: Standalone Agent Upgrade Commands not displayed for Non-macOS

3 participants