Use single ESP_EXTENSION_IN_OPENTHREAD_CLI config option to enable/disable extended features. It will be pure ot_cli example if it's disabled.