Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,18 @@ overwrites the `elastic-agent.yml` file in the agent directory.

[source,shell]
----
elastic-agent enroll <kibana_url> <enrollment_token> [--ca-sha256 <string>]
elastic-agent enroll --kibana-url=<kibana_url> --enrollment-token=<enrollment_token> [--ca-sha256 <string>]
[--certificate-authorities <string>] [--force] [--help]
[--insecure] [global-flags]
----

[discrete]
=== Options

`kibana_url`::
`--kibana-url=<kibana_url>`::
Required. URL of the {kib} endpoint where {fleet} is running.

`enrollment_token`::
`--enrollment-token=<enrollment_token>`::
Required. Enrollment token generated by {fleet}. You can use the same
enrollment token for multiple agents.

Expand Down
4 changes: 2 additions & 2 deletions docs/en/ingest-management/tab-widgets/install.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ integrations require root privileges to collect sensitive data.

[source,shell]
----
sudo elastic-agent enroll <kibana_url> <enrollment_token> <1>
sudo elastic-agent enroll --kibana-url=<kibana_url> --enrollment-token=<enrollment_token> <1>
sudo systemctl enable elastic-agent <2>
sudo systemctl start elastic-agent
----
Expand All @@ -26,7 +26,7 @@ include::install.asciidoc[tag=install-tip]

[source,shell]
----
sudo elastic-agent enroll <kibana_url> <enrollment_token> <1>
sudo elastic-agent enroll --kibana-url=<kibana_url> --enrollment-token=<enrollment_token> <1>
sudo systemctl enable elastic-agent <2>
sudo systemctl start elastic-agent
----
Expand Down