in my local setup I have run the command for testing, what happens.
php bin/magento module:disable --all I have found an error in most of commands and nothing is working.
after that, I have run
php bin/magento module:enable -all
I have found the error in command-line
in db core_config_data table is missing.
I have tried this for fun but never try this ....