I\'m using this code to set configuration and register commands for CommandsNextExtension variable:
commandsConfig = new CommandsNextConfiguration {