Skip to content

Commit 534d8e7

Browse files
Add tabs to initial install example in unprivileged mode section
- Add synchronized tabs for Linux/macOS and Windows install commands - Add sudo prefix to Linux/macOS example (required for service installation) - Use PowerShell backtick line continuation for Windows example Co-authored-by: vishaangelova <[email protected]>
1 parent 9cdf6d9 commit 534d8e7

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

reference/fleet/elastic-agent-unprivileged.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,35 @@ Refer to [Agent and dashboard behaviors in unprivileged mode](#unprivileged-comm
2828

2929
To run {{agent}} without administrative privileges you use exactly the same commands that you use for {{agent}} otherwise, with one exception. When you run the [`elastic-agent install`](/reference/fleet/agent-command-reference.md#elastic-agent-install-command) command, add the `--unprivileged` flag. For example:
3030

31+
:::::{tab-set}
32+
:group: os
33+
34+
::::{tab-item} Linux/macOS
35+
:sync: linux
36+
3137
```shell
32-
elastic-agent install \
38+
sudo elastic-agent install \
3339
--url=https://cedd4e0e21e240b4s2bbbebdf1d6d52f.fleet.eu-west-1.aws.cld.elstc.co:443 \
3440
--enrollment-token=NEFmVllaa0JLRXhKebVKVTR5TTI6N2JaVlJpSGpScmV0ZUVnZVlRUExFQQ== \
3541
--unprivileged
3642
```
3743

44+
::::
45+
46+
::::{tab-item} Windows
47+
:sync: windows
48+
49+
```shell
50+
elastic-agent install `
51+
--url=https://cedd4e0e21e240b4s2bbbebdf1d6d52f.fleet.eu-west-1.aws.cld.elstc.co:443 `
52+
--enrollment-token=NEFmVllaa0JLRXhKebVKVTR5TTI6N2JaVlJpSGpScmV0ZUVnZVlRUExFQQ== `
53+
--unprivileged
54+
```
55+
56+
::::
57+
58+
:::::
59+
3860
::::{important}
3961
Note the following current restrictions for running {{agent}} in `unprivileged` mode:
4062

0 commit comments

Comments
 (0)