If the Data Collector is registered with Control Hub, there are some additional options which need to be included in the command (e.g. -a dpm, --dpmURL <dpmURL>). Please see our documentation here and an example from the documentation for the store list command:
For example, the following command lists all pipelines associated with the Data Collector when it is not registered with Control Hub:
bin/streamsets cli -U http://localhost:18630 store list
The following command lists all pipelines associated with the Data Collector when it is registered with Control Hub:
bin/streamsets cli -U http://localhost:18630 -a dpm -u user1@mycompany -p MyPassword \
--dpmURL https://cloud.streamsets.com store list
One need to customize the command with the additional options according to their usecase.