Skip to content

[Elastic Agent] Inconsistency for enroll and install command #21897

@ruflin

Description

@ruflin

The usage of our enrollment command looks as following:

elastic-agent enroll <kibana_url> <enrollment_token> [flags]

For install it is:

elastic-agent install [flags]

To pass enrollment_token and kibana_url the flags --kibana-url and --enrollment-token are needed but these two flags are missing for enroll. We should be consistent here.

I stumbled over this when I copy pasted the install command but only wanted to enroll so I change install to enroll and it failed as enroll did not have the flags. I like the flags in general as they don't enforce a certain oder so I think we should make the flags also available for enroll to be consistent.

In addition, it should be checked if there are further incosistencies.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions