IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.

Env Provider

edit

Provides access to the environment variables as key-value pairs.

For example, set the variable foo:

foo=bar elastic-agent run

The environment variable can be referenced as ${env.foo}.