unlike default key generator, now this command can overrides key setting based on env