def METHOD_NAME(self):
    env_name = self.get_env_name(varname='name')
    app_name = self.get_app_name()
    timeout = self.app.pargs.timeout
    nohang = self.app.pargs.nohang
    cfg = self.app.pargs.cfg
    display = self.app.pargs.display
    update = self.app.pargs.update
    output_format = self.app.pargs.format
    if display and update:
        raise InvalidOptionsError(alerts['create.can_not_use_options_together'].format("--display", "--update"))
    if display:
        configops.display_environment_configuration(app_name, env_name, output_format=output_format)
    elif update:
        configops.modify_environment_configuration(env_name, update, nohang, timeout)
    else:
        input_exists = not sys.stdin.isatty()
        if not cfg and not input_exists:
            configops.update_environment_configuration(app_name, env_name,
                                                       nohang,
                                                       timeout=timeout)
            return
        if cfg:
            cfg_name = saved_configs.resolve_config_name(app_name, cfg)
            saved_configs.update_environment_with_config_file(env_name,
                                                              cfg_name, nohang,
                                                              timeout=timeout)
        elif input_exists:
            data = sys.stdin.read()
            saved_configs.update_environment_with_config_data(env_name, data,
                                                              nohang,
                                                              timeout=timeout)