Change record status: 
Project: 
Introduced in branch: 
11.5.x
Introduced in version: 
11.5.0
Description: 

The dr command no longer needs the DRUPAL_DEV_SITE_PATH environment variable to select a site. Using it triggers a deprecation, and support is removed in Drupal 13.0.0.

Multisite

Use --url or DRUPAL_URI.
dr cache:rebuild --url=https://dev

Functional tests

Pass the test user agent to the process instead.

Before:

$process->setEnv(['DRUPAL_DEV_SITE_PATH' => $this->siteDirectory]);

After:

$process->setEnv(['HTTP_USER_AGENT' => drupal_generate_test_ua($this->databasePrefix)]);

The install and server commands still read the variable.

Impacts: 
Module developers