Skip to content

Expose the WP-CLI cache directory location in wp cli info #5580

@johnbillion

Description

@johnbillion

Describe your use case and the problem you are facing

As part of some debugging I wanted to discover the location of WP-CLI's cache directory, but there appears to be no way to get this from WP-CLI itself.

The directory location is ~/.wp-cli/cache by default but can be overridden by the WP_CLI_CACHE_DIR environment variable. Ref:

$dir = getenv( 'WP_CLI_CACHE_DIR' ) ? : "$home/.wp-cli/cache";

Describe the solution you'd like

I'd like a command -- for example wp cli cache directory -- which exposes the location of WP-CLI's cache directory.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions