EnvironmentListCommand does need the currentEnvironment property.

Plus another IDE-inspired fixes for DomainAddCommand.