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.