Skip to content

Commit 4bddb88

Browse files
committed
fix: Add guided install scope and intended use docs
1 parent 08255fa commit 4bddb88

File tree

4 files changed

+133
-6
lines changed

4 files changed

+133
-6
lines changed

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,16 @@ page.
5555

5656
The latest New Relic CLI documentation is available in the repository's [docs](https://github.com/newrelic/newrelic-cli/blob/main/docs/cli/newrelic.md) directory.
5757

58+
### Guided Install: Scope and Usage
59+
60+
The `newrelic install` command provides automated installation of New Relic agents and integrations.
61+
62+
**Important:** This command is designed for **initial installations on new hosts**. When run on a system with existing New Relic agents, it will reset configurations to defaults as part of ensuring a clean installation.
63+
64+
For upgrading existing agents while preserving custom configurations, use the [manual upgrade procedures](https://docs.newrelic.com/docs/infrastructure/install-infrastructure-agent/update-or-uninstall/update-infrastructure-agent/) documented for each agent type.
65+
66+
See the [Install Guide](docs/INSTALL_GUIDE.md) for detailed information about when to use guided install versus manual upgrades.
67+
5868
## Installation & Upgrades
5969

6070
Installation options are available for various platforms. If you're running an older version of the CLI you can use these commands to update to the latest version.
@@ -321,9 +331,8 @@ New Relic hosts and moderates an online forum where you can interact with New Re
321331
- [Roadmap](https://newrelic.github.io/developer-toolkit/roadmap/) - As part of the Developer Toolkit, the roadmap for this project follows the same RFC process
322332
- [Issues or Enhancement Requests](https://github.com/newrelic/newrelic-cli/issues) - Issues and enhancement requests can be submitted in the Issues tab of this repository. Please search for and review the existing open issues before submitting a new issue.
323333
- [Contributors Guide](CONTRIBUTING.md) - Contributions are welcome (and if you submit a Enhancement Request, expect to be invited to contribute it yourself :grin:).
324-
- [Community discussion board](https://discuss.newrelic.com/c/build-on-new-relic/developer-toolkit) - Like all official New Relic open source projects, there's a related Community topic in the New Relic Explorers Hub.
325334

326-
Please do not report issues with the CLI to New Relic Global Technical Support. Instead, visit the [`Explorers Hub`](https://discuss.newrelic.com/c/build-on-new-relic) for troubleshooting and best-practices.
335+
Please do not report issues with the CLI to New Relic Global Technical Support. Instead, submit issues and questions through [GitHub Issues](https://github.com/newrelic/newrelic-cli/issues) for community support and troubleshooting.
327336

328337
## Issues / Enhancement Requests
329338

docs/GETTING_STARTED.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ docker run -i --rm -e NEW_RELIC_API_KEY newrelic/cli apm application search --na
2323
Binary releases are available on [GitHub][releases] as well and installed
2424
anywhere in the environment `$PATH` for the user.
2525

26+
### Guided Install
27+
28+
The CLI includes a `newrelic install` command for automated agent installation. This command is designed for initial installations on new hosts. For upgrading existing agents while preserving custom configurations, see the [Install Guide](INSTALL_GUIDE.md) for guidance on when to use guided install versus manual upgrades.
29+
2630
### Environment Setup
2731

2832
You will need a [Personal API Key][api_key] in order to make full use of this
@@ -247,8 +251,7 @@ Custom events may take a moment to appear in query results while they are being
247251

248252
### Want more?
249253

250-
If you'd like to engage with other community members, visit our
251-
[discuss][discuss] page. We welcome feature requests or bug reports on GitHub.
254+
We welcome feature requests or bug reports on [GitHub Issues](https://github.com/newrelic/newrelic-cli/issues).
252255
We also love Pull Requests.
253256

254257
[homebrew]: https://brew.sh/
@@ -260,5 +263,3 @@ We also love Pull Requests.
260263
[api_key]: https://docs.newrelic.com/docs/apis/get-started/intro-apis/types-new-relic-api-keys#personal-api-key
261264

262265
[jq]: https://stedolan.github.io/jq/
263-
264-
[discuss]: https://discuss.newrelic.com/c/build-on-new-relic/developer-toolkit

docs/INSTALL_GUIDE.md

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
# New Relic CLI Guided Install Guide
2+
3+
## Overview
4+
5+
The `newrelic install` command provides an automated, guided installation experience for New Relic agents and integrations. This guide helps you understand when to use guided install and when to use alternative methods.
6+
7+
## Intended Use
8+
9+
### Guided Install is Designed For
10+
11+
The CLI-based guided installation provides a simple, single-command experience for **initial installation on new hosts**:
12+
13+
- Customers who want an easy, automated installation process
14+
- Standard agent deployments with default configurations
15+
- Embedding in automated deployment scripts to ensure new servers are monitored from day one
16+
- Integration with configuration management tools (Ansible, Puppet, Chef)
17+
- Scenarios where a quick, consistent installation is preferred
18+
19+
Advanced users who require fine-grained control over installation settings, specific version pinning, or custom configuration during installation may prefer manual installation procedures.
20+
21+
### How Guided Install Works
22+
23+
When you run `newrelic install`, the command:
24+
25+
1. Detects your system configuration and running services
26+
2. Recommends appropriate New Relic agents and integrations
27+
3. Installs agents with default configuration settings
28+
4. Validates that agents are reporting data successfully
29+
30+
To ensure a consistent installation experience, the command configures agents with standard default settings. This approach works well for new installations where no prior configuration exists.
31+
32+
## Upgrading Existing Agents
33+
34+
If you have existing New Relic agents with custom configurations that you want to preserve, use the manual upgrade procedures instead:
35+
36+
### Infrastructure Agent Upgrades
37+
38+
For detailed upgrade instructions specific to your operating system, see the New Relic documentation:
39+
40+
**Documentation:** [Update Infrastructure Agent](https://docs.newrelic.com/docs/infrastructure/install-infrastructure-agent/update-or-uninstall/update-infrastructure-agent/)
41+
42+
### APM Agent Upgrades
43+
44+
Each APM agent has specific upgrade procedures that preserve your configurations. See the New Relic documentation for language-specific upgrade instructions:
45+
46+
**Documentation:** [APM Agent Updates](https://docs.newrelic.com/docs/apm/)
47+
48+
## Configuration Considerations
49+
50+
### What Happens to Existing Configurations
51+
52+
If you run `newrelic install` on a system with existing New Relic agents:
53+
54+
- Agent configuration files are set to default values
55+
- Custom settings (log paths, custom attributes, labels) are not preserved
56+
- Integration configurations are reset to defaults
57+
58+
This behavior ensures a clean, consistent installation but may not be suitable for systems with custom configurations you want to keep.
59+
60+
### Backing Up Configurations
61+
62+
If you plan to use guided install on a system with existing agents, consider backing up your configuration files first:
63+
64+
**Linux:**
65+
```bash
66+
# Back up main config file
67+
sudo cp /etc/newrelic-infra.yml /etc/newrelic-infra.yml.backup
68+
69+
# Back up integrations directory
70+
sudo cp -r /etc/newrelic-infra /etc/newrelic-infra.backup
71+
```
72+
73+
**Windows:**
74+
```powershell
75+
Copy-Item -Path "C:\Program Files\New Relic\newrelic-infra" -Destination "C:\Program Files\New Relic\newrelic-infra.backup" -Recurse
76+
```
77+
78+
## Frequently Asked Questions
79+
80+
### Can I use guided install to upgrade my existing agents?
81+
82+
While the command will run successfully, it's designed for new installations. For upgrades that preserve your custom configurations, we recommend using the manual upgrade procedures for your specific agent type.
83+
84+
### Will my telemetry data be affected?
85+
86+
No. Guided install only affects local agent configuration files. Your historical data in New Relic remains unchanged.
87+
88+
### Can I customize the installation?
89+
90+
The guided install uses standard default configurations. For custom setups, you can either:
91+
1. Use guided install and then manually edit configuration files afterward
92+
2. Perform a manual installation following agent-specific documentation
93+
94+
### What if I need help?
95+
96+
- **Documentation:** [New Relic Docs](https://docs.newrelic.com/)
97+
- **Issues and Questions:** [GitHub Issues](https://github.com/newrelic/newrelic-cli/issues)
98+
- **General Support:** [New Relic Support](https://support.newrelic.com/)
99+
100+
## Command Reference
101+
102+
For complete command options, run:
103+
104+
```bash
105+
newrelic install --help
106+
```
107+
108+
See also:
109+
- [CLI Documentation](newrelic.md)
110+
- [Getting Started Guide](GETTING_STARTED.md)
111+
- [New Relic Infrastructure Agent Documentation](https://docs.newrelic.com/docs/infrastructure/)

docs/cli/newrelic_install.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
Install New Relic.
44

5+
### Important: Intended Use
6+
7+
The `newrelic install` command is designed for **initial installation on new hosts**. It provides an automated, guided installation experience that configures New Relic agents with default settings.
8+
9+
**Note for existing installations:** Running this command on a host with existing New Relic agents will reset agent configurations to defaults. If you need to upgrade agents while preserving custom configurations, use the [manual upgrade procedures](https://docs.newrelic.com/docs/infrastructure/install-infrastructure-agent/update-or-uninstall/update-infrastructure-agent/) instead.
10+
511
```
612
newrelic install [flags]
713
```

0 commit comments

Comments
 (0)