This documentation contains work-in-progress information for future Elastic Stack and Cloud releases. Use the version selector to view supported release docs. It also contains some Elastic Cloud serverless information. Check out our serverless docs for more details.
Environment variables
editEnvironment variables
editThe same settings can be defined as environment variables instead of a
configuration file or to override certain settings of the YAML
file.
If setting environment variables, you’ll need to prefix the
configuration parameter with EC_
and capitalize the setting,
i.e. EC_HOST
or EC_USER
.
export EC_API_KEY=bWFyYzo4ZTJmNmZkNjY5ZmQ0MDBkOTQ3ZjI3MTg3ZWI5MWZhYjpOQktHY05jclE0cTBzcUlnTXg3QTd3
Special Environment Variables
editexport EC_CONFIG=$HOME/.ecctl/cloud.yaml