You can get all the CMS page collection in Magento 2 by calling interface, Magento\Cms\Api\PageRepositoryInterface.
PageRepositoryInterface is used when you need to fetch a collection of CMS page or get specific CMS page data.
You need to instantiate Interface in __construct() method of Class.