Some of Entity Framework Core CLI commands accept
dotnet ef migrations list --environment <env_name>
Stupid me, after the day of looking around, I noticed that
Create method of
IDbContextFactory interface has the parameter of type
DbContextFactoryOptions, which in turn has
EnvironmentName property, which appears to be the one passed to CLI commands.