config current-context get cli command
elastic config current-context get
Print the current context name
--config-filestring- path to the config file to edit (defaults to ~/.elasticrc.yml)
--dry-run- validate all inputs and exit without performing any action (preview changes without applying them)
--output-fieldsstring- comma-separated list of fields to include in output (dot-notation supported)
--output-templatestring- Mustache-like template for custom text output (e.g. "{{id}}: {{name}}")
--json-
output as JSON