This video demonstrates how we can use the property bag of the SharePoint site to show/hide a ListView Command Set on the list.
 
The SPFx solution used in this video is available on github - https://github.com/RamPrasadMeenavalli/spfx-extensions