How do I install the List View command-set extension in a site collection after deploying it with CSOM in an App Catalog?

I've created a Listview command extension with SPFX and added it to the App Catalog. Now I want to install this extension only for certain sites. I tried to add it as a custom action, but it does not work. Any help would be appreciated.

listviewcommandset – Sharepoint extension ListView CommandSet – is not displayed

I've created a sitepage and then added inside that I've added a list webpart and then choose the list I wanted. Then I added the link of this page to my extension on pageUrl in serve.json .. but the extension does not appear .. even though I tried to use the view's direct URL (not the sitepage), the extension shows ..

Any idea on what is the problem here?