Register custom commands in the command palette (not the slash menu)

Is there a way to do this? I know you can create new slash commands in config.edn but can’t find a way to add new entries to the command palette without creating a plugin.

Let me try a slightly different question. How could one add slash commands to the command palette? If there is a way to do this, creating new commands in the command palette would be as easy as creating a new slash command (by adding it in config.edn).