Skip to content

Usage (command line arguments and environment variables)

Command line arguments

Some options can be controlled using command line arguments.

Environment variables

See environment variables for a list of all environment variables.

Setting environment variables using a file

You can use an environment file ('envfile') to pass environment variables to Imposter. To do this, add a file named .env adjacent to your configuration files, for example:

$ ls
.env
imposter-config.yaml

$ cat .env
IMPOSTER_LOG_LEVEL=info
OTHER_ENV_VAR=example