Skip to main content

Moves the environment variables from a docker compose file into a .env file.

Project description

Extract Env

CLI

$ extract-env -h
Usage: extract-env [OPTIONS]

Options:
  -e, --env_folder PATH           Folder where the .env file/s to/are located.
                                  Default: ./
  --env-file-name PATH            Folder where the .env file/s to/are located.
                                  Default: .env
  --use-current-env / --no-use-current-env
                                  Use the current env files. Default: True
  -c, --compose-folder DIRECTORY  Folder where the compose file/s are located.
                                  Default: ./
  -C, --combine / -N, --no-combine
                                  Combine like named environment variables
                                  across services.  Default: True
  -p, --prefix TEXT               Prefix to add to all environment variable
                                  names.  Default: ""
  --postfix TEXT                  postfix to add to all environment variable
                                  names.  Default: ""
  -w, --write / -d, --dry-run     Write the environment variables to file.
                                  Default: True
  --display / --no-display        Displays the file output in the terminal.
                                  Default: False
  -u, --update-compose / -n, --no-update-compose
                                  Update the docker compose file with the new
                                  environment variable names.  Default: True
  -A, --all-files / -S, --selected-file
                                  Update the docker compose file with the new
                                  environment variable names.  Default: True
  -f, --compose_file FILE         Update this/these docker compose file/s with
                                  the new environment variable names. Used for
                                  specifying the paths of each file. When
                                  paths are specified it is assumed that
                                  --selected-files has been given.  Default:
                                  None
  -t, --test                      Test the program using files in the example
                                  folder.  Default: False
  -h, --help                      Show this message and exit.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

extract_env-0.1.0.tar.gz (11.7 kB view hashes)

Uploaded Source

Built Distribution

extract_env-0.1.0-py3-none-any.whl (15.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page