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.
The usage of our enrollment command looks as following:
For install it is:
To pass enrollment_token and kibana_url the flags
--kibana-urland--enrollment-tokenare 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.