WP-CLI Dotenv Command

Interact with a .env file from the command line.

This command is dedicated to handling various tasks of managing an environment file for your WordPress install.

By default WordPress does not use a dedicated environment file for environment-specific configuration and sensitive information.
Relevant WordPress-based projects: Bedrock, Suzie, WordPlate

The dotenv command is especially useful for use within other scripts.


Check it out on GitHub