Config for devMode not showing when true I am using .env to set environment to local:

# .ENV The environment Craft is currently running in ('dev', 'staging', 
'production', etc.)
 CRAFTENV_CRAFT_ENVIRONMENT="local"


My general config looks like:

 // Dev environment settings
'local' =&gt; [
    'devMode' =&gt; true,

    // Base site URL
    'siteUrl' =&gt; getenv('CRAFTENV_BASE_URL')

],


My staging site is :

 // Staging environment settings
'staging' =&gt; [
    // Base site URL
    'siteUrl' =&gt; getenv('CRAFTENV_BASE_URL'),

    // Dev Mode (see https://craftcms.com/support/dev-mode)
    'devMode' =&gt; true,

    'baseUrl'  =&gt; getenv('CRAFTENV_BASE_URL'),
    'basePath' =&gt; getenv('CRAFTENV_BASE_PATH'),
    'aliases' =&gt; [
        '@assetBaseUrl' =&gt; getenv('ASSET_BASE_URL'),
        '@assetBasePath' =&gt; getenv('ASSET_BASE_PATH'),
        '@baseUrl' =&gt; getenv('CRAFTENV_BASE_URL'),
        '@basePath' =&gt; getenv('CRAFTENV_BASE_PATH')
    ],
    // Custom site-specific config settings
    'custom' =&gt; [
        'craftEnv' =&gt; getenv('CRAFTENV_CRAFT_ENVIRONMENT'),
        'staticAssetsVersion' =&gt; 1,
    ]
],


Why wont my local site show the dev mode settings in CP ?
The solution was ENVIRONMENT="local" in .env
via andrew.welch