Skip to content

Reading wp-config.php env vars in database settings #2365

@NathanKleekamp

Description

@NathanKleekamp

In order to commit our wp-config.php file to a public git repo, we use environmental variables instead of strings for our db settings, like this:

define('DB_NAME', getenv('DB_NAME'));

It appears wp-cli only works with strings, however. Is there any chance of getting support for this feature?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions