Right now we can list all Power Platform environments or get an environment by name. It could be useful if we could just get the default environment.
We could update the command pp environment get and make the option name optional. When name is not specified, the command will return the default environment.
Options
| Option |
Description |
-n, --name [name] |
The name of the environment. When not specified, the default environment is retrieved. |
Examples
Get the default Power Platform environment
How to achieve
To achieve this, it seems like we should filter on the isDefault property:

Right now we can list all Power Platform environments or get an environment by name. It could be useful if we could just get the default environment.
We could update the command
pp environment getand make the optionnameoptional. Whennameis not specified, the command will return the default environment.Options
-n, --name [name]Examples
Get the default Power Platform environment
How to achieve
To achieve this, it seems like we should filter on the
isDefaultproperty: