HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/local/wp/vendor/wp-cli/config-command/features/config.feature
Feature: Manage wp-config.php file

  Scenario: Getting config should produce error when no config is found
    Given an empty directory

    When I try `wp config list`
    Then STDERR should be:
      """
      Error: 'wp-config.php' not found.
      Either create one manually or use `wp config create`.
      """

    When I try `wp config list --config-file='wp-custom-config.php'`
    Then STDERR should be:
      """
      Error: 'wp-custom-config.php' not found.
      Either create one manually or use `wp config create`.
      """

    When I try `wp config get SOME_NAME`
    Then STDERR should be:
      """
      Error: 'wp-config.php' not found.
      Either create one manually or use `wp config create`.
      """

    When I try `wp config get SOME_NAME --config-file='wp-custom-config.php'`
    Then STDERR should be:
      """
      Error: 'wp-custom-config.php' not found.
      Either create one manually or use `wp config create`.
      """

    When I try `wp config path`
    Then STDERR should be:
      """
      Error: 'wp-config.php' not found.
      Either create one manually or use `wp config create`.
      """

  Scenario: Get a wp-config.php file path
    Given a WP install

    When I run `wp config path`
    Then STDOUT should contain:
      """
      wp-config.php
      """