'Command Set on SharePoint pages

Is there an easy/supported way to add a custom button to the command bar of pages? I know about the way to add a button to the list view with an spfx extension. But I want the button on the pages itself. So a ListView Command Set is not what I am searching for.

Creating an application customizer extension with spfx and rendering the button in the specific position would be a solution. But that is not supported by MS and its more a workaround.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source