Loading

config context add cli command

elastic config context add <name> [options]
		

Add a new context to the config file

<name> string required
context name
--[no-]force
overwrite an existing context with the same name
--[no-]inline-secrets
store secrets inline in the config file (instead of the OS keychain)
--es-url string
Elasticsearch URL
--es-username string
Elasticsearch username (pair with --es-password)
--kb-url string
Kibana URL
--kb-username string
Kibana username (pair with --kb-password)
--cloud-url string
Elastic Cloud API URL
--es-api-key string
Elasticsearch API key (secret -- stored in the OS keychain when available)
--es-password string
Elasticsearch password (secret -- stored in the OS keychain when available)
--kb-api-key string
Kibana API key (secret -- stored in the OS keychain when available)
--kb-password string
Kibana password (secret -- stored in the OS keychain when available)
--cloud-api-key string
Elastic Cloud API key (secret -- stored in the OS keychain when available)
--config-file string
path to the config file to edit (defaults to ~/.elasticrc.yml)
--[no-]dry-run
validate all inputs and exit without performing any action (preview changes without applying them)
--[no-]json

output as JSON